please find a code here :- [#Part: VTYP Behaviour] Add:Line:At End:VTYP_ADD [Line:VTYP_ADD] Field:Long Prompt,inv Local:Field:Long Prompt:Info:"Enable Invoice Format" Local:Field:Lomg Prompt:Color:red [Field:inv] Type:Logical Use:Logical Field Storage:inv [System:UDF] inv:logical:40150 [#Part : EXPINV OpPageBreak] Add : Part : At Beginning : DemoTDL [Part : DemoTDL] Horizontal Alignment:Right Line:Empty invisible:Not $$InPrintMode Graph type:"C:\Users\Javeed\Desktop\tdlof valve fit\ALAMEEN_LOGO.jpg" Width : 100% screen Height : 12% screen
Try This, Code: [#Part: VTYP Behaviour] Add:Line:At End:VTYP_ADD [Line:VTYP_ADD] Field:Long Prompt,inv Local:Field:Long Prompt:Info:"Enable Invoice Format" Local:Field:Lomg Prompt:Color:red [Field:inv] Type:Logical Use:Logical Field Storage:inv [System:UDF] inv:logical:40150 [System: Formula] EnableInvFormat : $inv:VoucherType:##SVVoucherType = "Yes" [#Part : EXPINV OpPageBreak] Add:Option : MyEXPINV OpPageBreak:@@EnableInvFormat [!Part:MyEXPINV OpPageBreak] Add : Part : At Beginning : DemoTDL [Part : DemoTDL] Horizontal Alignment:Right Line:Empty invisible:Not $$InPrintMode Graph type:"C:\Users\Javeed\Desktop\tdlof valve fit\ALAMEEN_LOGO.jpg" Width : 100% screen Height : 12% screen
Thank you but it should work with if condition .let say if condition say's yes than only that tdl should work
You can use "Option" or "Switch" if you want to execute code only if the condition is true. Code: [#Part: VTYP Behaviour] Add : Option : My VTYP Behaviour : <Your Condition> [!Part : MyVTYP Behaviour] Add:Line:At End:VTYP_ADD