AyaNova service management & work order software
AyaNova Support Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        


Another example of combined script and making... Expand / Collapse
Author
Message
Posted 10/14/2009 11:32:38 AM
AyaNova Sales & Support

AyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & SupportAyaNova Sales & Support

Group: Administrators
Last Login: Yesterday @ 7:34:22 AM
Posts: 2,190, Visits: 5,029
Here is another example of a combined script. This example also includes the script how to set the label to not be visible if no unit selected.

Attached zipped report template is a further customization of the Sample Detailed Quote.

The example is based on that you want the label "Item submitted for repair:" to only show if a unit is actually selected in the quote.

To see the script used to do this, click on the label1 field and view its Before Print script from the Properties tab

private void OnBeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
{

//this combined script displays the label and the unit
label1.Text = string.Format("{0} {1}", "Item Submitted For Repair: ", DetailReportItem.GetCurrentColumnValue("LT_Unit_Label_Serial"));

//this states that if there is no Unit (unit is empty (whichis "")), to set the field label1 to not be visible
label1.Visible=(""!=(DetailReportItem.GetCurrentColumnValue("LT_Unit_Label_Serial").ToString()));

}

*Note the name of the field is exactly that of the field in your report

*In this combined script, we will be showing two, so there is only two listed  ("{0} {1}",

*Note that the name of the band matches that in the script



AyaNova Sales & Technical Support
http://www.ayanova.com


  Post Attachments 
Sample Detailed Quote with example combined script.zip (0 views, 18.33 KB)
Post #4874
« Prev Topic | Next Topic »

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: AyaNova Sales & Support

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 3:51pm

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.016. 9 queries. Compression Disabled.