Having now spent a few hours on this challenge I ask for some advice.
I have succesfully created a function as below that allows me to view more information from a specific record. this idea was taken from a sample and modified for our needs.
void print.MoreInfo(int LoadNumber)
{
openUrl("#View:InboundLoadSummary?LoadNumber=" + input.LoadNumber + "&hideprint=true", "same window");
}
The concatenation works fine and I noted from the sample that the ZOHO domain, username and appname were not required as the openURL action obviously added that automatically to the URL string. Anyway, this works BUT ...
I have now tried to modify this to go straight to print rather than a view and trying to use the functionality based URL's defined in the help. My result looks like this :
void print.MoreInfo(int LoadNumber)
{
openUrl("print/InboundLoadSummary/LoadNumber=" + input.LoadNumber);
}
I have tested the URL manually (typed it in as I believe it should be formed) and it works fine. I have even put the whole URL in the function without concatenation as follows:
void print.MoreInfo(int LoadNumber)
{
openUrl("http://creator.zoho.co/myaccount/mayapp/print/InboundLoadSummary/LoadNumber=" + input.LoadNumber);
}
and I still get the same error.
The error is
Index:1 , Size 1
I cannot work it out and as I am new to the whole Functionalty based URL thing, suspect that my lack of understanding may be the problem but I cannot find any other way to achieve what I want.
PLEASE HELP if you can - any information would be appreciated.
Stubaloo