Ok, I'm losing my mind on this one. I have a NetWebBrowse procedure that is using a local variable called loc:ImageURL, I have the code to populate this variable in the Value::loc:ImageURL embed point (1 Start). The code to fill the loc:ImageURL variable is :
URL:ItemNumber=clip(ITE:ItemNumber)
get(GLO:URLQueue, URL:ItemNumber)
if errorcode()
loc:ImageURL='--'
ELSE
loc:ImageURL=URL:URL
END
For reference, I have a URL list that is stored in a Global Queue. I added a list box to the WebServer window to display the queue so I know that is values. However, the loc:ImageURL column never has anything in it, not even the '--'. It's almost like this code never runs.
Am I in the wrong embed point?
What is the best embed point to set local variable for each row of a browse?
I'm using Clarion 9.1 and NT7
Here is the entire generated embed point
value::loc:ImageURL Routine
data
loc:extra String(252)
loc:disabled String(20)
loc:FormOk Long(1)
loc:options String(OptionsStringLen) ! options for jQuery calls
loc:fieldClass String(252)
loc:javascript String(JavascriptStringLen)
loc:ok Long
! Start of "Data section, where a Cell value is calculated"
! [Priority 5000]
! End of "Data section, where a Cell value is calculated"
code
! Start of "Before a Cell value is calculated"
! [Priority 4000]
URL:ItemNumber=clip(ITE:ItemNumber)
get(GLO:URLQueue, URL:ItemNumber)
if errorcode()
loc:ImageURL='--'
ELSE
loc:ImageURL=URL:URL
END
! End of "Before a Cell value is calculated"
if false
else ! default settings for column
loc:extra = ''
packet = clip(packet) & p_web.DivHeader('Auction_BrowseAllItems_loc:ImageURL_'&ITE:ItemNumber,,net:crc,,loc:extra)
packet = clip(packet) & p_web.CreateHyperLink(p_web._jsok(Left(Format(loc:ImageURL,'@s500')),(Net:HtmlOk*1)+(Net:UnsafeHtmlOk*1)),Choose(loc:formpopup = Net:Page,loc:ImageURL,choose(loc:formpopup=Net:Popup,'#','')),,p_web.combine(p_web.site.style.BrowseHyperlinks,),loc:javascript,,0,(Net:HtmlOk*1)+(Net:UnsafeHtmlOk*1),,)
End
packet = clip(packet) & p_web.DivFooter(Net:NoSend)
! Start of "After a Cell value is calculated"
! [Priority 5000]
! End of "After a Cell value is calculated"
if loc:eip = 1
do SendPacket
end
! ----------------------------------------------------------------------------------------