Hi,
In screen designer we can add buttons on a custom object.
My customer want to be able to open an external url (sharepoint) related to the chosen id. The URL is also saved in an extrafield on the custom object.
Since it's an external URL I guess we can't use EventData and setNavigateTo, so I'll try to use "Open webpage" on the button and create a script that opens a URL with a cgiVariable. This works fine on tickets, but I can't figure out how we can take the custom object id from the URL and add it as a cgiVariable when running a script?
Alles Antwoorden (5)
Hit this limitation today again at a customer..., a wish has been registered for this earlier:
Wish: placeholder for custom object id
Would be great if this could be implemented, seems like a small change that would be very beneficial for custom object usage 😊
Hi!
Would love to see a bit more how you are working and what you are trying to do.
We have support for custom object varaibles in URL for SO protocols and URLs in "link buttons" or GUI Webpannels.
You can use varaibles like:
So if i need to get the ID of the custom object either that I have marked in an archive or am currently visiting as an entity
I can includ this in the URl
You can see the entire string if you hover over the extra filed on that table
Hi,
My use cases would be to open an url from a button or task menu on a custom object, that for example include the id field of the custom object currently open, or a string field like x_oc_id in your screenshot. What variable should we use for that?
Hi David.
It depends on if it´s a static url + a variable from the entity or a fully uniqe URL saved as a text string on a filed.
Unfortunally the Uniqe URL saved as a string is not that easy.
But having a standard url + custom object ID is not that hard to create.
Here is just an example, say that our bugs and wishes would be saved as custom enteties.
The URL we have in community is this
"https://community.superoffice.com/en/product-releases/bugs-wishes/product-issue/?bid=XXXXX&azure=1"
Where the XXX is the number of the bug/wish
I now set up a button or a link in the screen desgienr using the URL like this:
https://community.superoffice.com/en/product-releases/bugs-wishes/product-issue/?bid= y_extratablebug_x_itemnr &azure=1
Pressing on the button will open the URL for that bug/wish
based on the number
The varaible I used was bigger than y_"table name"_X_"filed name"
If I wish to use the ID number from the custom object I can use
y_extratablebug_id
Please note that the symbols is not saved, and I wrote my examples wihtout them and tried to provide images showig it
Hi Samuel, very weird syntax that it does not include the '.', but indeed it works with , only not when using it in a url of a custom object record in the right click context menu, then it uses the value from the last record you actually 'opened', instead of the row that is active, propably it uses the record that is in your currents.
How supported is this? since this is not documented anywhere (so far i can find)