Hello ,
in Job table i have Field MS Project Type
Field No. Field Name Data Type Length Description
50042 MS Project Type Option
The option value are :
,Admin,Co-Funding,Consulting,Continuous Improvements,Customer PO- Integration,.........ect
how to make a loop instead ?
ListTypeProject:=ListTypeProject + FORMAT(recJobs."MS Project Type"::Admin) ;
ListTypeProject:=ListTypeProject +',' + FORMAT(recJobs."MS Project Type"::"Co-Funding");
ListTypeProject:=ListTypeProject +',' + FORMAT(recJobs."MS Project Type"::Consulting);
ListTypeProject:=ListTypeProject +',' + FORMAT(recJobs."MS Project Type"::"Continuous Improvements");
ListTypeProject:=ListTypeProject +',' + FORMAT(recJobs."MS Project Type"::"Customer PO- Integration");
Thanks
Mounir Haroun
0
Comments
Note that this is not a foolproof solution, you may need to add some code handling cases when the i var hits in the loop gaps in the option sting (in order to handle cases when the option string is defined like this: ...,SomeOptVal1,,SomeOptVal2... )
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
In this case you don't have to modify code if new option is added.
third party program using web service
C# in my odata function i don't find this global variable, but i can find fields of table job.
suggestion or idea , how to passed options to third party program using web service
Thanks
I will request you to verify the current answer and make a new thread for this Question.
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/
Thanks
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03