Hello,
Consider Sales Order contains 100 Item lines...In that 99 th line is an dropshipment line which linked to an PO and receipted.Now what is required is ...From Receipt line,we need to jump to Sales order and in Subform-->Current record should point to 99 th line by default
and also Sales order displayed should be in non-editable by default.
when i tried the concept of SETRecord...i am getting an error 'Sales line cannot be modified in this form' may be because of non editable state...
In editable state also, i am getting an 'Do you want to rename a record'.
Any solution to achieve this requirement..?
0
Answers
In the sales header main form, in the OnOpenForm, you can call a function to check if the mainform must be editable or not.
In the OnOpenForm of the subform, call this function to now where to position:
Code for the OnOpenForm of the subform:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
i will do as you said above and let you know the feedback.
In OnOpenForm of Sales Order Subform...you have used
intLineNo := cduSingInstanceCodeunit.SalesOrderLineNoGet();
IF intLineNo <> THEN BEGIN
SETRANGE("Line No.",intLineNo);
END;
Setrange...will filter only that particular record...
I need to display all the Lines...but Currecord should be the one from receipt line(Sales order Line No.)
Thanks
In case the get gives an error, that he doesn't find the record with Document No = blank, then use this:
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
when we use Get in OnOpenform for CurRec...it says SalesLine Does not Exist...eventhough Salesline Exists..
we are not able to use Get in OnOpenForm....
Thanks
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
IF GET() THEN;
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
if we use FINDFIRST...then we need to provide filter condition too..
but we need to display all the records...only the record pointer should be moved appropriately...
Findfirst along with Get option working fine....
Thank you