2021-07-27 07:10 PM - last edited on 2021-09-14 08:57 AM by Noemi Balogh
DIM _propertyValues[][] rrr = REQUEST("Property_Value_Of_Parent", "Remarks", type, dim1, dim2, _propertyValues) _str = 'blank' ! default IF rrr > 0 THEN _str = _propertyValues[1][1] ENDIF TEXT2 0, 0, _strThis gives the default text, showing the request did not work.
2021-07-28 03:26 AM
rrr = REQUEST("Property_Value_Of_Parent", "Remarks", type, dim1, dim2, _propertyValues) _str = 'blank' ! default IF rrr > 0 THEN _str = _propertyValues ENDIF TEXT2 0, 0, _str
2021-07-28 01:21 PM
2021-07-28 03:24 PM
2021-07-28 03:25 PM
2021-07-28 04:45 PM
2021-07-28 07:57 PM
James wrote:You're welcome, James!
Thank you, I thought it might be an GUID-decryption thing.
Symbol labels need properties too
2021-07-28 09:06 PM
runxel wrote:This is not a problem. The code I published above get property value by name. Just using three steps.
James wrote:You're welcome, James!
Thank you, I thought it might be an GUID-decryption thing.
Symbol labels need properties too
True, as soon there are dynamic symbols involved you have to resort to GDL.
It's a bit sad we have to use this workaround to get to the GUID. I am not aware of a simpler method.
The XML export of a propertydoes not holdits GUID. It seems that this will be created at import time.
So in other news: Be aware when you go to a new file which is not based on your template. The GUID will not be the same, so the GDL label with its hardcoded GUID will stop working.
So in the end it might be easier for maintenance to have a selection with UI_CUSTOM_POPUP_INFIELD somewhere in the label.
2021-07-28 10:20 PM
Podolsky wrote:Yes, you are right. This makes the GUID juggling much easier.
This is not a problem. The code I published above get property value by name. Just using three steps.
myPropToReq = "String of the Property Name" dim parentProperties[] r = request("Properties_Of_Parent", "", parentProperties) if r then propertyID = "" for i = 4 to vardim1(parentProperties) step 4 if parentProperties = myPropToReq then propertyID = parentProperties[i-3] endif next i propertyValues = "" r = request("Property_Value_Of_Parent", propertyID, type, dim1, dim2, propertyValues) endif text2 0, 0, propertyValues
2021-07-28 10:24 PM
runxel wrote:Endif not needed before next i
Podolsky wrote:Yes, you are right. This makes the GUID juggling much easier.
This is not a problem. The code I published above get property value by name. Just using three steps.
The code didn't run at first, but I took a second look and will put the code with the small missing piece here:
myPropToReq = "String of the Property Name" dim parentProperties[] r = request("Properties_Of_Parent", "", parentProperties) if r then propertyID = "" for i = 4 to vardim1(parentProperties) step 4 if parentProperties = myPropToReq then propertyID = parentProperties[i-3] endif next i propertyValues = "" r = request("Property_Value_Of_Parent", propertyID, type, dim1, dim2, propertyValues) endif text2 0, 0, propertyValues