In this lecture we're going to build a quick user interface using Graphics designer.
So I'm going to go to the graphics designer.
We'll end up adding another button here.
I'll just duplicate our Manage staff button.
And then I'll just add the text reports here.
If you recall, this just runs a VB script that shows a picture window.
So we're going to create a picture window that will allow us to set up the tags and preview our report.
And then we'll come back and then we will change this.
So now I'll just hit save here and then we'll do a new PDL.
I'm just going to just kind of make this small.
So let's say the width is going to be 750.
I'm just kind of guessing here.
and maybe 400, maybe a little narrow, maybe 300.
We will turn off our global color scheme.
And let's just put a banner up here and we'll make this production orders report, turn off our global
effects, and just set a few properties here that we want.
Maybe make this green, give it a white font.
and we need our tags.
So I will go to our tags dialog here.
And under reporting I'll do my begin date and my end date.
And we're going to grab some static text.
And I'll just set this up and let's go ahead and set our font up so that we can read these move these
tags out of the way.
And this I feel that is my begin date.
So I will just move it up here.
And then I can highlight begin, copy the properties out of it, paste the properties down in there.
And that will give it the same font size and everything.
And then I'll select them both and just kind of align them.
Then I'll use my arrow keys to kind of line them up And then same thing here.
I'll just move the end date over here, highlight my begin date, then highlight my end date and create
the same size.
And we will copy the properties out of that.
Paste them in there and I'll use my arrow keys.
Now the date is kind of long.
That's kind of a big font.
So I'm just going to make these kind of big and I will duplicate here, use my arrow keys to kind of
move this around there's end.
And then I'll select both of these and center these up and maybe make them different colors here to
turn off my global color scheme for these.
And I'll also turn off the global color scheme for these as well.
Now one thing that we want to do is, you know, that we have start values in these tags for the dates.
And when we click we don't want to blow that away.
Maybe we just want to change one character.
And I think it's on user defined two.
And we will do clear on new input.
We're going to change that to no.
That way when we click in there it won't clear the input.
And I'll hit save there.
And we're going to just save this as production orders report.
Spell that right there.
Hit save.
Now we need a button to generate our print or preview.
So I'll just grab a button here.
And for our text we will just call this Preview report.
Now we have to use C script for this because there is no VBS interface to the report manager.
And I'm a little surprised at that.
But it is what it is.
So we got preview report I'll turn off my effects I don't know maybe make that purple.
And we're going to go to events.
And before I do this we're going to go back to Control Center.
go to our print job, and I'm just going to copy this name just because I'll probably end up spelling
it wrong or something.
So it's just production orders.
And now going back to Graphics designer on the button, I will just do a release left and we'll do see
action.
And this is just for cross reference.
Just for simplicity's sake, I'm going to get rid of this.
I do like the line numbers that they put in when CC version eight, but under standard functions there
is a report set of functions and there's RPT job preview job print show error.
We want to do a preview.
So I'll just right click and do parameter supply.
And I can just paste in my production orders.
I'm putting it in double quotes because the strings in C require double quotes.
So if you don't put that on there, it won't work.
And basically this is the same as right clicking on our print job and choosing preview.
So I'll right click and do compile.
It says no errors no warnings.
That's pretty good.
So we'll save this.
And then I'm going to put one other thing in here under Smart Objects there's an application window.
And just to show you what it is, I'm going to pull it out here.
And instead of global script, I'll do print jobs click okay.
And then I'll do all jobs context menu.
You'll see what that is.
Okay.
So we're going to save this.
And then the name of this screen is Production Orders Report.
We'll go back to our reports button.
And we need to put that in here.
So I'll highlight that.
And then this is a picture selection dialog.
That way I don't have to type it.
Here's my production orders PDL.
So basically this open screen and pop up will just show this in a pop up window.
Just kind of make it nice.
So let's go test it out I'll click okay save.
And we'll just go to runtime and hit reports.
All right.
Here's our little report thing here.
Here's my start menu.
And then this just lists out all the print jobs that we have.
And these are all generated by the system.
You can tell because the layouts have the app.
But if you go to user then we have this.
And I could actually right click and print this from here.
Or I could do a preview.
And so here's the production report.
Pull it from the tags.
We can also just hit preview here.
It's going to do the exact same thing.
So we've got kind of a nice interface.
Now let's just go change these.
Now when I click in here notice it doesn't clear the field as maybe you thought it might.
So I'm just going to do 2002 two 4 to 2003 two four.
All right.
And you have to hit enter.
So I didn't hit enter on that.
So now we have new dates.
Let's hit preview.
And here we've got you can see 2002 two four.
And we've got several pages worth of data.
All right.
So we now have this interface where we can enter in the report data that we want and preview it or print
it.
In the next assignment, you'll get a chance to build your own CC screen where you can print or preview
your report.
So I'll see you there.