Skip to main content
Solved

List Lobby Element - Navigation

  • February 26, 2025
  • 6 replies
  • 115 views

ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14

 Hello IFS Community,

 

I have created a list element naviagtion with two placeholders: SUPPLIER,  and SITE. I am trying to navigate to the 'Payment Schedule for Purchase Order' page, and my dataset references that view.

I am having trouble creating the navigation. I am using the following path:

page/PaymentScheduleForPurchaseOrder/Form?$filter=Contract eq toupper($SITE$) and VendorNo eq ($SUPPLIER$)

When I search for SITE using, for example, OK%, it does not retrieve data because the filter applies =OK%, which includes the equal sign (=). The filter needs to be just OK%, without the equal sign. It will work only if the user inputs the entire site value. Any idea how to fix this issue1?

 

Another issue I have is when the user uses % for the two placeholders: SUPPLIER and SITE.

It does not return any values or data.  Any idea how I could fix this issue2?

 

Thanks,

Best answer by PhillBronson

@ZTC ZTC JGOTA it should be the opposite of what you tried

 

Dont use % at all

 

page/PaymentScheduleForPurchaseOrder/Form?$filter=(startswith(Contract, 'OK'))

View original
Did this topic help you find an answer to your question?

6 replies

PhillBronson
Hero (Customer)
Forum|alt.badge.img+10
  • Hero (Customer)
  • 111 replies
  • February 26, 2025

@ZTC ZTC JGOTA you may want to use the Odata syntax of “startswith” or “contains”

 

This may be coupled with changing the lobby data source so that the wildcard ‘%’ is concatenated after the parameter. This way you don’t need to pass those characters in the url when navigating 

 

Lastly, maybe explore using the projection data source (if your query is simple enough). Your end result for filtering and navigating would look very similar 


ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 219 replies
  • February 26, 2025

Hello ​@PhillBronson , Thanks so much for your answer.

 

How does the Navigation will look according to the option below?

“This may be coupled with changing the lobby data source so that the wildcard ‘%’ is concatenated after the parameter. This way you don’t need to pass those characters in the url when navigating”


PhillBronson
Hero (Customer)
Forum|alt.badge.img+10
  • Hero (Customer)
  • 111 replies
  • February 26, 2025

@ZTC ZTC JGOTA the easiest way I’ve found is to go the page you are trying to navigate to and enter your filter criteria. The url will contain the syntax that you need to use. Additionally, the ‘advanced’ option will show a more readable version of the same thing.

 

With your search, enter the same thing without the wildcard and it’ll show how to format ‘startswith’ as that is the default search behavior 

 

you should see something like this:

 


ZTC ZTC JGOTA
Hero (Customer)
Forum|alt.badge.img+14
  • Author
  • Hero (Customer)
  • 219 replies
  • February 26, 2025

@PhillBronson 

I tried to use the following

page/PaymentScheduleForPurchaseOrder/Form?$filter=(contains(Contract, '%')) and (contains(tolower(VendorNo), '%'))

and it failed. Any idea?


PhillBronson
Hero (Customer)
Forum|alt.badge.img+10
  • Hero (Customer)
  • 111 replies
  • Answer
  • February 26, 2025

@ZTC ZTC JGOTA it should be the opposite of what you tried

 

Dont use % at all

 

page/PaymentScheduleForPurchaseOrder/Form?$filter=(startswith(Contract, 'OK'))


Forum|alt.badge.img+5
  • Sidekick (Customer)
  • 12 replies
  • March 5, 2025

All, be aware that using toupper in a navigation link $filter=Contract eq toupper($SITE$), will insert a space between the equal sign and the data on search, thus Contract = data. The navigation link will open the page and provide the results, but if you go to search, you will see that space there. In this scenario, say someone hits search for additional filtering, then the search will fail because of that space.

As a workaround, we tried to use trim. $filter=Contract eq trim(toupper($SITE$)), but then all search parameters disappear.

We are in 24R1 (sr2) in AST1.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings