1
00:00:04,790 --> 00:00:09,620
In this lecture we're going to build a quick user interface using Graphics designer.

2
00:00:09,620 --> 00:00:13,370
So I'm going to go to the graphics designer.

3
00:00:13,370 --> 00:00:15,740
We'll end up adding another button here.

4
00:00:16,130 --> 00:00:19,010
I'll just duplicate our Manage staff button.

5
00:00:19,010 --> 00:00:23,330
And then I'll just add the text reports here.

6
00:00:23,330 --> 00:00:28,790
If you recall, this just runs a VB script that shows a picture window.

7
00:00:28,790 --> 00:00:35,530
So we're going to create a picture window that will allow us to set up the tags and preview our report.

8
00:00:35,530 --> 00:00:39,040
And then we'll come back and then we will change this.

9
00:00:39,910 --> 00:00:44,860
So now I'll just hit save here and then we'll do a new PDL.

10
00:00:44,860 --> 00:00:47,800
I'm just going to just kind of make this small.

11
00:00:47,800 --> 00:00:52,900
So let's say the width is going to be 750.

12
00:00:52,900 --> 00:00:54,700
I'm just kind of guessing here.

13
00:00:54,710 --> 00:00:59,060
and maybe 400, maybe a little narrow, maybe 300.

14
00:00:59,300 --> 00:01:02,030
We will turn off our global color scheme.

15
00:01:02,030 --> 00:01:11,630
And let's just put a banner up here and we'll make this production orders report, turn off our global

16
00:01:11,630 --> 00:01:16,640
effects, and just set a few properties here that we want.

17
00:01:16,730 --> 00:01:19,580
Maybe make this green, give it a white font.

18
00:01:19,600 --> 00:01:21,610
and we need our tags.

19
00:01:21,610 --> 00:01:25,480
So I will go to our tags dialog here.

20
00:01:25,480 --> 00:01:30,550
And under reporting I'll do my begin date and my end date.

21
00:01:31,510 --> 00:01:34,840
And we're going to grab some static text.

22
00:01:35,260 --> 00:01:43,810
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

23
00:01:43,810 --> 00:01:45,360
tags out of the way.

24
00:01:45,360 --> 00:01:50,400
And this I feel that is my begin date.

25
00:01:50,400 --> 00:01:52,740
So I will just move it up here.

26
00:01:52,740 --> 00:01:59,640
And then I can highlight begin, copy the properties out of it, paste the properties down in there.

27
00:01:59,640 --> 00:02:02,700
And that will give it the same font size and everything.

28
00:02:02,700 --> 00:02:06,930
And then I'll select them both and just kind of align them.

29
00:02:06,930 --> 00:02:11,200
Then I'll use my arrow keys to kind of line them up And then same thing here.

30
00:02:11,200 --> 00:02:19,630
I'll just move the end date over here, highlight my begin date, then highlight my end date and create

31
00:02:19,630 --> 00:02:21,010
the same size.

32
00:02:21,010 --> 00:02:24,250
And we will copy the properties out of that.

33
00:02:24,250 --> 00:02:28,270
Paste them in there and I'll use my arrow keys.

34
00:02:28,540 --> 00:02:30,790
Now the date is kind of long.

35
00:02:30,790 --> 00:02:31,930
That's kind of a big font.

36
00:02:31,930 --> 00:02:39,960
So I'm just going to make these kind of big and I will duplicate here, use my arrow keys to kind of

37
00:02:39,960 --> 00:02:42,540
move this around there's end.

38
00:02:42,540 --> 00:02:50,820
And then I'll select both of these and center these up and maybe make them different colors here to

39
00:02:50,820 --> 00:02:53,580
turn off my global color scheme for these.

40
00:02:53,910 --> 00:02:58,200
And I'll also turn off the global color scheme for these as well.

41
00:02:58,200 --> 00:03:05,420
Now one thing that we want to do is, you know, that we have start values in these tags for the dates.

42
00:03:05,420 --> 00:03:09,080
And when we click we don't want to blow that away.

43
00:03:09,080 --> 00:03:11,270
Maybe we just want to change one character.

44
00:03:11,270 --> 00:03:13,970
And I think it's on user defined two.

45
00:03:15,020 --> 00:03:17,330
And we will do clear on new input.

46
00:03:17,330 --> 00:03:19,340
We're going to change that to no.

47
00:03:19,370 --> 00:03:23,540
That way when we click in there it won't clear the input.

48
00:03:23,540 --> 00:03:25,440
And I'll hit save there.

49
00:03:25,440 --> 00:03:33,450
And we're going to just save this as production orders report.

50
00:03:33,480 --> 00:03:35,280
Spell that right there.

51
00:03:35,520 --> 00:03:36,450
Hit save.

52
00:03:37,020 --> 00:03:40,920
Now we need a button to generate our print or preview.

53
00:03:40,920 --> 00:03:42,930
So I'll just grab a button here.

54
00:03:43,170 --> 00:03:47,370
And for our text we will just call this Preview report.

55
00:03:48,450 --> 00:03:56,900
Now we have to use C script for this because there is no VBS interface to the report manager.

56
00:03:56,900 --> 00:03:58,850
And I'm a little surprised at that.

57
00:03:58,850 --> 00:04:00,680
But it is what it is.

58
00:04:00,680 --> 00:04:07,430
So we got preview report I'll turn off my effects I don't know maybe make that purple.

59
00:04:07,910 --> 00:04:10,340
And we're going to go to events.

60
00:04:10,340 --> 00:04:14,030
And before I do this we're going to go back to Control Center.

61
00:04:14,170 --> 00:04:21,820
go to our print job, and I'm just going to copy this name just because I'll probably end up spelling

62
00:04:21,820 --> 00:04:22,720
it wrong or something.

63
00:04:22,720 --> 00:04:23,950
So it's just production orders.

64
00:04:23,950 --> 00:04:31,270
And now going back to Graphics designer on the button, I will just do a release left and we'll do see

65
00:04:31,270 --> 00:04:32,020
action.

66
00:04:32,800 --> 00:04:35,290
And this is just for cross reference.

67
00:04:35,290 --> 00:04:37,660
Just for simplicity's sake, I'm going to get rid of this.

68
00:04:37,660 --> 00:04:43,560
I do like the line numbers that they put in when CC version eight, but under standard functions there

69
00:04:43,560 --> 00:04:49,860
is a report set of functions and there's RPT job preview job print show error.

70
00:04:49,860 --> 00:04:51,540
We want to do a preview.

71
00:04:51,540 --> 00:04:54,540
So I'll just right click and do parameter supply.

72
00:04:55,170 --> 00:04:58,860
And I can just paste in my production orders.

73
00:04:58,860 --> 00:05:04,840
I'm putting it in double quotes because the strings in C require double quotes.

74
00:05:04,840 --> 00:05:06,850
So if you don't put that on there, it won't work.

75
00:05:06,850 --> 00:05:13,660
And basically this is the same as right clicking on our print job and choosing preview.

76
00:05:13,660 --> 00:05:16,000
So I'll right click and do compile.

77
00:05:16,330 --> 00:05:18,010
It says no errors no warnings.

78
00:05:18,010 --> 00:05:19,270
That's pretty good.

79
00:05:19,450 --> 00:05:21,430
So we'll save this.

80
00:05:21,430 --> 00:05:26,560
And then I'm going to put one other thing in here under Smart Objects there's an application window.

81
00:05:27,250 --> 00:05:31,200
And just to show you what it is, I'm going to pull it out here.

82
00:05:31,350 --> 00:05:36,330
And instead of global script, I'll do print jobs click okay.

83
00:05:36,330 --> 00:05:39,420
And then I'll do all jobs context menu.

84
00:05:39,420 --> 00:05:40,620
You'll see what that is.

85
00:05:40,650 --> 00:05:41,190
Okay.

86
00:05:41,190 --> 00:05:43,410
So we're going to save this.

87
00:05:43,410 --> 00:05:46,950
And then the name of this screen is Production Orders Report.

88
00:05:47,430 --> 00:05:51,540
We'll go back to our reports button.

89
00:05:51,840 --> 00:05:55,130
And we need to put that in here.

90
00:05:55,130 --> 00:05:56,630
So I'll highlight that.

91
00:05:56,630 --> 00:06:00,140
And then this is a picture selection dialog.

92
00:06:00,140 --> 00:06:02,210
That way I don't have to type it.

93
00:06:02,510 --> 00:06:05,420
Here's my production orders PDL.

94
00:06:05,420 --> 00:06:11,330
So basically this open screen and pop up will just show this in a pop up window.

95
00:06:11,330 --> 00:06:12,590
Just kind of make it nice.

96
00:06:12,590 --> 00:06:16,190
So let's go test it out I'll click okay save.

97
00:06:16,190 --> 00:06:19,950
And we'll just go to runtime and hit reports.

98
00:06:20,310 --> 00:06:20,790
All right.

99
00:06:20,790 --> 00:06:23,460
Here's our little report thing here.

100
00:06:23,460 --> 00:06:25,350
Here's my start menu.

101
00:06:25,350 --> 00:06:31,320
And then this just lists out all the print jobs that we have.

102
00:06:31,320 --> 00:06:33,690
And these are all generated by the system.

103
00:06:33,690 --> 00:06:35,820
You can tell because the layouts have the app.

104
00:06:35,820 --> 00:06:37,620
But if you go to user then we have this.

105
00:06:37,620 --> 00:06:40,380
And I could actually right click and print this from here.

106
00:06:40,380 --> 00:06:42,180
Or I could do a preview.

107
00:06:42,180 --> 00:06:45,260
And so here's the production report.

108
00:06:45,260 --> 00:06:46,730
Pull it from the tags.

109
00:06:46,760 --> 00:06:50,030
We can also just hit preview here.

110
00:06:50,060 --> 00:06:52,700
It's going to do the exact same thing.

111
00:06:52,700 --> 00:06:54,950
So we've got kind of a nice interface.

112
00:06:54,950 --> 00:06:56,540
Now let's just go change these.

113
00:06:56,540 --> 00:07:01,160
Now when I click in here notice it doesn't clear the field as maybe you thought it might.

114
00:07:01,160 --> 00:07:08,780
So I'm just going to do 2002 two 4 to 2003 two four.

115
00:07:09,170 --> 00:07:09,770
All right.

116
00:07:09,770 --> 00:07:11,420
And you have to hit enter.

117
00:07:11,420 --> 00:07:13,460
So I didn't hit enter on that.

118
00:07:13,460 --> 00:07:15,050
So now we have new dates.

119
00:07:15,050 --> 00:07:16,640
Let's hit preview.

120
00:07:16,640 --> 00:07:22,100
And here we've got you can see 2002 two four.

121
00:07:22,100 --> 00:07:25,310
And we've got several pages worth of data.

122
00:07:25,310 --> 00:07:25,670
All right.

123
00:07:25,670 --> 00:07:33,350
So we now have this interface where we can enter in the report data that we want and preview it or print

124
00:07:33,350 --> 00:07:33,620
it.

125
00:07:35,210 --> 00:07:41,540
In the next assignment, you'll get a chance to build your own CC screen where you can print or preview

126
00:07:41,570 --> 00:07:42,500
your report.

127
00:07:42,500 --> 00:07:44,030
So I'll see you there.
