- tomms tomms
- PowerServer 2020 or older (Obsolete)
- Friday, 17 July 2020 07:44 AM UTC
Dear Appeon,
i have a problem with this script , the QR Code result value and the image QR Code is different, between exe and web appeon, the code like this below ;
linet_main = CREATE inet
luo_data = CREATE n_cst_internet
SetPointer(HourGlass!)
//li_rc = &
li_rc = linet_main.GetURL('https://api.qrserver.com/v1/create-qr-code/?size=150x150&data='+as_assetno+'&format=jpg',luo_data)
SetPointer(Arrow!)
IF li_rc = 1 THEN
// s_XMLdata = String(luo_data.is_data, EncodingUTF8!)
// ole_blob = Blob(s_XMLdata, EncodingUTF8!)
ole_blob = luo_data.is_data
SetPointer(Arrow!)
IF li_rc = 1 THEN
// s_XMLdata = String(luo_data.is_data, EncodingUTF8!)
// ole_blob = Blob(s_XMLdata, EncodingUTF8!)
ole_blob = luo_data.is_data
ls_directory = gs_directory + "\"
ls_temp_prefix = "temp_"
ls_datetime = String(year(today())) + String(month(today())) + String(day(today())) + String(hour(time(today()))) + String(minute(time(today()))) + String(second(time(today())))
ls_file_path = ls_directory + ls_temp_prefix + ls_datetime+"."+'jpg'
//ls_file_path = ls_directory + ls_temp_prefix +"."+'jpg'
this.setredraw(False)
li_FileNum = FileOpen(ls_file_path, &
StreamMode!, Write!, Shared!, Replace!)
FileWriteEx(li_FileNum, ole_blob)
fileclose(li_filenum)
SELECT ast_mst_asset_locn,ast_mst_asset_shortdesc
into :ls_location,:ls_desc
FROM ast_mst
where ast_mst_asset_no = :as_assetno and site_cd = :gs_site ;
dw_2.reset()
dw_2.insertrow(0)
// dw_2.setitem(1,'title',ls_file_path)
dw_2.Modify("p_display.Filename='" + ls_file_path + "'")
Please help and what the issue in powerserver, i use powerserver 2019, if have the other method to get QR Code please share. thank you for your Attention.
Regards,
Tomms
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.