Hi,
I have 2 problems
1.
I have a form where on entry and upon several button pushes
a script (inline) is run which among other things hides and shows certain items on the form.
The problem is that I have run out of space for several of them so I am trying to find a way of cutting down the scripting either by being able to do multiple hides or shows on 1 line or to try and put 'parentform' as a variable so it doesnot have to be typed each time in full only say 'PF' so as to give me the space I need.
Enclosed is a sample of one of the scripts to explain.
Any ideas would be most helpful.
this.disable()
response=ui_msg_box("Question","Save Current Customer?",35)
If response=6 Then
If isnotblank("company") then
parent.commit()
else
cancel()
end if
Elseif response=7 Then
cancel()
Elseif response=2 Then
goto out
End If
parentform:Text37.show()
parentform:Frame19.show()
parentform:Button25.show()
parentform:Button26.show()
parentform:Button27.show()
parentform:Button28.show()
parentform:Button3.show()
parentform:Search_For.show()
parentform:Search_By.show()
parentform:Search_By_Lbl.show()
parentform:List_Company.show()
parentform:List_Name.show()
parentform:Browse_Label.show()
parentform:Button6.show()
parentform:Button1.hide()
parentform:Button2.show()
parentform:Button4.hide()
parentform:Button26.activate()
parentform:Button5.hide()
parentform:Button7.show()
parentform:Text13.text="EDITING CUSTOMER"
parentform:Text13.refresh()
this.enable()
End
out:
this.enable()
2.
what would the script be to delete and then pack a record on a button and would this delete the 1-many (cascaded changes) records linked to it also (which I want it to).
Again thanks for your help
Mike
I have 2 problems
1.
I have a form where on entry and upon several button pushes
a script (inline) is run which among other things hides and shows certain items on the form.
The problem is that I have run out of space for several of them so I am trying to find a way of cutting down the scripting either by being able to do multiple hides or shows on 1 line or to try and put 'parentform' as a variable so it doesnot have to be typed each time in full only say 'PF' so as to give me the space I need.
Enclosed is a sample of one of the scripts to explain.
Any ideas would be most helpful.
this.disable()
response=ui_msg_box("Question","Save Current Customer?",35)
If response=6 Then
If isnotblank("company") then
parent.commit()
else
cancel()
end if
Elseif response=7 Then
cancel()
Elseif response=2 Then
goto out
End If
parentform:Text37.show()
parentform:Frame19.show()
parentform:Button25.show()
parentform:Button26.show()
parentform:Button27.show()
parentform:Button28.show()
parentform:Button3.show()
parentform:Search_For.show()
parentform:Search_By.show()
parentform:Search_By_Lbl.show()
parentform:List_Company.show()
parentform:List_Name.show()
parentform:Browse_Label.show()
parentform:Button6.show()
parentform:Button1.hide()
parentform:Button2.show()
parentform:Button4.hide()
parentform:Button26.activate()
parentform:Button5.hide()
parentform:Button7.show()
parentform:Text13.text="EDITING CUSTOMER"
parentform:Text13.refresh()
this.enable()
End
out:
this.enable()
2.
what would the script be to delete and then pack a record on a button and would this delete the 1-many (cascaded changes) records linked to it also (which I want it to).
Again thanks for your help
Mike
Comment