I am not certain this function is working as described in the manual. As I understand it this function should return any arguments passed via the URL to a web client in the form of and array. I would therefore expect to get an array returned and be able to split this using the format array[0] for the first item etc
I have done a simple test site which can be accessed at the following address
Although strange that makes sense based on the response I am getting from the web client. The docs suggest its all passed as an array and I would wonder why Servoy would have changed the approach - array seems a lot easier for all concerned !!
starting from version 5, getStartupArguments can return null,
if no arguments are used, or an array with 2 elements : the first
element is the value of the ‘argument’ used in the startup link,
and the second element is a javascript object containing all the
startup arguments identified by names
Thanks for this - it makes sense and explains the object in argument 2 that was being returned
This whole revisit of the arguments started with the intention of using Servoy to listen for IPN returns from Paypal. They send a string in the form Pay, Send and Save Money with PayPal | PayPal US - I concluded that it was therefore not possible to get Servoy to listen for this response and have instead used a PHP listner and had it pass the details to Servoy as it prefers ie your suggested format.
using application.getStartupArguments() do not always return the correct arguments.
This occurs whenever you have an active session already.
for Mac users this is real easy as Safari doesn’t close by default, windows users experience this for example clicking a 2nd link when there’s already a webclient connected in another tab of your browser.
ss/s are a shortcut for solutions/solution that makes the URL easier to read
a = arguments ? wont work with Servoy
m = the method that receives the arguments and this needs to be a global
@properties={typeid:24,uuid:“BAF06510-68E4-4A2D-8D56-803F4FE0CA66”}
*/
function SomeMethod(arg)
{
application.output('Success :- '+ arg);
}
but arguments was not received by the global method in the solution. It was displaying the message as Success :- undefined.
I don’t know were am going wrong please help me out…???