metropoj
3rd April 2012, 15:28
I have taken some code from our Infor consultant that was in a dal working and tried to replicate this in PCF to call a Start.session ....

I have the start.session working after some fiddling around BUT get an unresolved reference when I try to add in the query extend as below ....


I read up on many other logs about a #include or #pragma or similar things needed to add but I have no idea what may need to be added to this code or how to ever know how to find out on my own. Can anyone please shed some light ?? :confused:


Code: Before Input PCF.....


!domain tcitem tmp_item
!domain tccitg tmp.citg

! tmp_item= ""
! tmp.citg = "RUBPLY"


if [sb-curve] = "z" then
! query.extend.where.in.zoom("tcibd001.citg = " & quoted.string(tmp.citg))
! tmp_item = start.session(MODAL, "tcibd0501m000", "tipcf5120s000", "tcibd001.item")
! [sb-curve] = tmp_item
endif

metropoj
10th April 2012, 14:56
We ended up resolving this by taking a copy of my LN Item Display session and adding code in place with a script to get what i needed.

In my constraints I pass in a string to say what I want to search for and voila ...

|****************************** declaration section ***************************

declaration:

table ttcibd001 | Items - General

domain tcmcs.str100 tmp.where

extern domain tcyesno txta.yn
extern domain tcmcs.str6 act.revision


|****************************** program section ********************************


zoom.from.all:
on.entry:
import("tmp.where", tmp.where)
query.extend.where(tmp.where)
rebuild.query()
execute (find.data)

|****************************** group section **********************************