--------------------------------------------------------------------------------
Please note, that there is no warranty about this description it is tested on W2K and SC 4.04 (out of the box version).
You can use other file names if you want but if you are not trained in this please use these names cause of mistakes that could occur of typing the stuff in to it.
pos no :
1- Create file (dbdict) --->cchis
2- Enter the following values into cchis file:
cc.counter -- number -- unique
cc.id -- number -- IR KEY
cc.action -- array
cc.action -- ch
cc.icm --ch
cc.op --ch
cc.date -- d/t
--------------------------------------------------------------------------------
3- Open the problem file (dbdict)
Check / ADD the following entries:
p.id -- number
p.counter -- number -- unique
p.action -- array
p.action -- ch
operator
number
p.date -- d/t
--------------------------------------------------------------------------------
4-open the form in forms designer: problem.template.update.g
Add this value into it: p.id
--------------------------------------------------------------------------------
5- open the form in forms designer : problem.template.update.g
Add / Check the follwing entries :
p.id
p.action
operator
p.date
p.counter
number
--------------------------------------------------------------------------------
Create new form based on dbdict cchis called cc.his.g
value cc.id
value cc.counter
value cc.action -- multitext
value cc.icm
value cc.op
value cc.date
--------------------------------------------------------------------------------
Go to the LINK menu and create a new link file called --->cchis1.post
source:
p.counter -- cchis -- cc.counter
2nd line
p.counter -- cc.counter
p.action -- cc.action
number -- cc.icm
operator -- cc.op
p.date -- cc.date
p.id -- cc.id
--------------------------------------------------------------------------------
GO TO Forms designer open form -->problem.template.open.g
options -- Format control -- subroutines --
Click options -- expand form ---
enter the following data:
Application : getnumb.fc
error message cannot get number for p.id
record -- $file
name -- cchis
prompt -- p.id
Add = true
Before=true
Display=true
--------------------------------------------------------------------------------
Go to DB MANAGER -- open form -- number
class= cchis
Number starts with 0
click ADD and exit.
--------------------------------------------------------------------------------
Go back to FORMS DESIGNER open a nother form called : Problem.template.update.g
go to options : Format control -- subroutines -- again options -- expand form:
Enter at a free line:
Application: getnumb.fc
error message cannot get number for p.couter
record -- $file
name -- cchis1
prompt -- p.counter
add =true
Before= true
next free line
Application: post.fc
error message cannot post in cchis file
file -- $file
name -- cchis1.post
prompt -- p.id
Add=true
update=true
Before=true
--------------------------------------------------------------------------------
Go to DB MANAGER -- open form -- number
class= cchis1
Number starts with 0
click ADD and exit.
--------------------------------------------------------------------------------
OPEN FORMS DESIGNER AGAIN open form-->problem.template.update.g
Add another TAB into the form and add a sub form:
INPUT ---p.id
FORMAT ---cc.his.g
Display blank = NO
Virtual join = YES
Also edit the the corrective actions field if you want from $pmc.actions to p.actions for the free text.
--------------------------------------------------------------------------------
close the forms designer and go back to FORMAT CONTROL:
go to CALCUCALTIONS and add a new line: Display=true
p.date in$file=tod()
--------------------------------------------------------------------------------
Exit Fomat control and click options to LINK and enter at the last line the virtual join link.
source:
p.id -- cchis -- cc.id
second line p.id -- cc.id
--------------------------------------------------------------------------------
Open the form cc.his.g again in forms designer and link to the file cchis.
--------------------------------------------------------------------------------
Now if you open a new problem ticket and you save it it will be assigned with a new unique number.
if you update this special ticket. all changes are POSTED to the cchis file. with a seperate unique number again.
This unique changes/updates are shown in the virtual join.
Cause of this unique numbers you are also able to create buttons in this cc.his.g form and link it to another detailed screen.
Hope that this fast explanation is good enough for now. I am in time pressure.
Regards,
John.:smile: :grin:


Reply With Quote
Bookmarks