How can I pass pages from Primary as a parameter for a data page

Hello,

In my data transform, I need to load a Data Page which takes a page name as a parameter. The page I need to pass is “Primary.Booking”. I have attached an example of how this will work

When I load the Data Page on an open case thread and pass in “pyWorkPage.Booking”, it works fine. But I need to run this data transform where pyWorkPage does not exist and want to pass the “Primary.Booking”. Is there a way to do this?

Thank you

@IlyaK17181477

  • In DataPage , define paramater Booking as Page type.
  • Declare Primary.Booking page class in the data transform.
  • Set another Param E.g. BookingPg, set as page type
  • Add Property set param.BookingPg = Primary.Booking
  • Now try passing the param.BookingPg in DataPage param

@AneeshaG Thank you for your response, unfortunately it still does not work.

The Data page does not have an option for page type, but it works with “pyWorkPage.Booking” as a string

I have declared Primary.Booking page class in my data transform

I have created another parameter in my data transform for BookingPg

I have set BookingPg = Primary.Booking and passed it into the DataPage

This still does not work, did I do something wrong?

@IlyaK17181477 Step 2 : should have been param.BookingPg

Step 3: D_GetAvailableRooms[Booking:param.BookingPg].pxResults. Try this.

@AneeshaG Thank you but i found another solution

  1. Import a pyWorkPage that has a Booking page in the Pages and Classes tab

  2. Set the Primary.Booking page to pyWorkPage.Booking (pyWorkPage.Booking = Primary.Booking)

  3. Pass the “pyWorkPage.Booking” as an argument in the data page (D_GetAvailableRooms[Booking: “pyWorkPage.Booking”])

Hi @IlyaK17181477,

  • Import the pyWorkPage that contains a Booking page, located in the Pages and Classes tab.

  • Map pyWorkPage.Booking to Primary.Booking by setting:
    pyWorkPage.Booking = Primary.Booking.

  • Use pyWorkPage.Booking as an argument in the data page as follows:
    D_GetAvailableRooms[Booking: "pyWorkPage.Booking"].