Skip to main content
Solved

custom logic field (read only)

  • March 15, 2024
  • 3 replies
  • 189 views

sevo
Do Gooder (Customer)
Forum|alt.badge.img+5
  • Do Gooder (Customer)
  • 10 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.


 

Best answer by Buddhika Kurera

@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 !

3 replies

Buddhika Kurera
Superhero (Employee)
Forum|alt.badge.img+15
  • Superhero (Employee)
  • 388 replies
  • Answer
  • March 15, 2024

@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 !


sevo
Do Gooder (Customer)
Forum|alt.badge.img+5
  • Author
  • Do Gooder (Customer)
  • 10 replies
  • March 18, 2024

@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. 


Buddhika Kurera
Superhero (Employee)
Forum|alt.badge.img+15
  • Superhero (Employee)
  • 388 replies
  • March 19, 2024

@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