We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
Hi,
I am searching a text in farpoint spread sheet by using:
bwSpread.Search(0,"300100",true,true,true,false,3,0, foundRowID, foundColID);
I am not able to get any value in foundRowID, foundColID although defined text "300100" exist in the sheet.
Please help.
It looks like foundRowID and foundColID are by-reference parameters, and JScript/JavaScript do not support passing parameters by reference.
A possible workaround is to install the https://support.smartbear.com/images/support/kb/data/2012/12/24/OutParameterWrapper.tcx extension and call the Search method using this extension. In this case you should be able to get the values of by-reference parameters. The code would be like this:
var params = [0, "300100", true, true, true, false, 3, 0, 0, 0]; // The last two 0's are foundRowID and foundColID params = ConvertJScriptArray(params); // function code can be found at https://support.smartbear.com/viewarticle/42197/
var result = OutParameterWrapper.CallObjectMethod(bwSpread, "Search", params).toArray(); var foundRowID = result[8]; // 9th parameter of the Search method var foundColID = result[9]; // 10th parameter of the Search method
I don't have any FarPoint Spread apps so I can't test this code, but I hope it gives you the idea.
It looks like foundRowID and foundColID are by-reference parameters, and JScript/JavaScript do not support passing parameters by reference.
A possible workaround is to install the https://support.smartbear.com/images/support/kb/data/2012/12/24/OutParameterWrapper.tcx extension and call the Search method using this extension. In this case you should be able to get the values of by-reference parameters. The code would be like this:
var params = [0, "300100", true, true, true, false, 3, 0, 0, 0]; // The last two 0's are foundRowID and foundColID params = ConvertJScriptArray(params); // function code can be found at https://support.smartbear.com/viewarticle/42197/
var result = OutParameterWrapper.CallObjectMethod(bwSpread, "Search", params).toArray(); var foundRowID = result[8]; // 9th parameter of the Search method var foundColID = result[9]; // 10th parameter of the Search method
I don't have any FarPoint Spread apps so I can't test this code, but I hope it gives you the idea.
Thanks Helen Kosova. It worked !!!
I have not automated any FarPoint Spread but i can say based on the line pasted here,
bwSpread.Search(0,"300100",true,true,true,false,3,0, foundRowID, foundColID);
foundRowID, foundColID fields should be your input since when you call function you should be inputting all the parameters.
So, Can you please share the error message and some screenshot of the object and all. it would be helpful if you share these