Hi,
I need to store the values like
"Transaction Type"(Dropdown) -->
Value : Order ->should be showing caption is "Purchase Order"
Value : Return ->should be showing caption is "Sales Return"
So, when user is selecting the "Transaction Type" and they can see only "Purchase Order","Sales Return"
If choose "Purchase Order" i need to get the relavent VALUE for calculating purpose i.e "Order"
If choose "Sales Return", get the relavent VALUE for calculating purpose i.e "Return"
Regards,
Psk
0
Comments
OptionString: ,Order,Return
OptionCaptionML:ENU=" ,Purchase Order,Sales Return";PLK=" ,Zamówienie zakupu,Zamówienie zwrotu sprzedaży"
eg:
Field: "Transaction Type" ->property->SET
OptionString: ,Order,Return
OptionCaptionML:ENU=" ,Purchase Order,Sales Return"
When i print the value it's showing "Purchase Order" only not "Order"
or Is't need to set the 'option' in VARIABLE and assigned it into FIELD(transtype) ???????
If You have set up captions, system (by default) is going to use them. So whenever You will use this variable, You are going to get caption of chosen value as result.
There are some possibilities of changing it, like this:
viewtopic.php?f=5&t=6746&hilit=CodeUnit.run
want i need exactly is
While creating Table i hav set the Field "Transaction Type" is OPTION and goto property,SET
OptionString:" ,Order,Return"
OptionCaption = " ,Purchase Order,Sales Return"
OptionCaptionML:ENU=" ,Purchase Order,Sales Return"
then, create form based on the table.
When i select the DropDown(TransType) is 'Purchase'
code: Message(Rec."Transaction Type");
here the output is showing only "Purchase"
but i need to get the corresponding CAPTION value i.e "Order"
RIS Plus, LLC
MVP - Business Apps
Like
If myform.Transaction type = Poheader.Document type Then do statements...
..............
..............
First you set the correct optionString and Option Caption in the Field self
Property OptionString: Purchase Order,Sales Return
Property OptionCaptionML: ENU=Purchase Order,Sales Return;YOULANGUAGECODE=Purchase Order,Sales Return
So the system will ever display the string Purchase Order or Sales Return.
If you need on the form self a other optiondescription, you can change the property OptionCaptionML on the control on the form also.
for example to:
OptionCaptionML: ENU=Rabbit,Snake;YOULANGUAGECODE=Bunny,Cobra
Regards
RIS Plus, LLC
MVP - Business Apps