Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get selected tender reference entry name via ISL code ?

Status
Not open for further replies.

Vedank Kulshrestha

Programmer
Sep 8, 2021
5
IN
Hello,

I tried to fetch reference name for selected Tender Item on check. @Dtl_Selected[ecnt] gives always 0 for Reference Item. Are there any way to determine and fetch tender reference name ? Below is the code snippet for reference but it couldn't give the result that I am expecting to see.

var dtype:a5
var ecnt:n3
var selected:n2

for ecnt = 1 to @Numdtlt
dtype = @Dtl_type[ecnt]
selected = @Dtl_Selected[ecnt]
if dtype = "R" and selected = 1
InfoMessage "RefName","@dtl_name"
endif
endfor

Any help would be appreciated .
 
hey Vedank,
Assuming this is Simphony-SE, @DTL_SELECTED is not a bool as you expect to get looking at your code. it returns the DetaiLink.

Capture_chus9z.png
 
Oh, OK. Yeah it seems 3700 works as a bool:
Capture2_vwd4ir.png


If memory serves, the references are the next detail after the tender. So try this:
if selected = 1
if (@DTL_TYPE [ecnt+1] = "R")
InfoMessage "RefName",@DTL_NAME[ecnt+1]
endif
endif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top