Solved

custom logic field (read only)

  • 15 March 2024
  • 3 replies
  • 67 views

Badge +5
  • Do Gooder (Customer)
  • 13 replies

dear all,

i want to create new field in ifs10. how can i revised below query for read only select expression,

 

SELECT ipis.QTY_ONHAND - ipis.QTY_RESERVED eldeki_miktar fROM PURCHASE_ORDER_LINE_ALL pola RIGHT JOIN INVENTORY_PART_IN_STOCK_UIV ipis ON ipis.project_id = pola.:project_id AND ipis.part_no = pola.:part_no and ipis.activity_seq=pola.:ACTIVITY_SEQ and ipis.CONTRACT=pola.:CONTRACT 

 

ps: Below is the screen where I will make this development.


 

icon

Best answer by Buddhika Kurera 15 March 2024, 17:35

View original

3 replies

Userlevel 6
Badge +13

@sevo You can add a Read Only custom field as follow

 

Query is modified to

SELECT sum(x.QTY_ONHAND - x.QTY_RESERVED) FROM INVENTORY_PART_IN_STOCK_UIV x WHERE x.CONTRACT=:SITE AND x.ACTIVITY_SEQ=:ACTIVITY_SEQ AND x.PART_NO =:PART_NO

The output of the custom field

Records in Inventory Part in Stock

Hope this helps !

Badge +5

@sevo You can add a Read Only custom field as follow

 

Query is modified to

SELECT sum(x.QTY_ONHAND - x.QTY_RESERVED) FROM INVENTORY_PART_IN_STOCK_UIV x WHERE x.CONTRACT=:SITE AND x.ACTIVITY_SEQ=:ACTIVITY_SEQ AND x.PART_NO =:PART_NO

The output of the custom field

Records in Inventory Part in Stock

Hope this helps !

thank you so much for the help. 

Userlevel 6
Badge +13

@sevo you are welcome and if you need to find out how to refer the values of the view in the sql query, check the following

 

Reply