05-04-2011 02:13 AM
Hi all,
Attached is my report. I want to have 5 things on it.
1. Lock all the 8 text box position
2. Lock the image on top left cornor
3. The Name text box should be validated. Only if the person is some ABC, then only he can fill the rest details or go to next page of report.
4. Only when the all the empty green color text boxes are filled, then only the person can move to next page of report.
5. When i run my script, the graph has to be displayed on the second sheet of my report (From Data Portal sheet).
I will run my script first, graph will go automatically to second page. but the user can view only first page. After filling it and validating the name then only the user can view the second page graph plotted for his data.
Is there a way to do all these in DIAdem report. Need urgently. plz help
thnx in adv
Rsh.
Solved! Go to Solution.
05-04-2011 03:20 PM
Hello Rsh,
What you will have to do here is to create a user dialog box in DIAdem SCRIPT and then add that dialog box to a Script, along with the call of the REPORT layout you have created.
Here are the general steps you have to take:
I have created an example for that scenario. The files required for this are in the ZIP file below. You will have to use my updated layout file as well, as attached.
For information about user dialogs, search for the following term in the DIAdem help system please: "Dialog Boxes, Create user dialog boxes"
Let me know if that does what you are looking for,
Otmar
05-04-2011 10:48 PM
Hi Otmar,
your.sud file was not opening. I did it as mentioned and it worked.
But for me I want these name, customer project, sample number and build level to be displayed on the report. The intension is, wheni take a print out of my report, one can see who has done that test (Name), for whom (customer) sample and build level . So i need a copy of these 4 text values in the report. What is the best way to achieve this??
MAny thanks,
Rsh
05-05-2011 04:34 PM
Hello Rsh,
I used DIAdem 2010 to create the example, and you would have to use the same version in order for the SUD to work.
The way to get the name, customer project, sample number and build level into the report is to create a user dialog, let the user enter the information there, and then transfer the variables to the report and update the report (as is done in my previous example).
There is no way to force the user to enter anything in the report directly.
Please watch the attached AVI video to see how this is supposed to work with a user dialog ...
05-06-2011 01:24 AM
Hi Otmar,
1. Very sorry that the avi file neigther be downloaded nor be played. Can you zip the avi file and upload please.
And, 1 more question,
2.I have created a master layout.tdmr for my below image(sample.jpg). But I am unable to load the same master file for script when run. How to make master layout as default for my report.
Rsh
05-06-2011
05:11 PM
- last edited on
05-06-2011
05:25 PM
by
Laura F.
Here's the video in a ZIP file.
I'll look into the Master Layout question later this week ...
05-08-2011 04:19 AM
Thank you Otmar,
How can i pull the user form variables T1 - T4 into my report?
I am sending my files in attachment. I am done with my sript and its working as required. But I have problem with my report only.
The image picture1.jpg contains all the details which i want to display on report.
Each and every time i have to struggle with moving the text box foreground in my current tdr file.
Help me getting this report with all the details in my jpg image
Rsh
05-09-2011 06:47 PM - edited 05-09-2011 06:48 PM
Hello Rashmi,
You can include the T1 - T4 variables simply be adding a text to the layout that contains the following statement:
@@T1@@
You can combine that with text, for instance like this:
Operator name: @@T1@@
The "@@" indicates to DIAdem that the statement included inside the @@ characters is a variable reference.
I noticed a few things in your layout that can be improved, but it would be much easier to discuss this on the phone vs. writing long messages here.
When would be a convenient time for you to get on the phone (I am in the Central Time Zone in the US, and have no problem getting on the phone later in the evening my time if that works best for you. I will set up a web sharing session to share screens.
Otmar
05-12-2011 02:15 AM
Hi Otmar,
Many thanks for your time and concern. @@ T1 @@ worked great for me. I spent an hour on how to display it on my report. You saved my time.
I will update you soon about web sharing session. Its a great help for me.
But befor that, I have one more similar question , May be very simple for you.
" I have defined a combo box on my user form and have defined 3 names in that. Hence I have 3 elements in List items. (properties window) And I have defined the variable as "w" in properties window to the combo box . I dont know if its correct variable form.
I want to display the defined names on my report, So i gave @@ w@@. But it displays the value of the name say 1, 2 and 3.
How can i define it to display the name on my report??"