Hi,
is it possible to get a record with a string of pk-values?
something like this:
string: 'Quote,1002'
SalesHeader.GET(string);
This does not work, because "can´t convert string into option" (error). Is there any solution for this? (recref does not exist in 2.60...)
thanks!
0
Comments
In the later Version take a look on Rec.GetPosition() / Rec.SetPosition()
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Split you string into 2 - one for "Document Type" and one for "No.", and then use them in the following way:
string1 := 'Quote'; string2 := '1002'; SalesHeader.setfilter("Document Type",string1); SalesHeader.setfilter("No.",string2); SalesHeader.FIND('-');
In this way you don't have to convert the option field.
As garak & kriki allready has mentioned - in this version you are not able to use GETPOSITION/SETPOSITION.
Therefore your only way is to use filters.
My techblog
Meet me @ LinkedIn