Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
1) show us the table structure (see example below)
2) show us the code on your pushButton
3) describe the form the button is on
I am guessing that the form has a tableFrame on it, and the table has a business name field, and that the information on the business is either in a memo field in this table or in another table linked by the key field of the main table.
Steve Caple Programmer Analyst Prestwood Software http://www.prestwood.com
The code needs to open the form; the example below first checks to see if it IS open already by trying to attach() to it; attach() requires the form title that you set in the Window Style dialog when you created the form.
Once the form is open, you have to locate the appropriate record. The example below assumes that the MRO on the info form is called CUSTINFO, and that its table is either keyed on CustID or has a secondary index on CustID that was set by a switchIndex() in the MRO open() event. The code then tries to locate the customer using the CustID value from the ORDERS form record on the calling form, and if that is successful it waits for the return from the form. This would usually be dome with a button labeled OK on the info form that does a formReturn(TRUE). When the formReturn happens, the code on the calling form button closes the form.
If the locate function is sloww, you can open the form hidden (add a WinStyleHidden argument to the f.open() and after the locate do f.bringToTop() before the f.wait().
If the info form is set (again, in the Window Style dialog) to be a modal dialog with no control menu, minimize or maximize on its title bar, nothing will go forward until it is returned from by pressing the OK button. With no control menu it can't be closed, so the f.close() on the calling form won't have problems.
var f form endvar
if not f.attach("CUSTOMER INFO") then if not f.open("Cust2") then msgStop("PROBLEM","Unable to open CUSTOMER INFO form.") return endif endif
if not f.CUSTINFO.locate("CustID",ORDERS."CUstID") then msgInfo("UNABLE TO LOCATE CUSTOMER", "Attempt to locate Customer ID "+string(ORDERS."CUstID")+"\n" + "was unsuccessful.") f.close() return else f.bringToTop() f.wait() f.close() endif
Steve Caple Programmer Analyst Prestwood Software http://www.prestwood.com
Thank you for your responce. I will try to answer your questions...
1.) Yes it is in a tableFrame, and the buisness info. is in another form that is to pop up as I click the button. Sorry I don't know all the 'lingo' or talk but I'll explane the best I can.
2.) the buttun has the following stuff in it...
method pushButton(var eventInfo Event) var ordersTbl Table newCustDlg Form dlgVal String endVar
newCustDlg.open("Cust2")
endmethod
3.)The button is right under the frame
Now I highlight, lets say the name 'John', click on the button "info" and up pops "Cust2" with the information on John.
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html,
social networking links, message board signature, company profile, etc.
Post ID #11429 (Level 1.3)
Reply to 11427
Reply Posted 3/5/2006 10:44:00 AM
Revive Thread!
Add a comment to revive this old thread and make this archived thread more useful.