Skip to main content
Solved

Second External Search Parameter Doesn't Work.


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Superhero (Customer)
  • 318 replies

I am trying to create an external search. The structure of the External Link is straightforward. However, The second search parameter does not work. I could not understand. What am I missing? In the first link, it searches just for BUYER_CODE not search for CURRENCY_CODE. In the second link, it searches just for CURRENCY_CODE not search for BUYER_CODE. What is wrong with the expression?

 

First Link

ifsapf:frmPurchaseOrder_Cust?EXTERNAL_SEARCH=BUYER_CODE=001945&CURRENCY_CODE=GBP

 Second Link

ifsapf:frmPurchaseOrder_Cust?EXTERNAL_SEARCH=CURRENCY_CODE=GBP&BUYER_CODE=001945

 

First Link Result

Second Link Result

 

Best answer by Hypervox

My mistake 😔

In the link I sent you, there’s a section at the bottom on how to write your own external search string - an example is as follows…

doc_class=100&doc_no=ERTT&doc_sheet=1&doc_rev=A1

becomes

external_search=doc_class%3d100%26doc_no%3dERTT%26doc_sheet%3d1%26doc_rev%3dA1

 

You’ll notice that the “=” and “&” are url encoded, so “=” becomes “%3d” and “&” becomes “%26”.  You should find if you follow the document closely you’ll be creating external search links in no time.

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

3 replies

Forum|alt.badge.img+9
  • Hero (Customer)
  • 78 replies
  • August 18, 2022

I think you need to escape the second ‘&’, so the url becomes…

ifsapf:frmPurchaseOrder_Cust?EXTERNAL_SEARCH=BUYER_CODE=001945\&CURRENCY_CODE=GBP

See https://docs.ifs.com/techdocs/Foundation1/050_development/022_user_interface/045_ee_dev/080_external_search/default.htm

 


hhy38
Superhero (Customer)
Forum|alt.badge.img+16
  • Author
  • Superhero (Customer)
  • 318 replies
  • August 19, 2022

& is AND operator. So, if I use an escape character. It will search BUYER_CODE as “001945&CURRENCY_CODE=GBP“. Then the result is empty.


Forum|alt.badge.img+9
  • Hero (Customer)
  • 78 replies
  • Answer
  • August 19, 2022

My mistake 😔

In the link I sent you, there’s a section at the bottom on how to write your own external search string - an example is as follows…

doc_class=100&doc_no=ERTT&doc_sheet=1&doc_rev=A1

becomes

external_search=doc_class%3d100%26doc_no%3dERTT%26doc_sheet%3d1%26doc_rev%3dA1

 

You’ll notice that the “=” and “&” are url encoded, so “=” becomes “%3d” and “&” becomes “%26”.  You should find if you follow the document closely you’ll be creating external search links in no time.


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