Hi All,
I am doing a processing only report where it has to show a message, where if the purchase description is " ", for a item then it has to take from the sales description of my item pageextension but if the purchase description is null also only some items are showing its sales description but some are not showing the sales description, why it is coming like that can anyone help me my code is
Trigger OnafterGetRecord()
begin
clear(Description_Custom);
if Item.Get("Purchase Line"."No.") then
if item."Purchase Decription" = '' then
Description_Custom := Item."Sales Decription"
else
Description_Custom := Item."Purchase Decription";
Message('%1,%2',Item.No., Item.Description_Custom);
end;
Below I am attaching the message, if anybody know why it is coming like this help me.
Thanks & Regards
Satish.
Seems that you are not able to describe your requirement, can you please put some screen shot or brief it more
Thanks
Hi Nithin,
I have tried in the way what you said but again also it is not coming, can you have any other suggestions, Thank you very much for your help.
Thanks & Regards
Satish.
Can you try this?
Trigger OnafterGetRecord()
begin
clear(Description_Custom);
if "Purchase Line".type = "Purchase Line".type::Item then begin
if Item.Get("Purchase Line"."No.") then
if item."Purchase Decription" <> '' then
Description_Custom := Item."Purchase Decription";
if item."Sales Decription" <> '' then
Description_Custom := item."Sales Decription";
Message('%1,%2', Item.No., Description_Custom);
end;
end;
Hi Nitin,
I am doing a processing only report, I want to show a message of the item No., item Description, in the item table I have given two custom fields, where purchase description and sales description, if the purchase description is blank, it has to take the value from sales description, but for some items it is taking the sales description values for some items and for some items it is showing null, I didn't insert any values in the purchase description.
Thanks & Regards
Satish
You code seems right to me, where is the problem I did not get you properly.
Thanks
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156