Skip to main content
Solved

Advance Search in IFS 9

  • May 18, 2021
  • 4 replies
  • 386 views

proharikg
Sidekick (Partner)
Forum|alt.badge.img+9

is it possible to use functions in advance search - IFS 9

 

Best answer by Thushitha Chandrasiri

Hi @proharikg ,

As it is there in the search naming (SQL where expression), we can use whatever it matches with where clauses

This topic has been closed for replies.

4 replies

Forum|alt.badge.img+28
  • Superhero (Customer)
  • May 18, 2021

Sort of, but only in the context of looking up values of fields or in the retrieval of a single sub-query parameter. 

Here is an example from the Part Costs overview:

 

CONTRACT IN ('410','510','582') and COST_SET = 1 and (&AO.INVENTORY_PART_API.Get_Type_Code(contract,PART_NO) = 'Purchased' or &AO.INVENTORY_PART_API.Get_Type_Code(contract,PART_NO) = 'Purchased (raw)') and COST_SET_LATEST_PUR_PRICE <> TOTAL_ACCUM_COST and TOTAL_ACCUM_COST <> 0.0001 and COST_SET_LATEST_PUR_PRICE > 0

 

Or here is one from Purchase Order Lines:

 

EXISTS(SELECT 1 FROM &AO.purchase_order_line_comp A

  WHERE A.ORDER_NO = PURCHASE_ORDER_LINE_PART.ORDER_NO

  AND   A.LINE_NO = PURCHASE_ORDER_LINE_PART.LINE_NO

  AND A.release_no = PURCHASE_ORDER_LINE_PART.RELEASE_NO

AND  NVL(A.QTY_REQUIRED,0) <> NVL(A.QTY_ISSUED,0)

  AND STATE <> 'Arrived'

  AND &AO.inventory_part_in_stock_api..Get_Inventory_Qty_Onhand(CONTRACT, COMPONENT_PART, NULL) > 0

)


Thushitha Chandrasiri
Superhero (Partner)
Forum|alt.badge.img+21

Hi @proharikg ,

As it is there in the search naming (SQL where expression), we can use whatever it matches with where clauses


proharikg
Sidekick (Partner)
Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • May 18, 2021

Sort of, but only in the context of looking up values of fields or in the retrieval of a single sub-query parameter. 

Here is an example from the Part Costs overview:

 

CONTRACT IN ('410','510','582') and COST_SET = 1 and (&AO.INVENTORY_PART_API.Get_Type_Code(contract,PART_NO) = 'Purchased' or &AO.INVENTORY_PART_API.Get_Type_Code(contract,PART_NO) = 'Purchased (raw)') and COST_SET_LATEST_PUR_PRICE <> TOTAL_ACCUM_COST and TOTAL_ACCUM_COST <> 0.0001 and COST_SET_LATEST_PUR_PRICE > 0

 

Or here is one from Purchase Order Lines:

 

EXISTS(SELECT 1 FROM &AO.purchase_order_line_comp A

  WHERE A.ORDER_NO = PURCHASE_ORDER_LINE_PART.ORDER_NO

  AND   A.LINE_NO = PURCHASE_ORDER_LINE_PART.LINE_NO

  AND A.release_no = PURCHASE_ORDER_LINE_PART.RELEASE_NO

AND  NVL(A.QTY_REQUIRED,0) <> NVL(A.QTY_ISSUED,0)

  AND STATE <> 'Arrived'

  AND &AO.inventory_part_in_stock_api..Get_Inventory_Qty_Onhand(CONTRACT, COMPONENT_PART, NULL) > 0

)

Thank you .. I have checked it and it is showing that functions can be used in advance search field..


proharikg
Sidekick (Partner)
Forum|alt.badge.img+9
  • Author
  • Sidekick (Partner)
  • May 18, 2021

Hi @proharikg ,

As it is there in the search naming (SQL where expression), we can use whatever it matches with where clauses

Thank you ..