Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLEASE HELP! Need to open another form!

Status
Not open for further replies.

lespaul

Programmer
Feb 4, 2002
7,083
US
I have a form (Interview) with a button that needs to open another form (FelonyDetails). Both forms have a field that reflect the case number (hidden on FelonyDetail). I need to open the felonydetails form with the hidden field filled in with a value from the Interview form so that in the future users can look at an interview and then look at the felonydetails that go with that interview.

If there is another way to link different forms together, please let me know!

Any suggestions?!

Thanks,

Leslie
 
@Command([Compose]; "FelonyDetails") as an action would allow you to create a new FelonyDetails Form from the Interview Form. But thats as much as I can help you. I'm actually trying to figure out the same thing myself.

Sorry I couldn't be of more help
BH2
 
Leslie,

There are a few different ways to make this happen. This is one way....

Firstly, make the Felony form a response document and ensure that it enherits values from selected document (within the forms properties). You can set your button in the interview for to create it the same as suggested by BH2, or, write a lotusscript program and use the makeresponsedoc method. Then, create a hidden view to display all required forms, and ensure that the first sorted column refers to the hidden field in your documents. Then, in the interview form, created the embedded view and set it to show a single category with the formula that equals your hidden field.

If this doesn't work for you (or not what you're quite looking for), I'll sort out some other suggestions for you.

Cheers.
 
THANK YOU!! This seems to be exactly what I need. Could you give me a little more information about the views and the embedded views? I'm new to Lotus and not real clear on how to do those. One more thing, I actually have two buttons on my main form that need to open the same form for different details (Felonies and Misdemeanors), do I need to have two forms (one for each) or can I have one form that can distinguish which button called it? Then I could include another hidden field with which details this form holds? thanks again!

Leslie
 
Ok, I have been messing with this all day and having NO success! The response document only belongs with a view and I don't have a view. This is making things very difficult. I don't know much about views and I'm ready to QUIT!!! I did get the FelonyDetails form to open using the @command that blackhawk provided, but I'm not sure that is all I really need. Can I do IfNewDoc open form, but if not new then go find this document with this case number? Thanks for any suggestions!

leslie
 
Please someone get back to me on this!! I think I have a slight clue on building a view now, but I'm still having problems! I would appreciate any help at all! Thanks!
 
lespaul,

If you are unfamiliar with the views I would suggest doing the tutorial in the HELP menu. This helped me get started. I would help you more but I am a newbie myself.

BH2
 
Ok, I have created a view for my details form, I have added a formula to my button to open a response document, and get an error that no document is selected. At this point I have a new interview form, with my button that I want to open another new form (felonydetail). How do I select the current document if it is not saved? Can't wait to hear from someone! Thanks for any help!

leslie
 
I am hoping that this will do what I think it will. But I don't know if its what you want. Upon Clicking the action button the below formula will tell the database to first save the document and then Compse the new one. Check what the for is really called though if it is FelonyDetails or felonydetail without the "s" as it appears in your last post. Like I said I am not sure if this is what you want and have not even tried it, but if it works great.

@Command([FileSave]);
@Command([Compose]; "FelonyDetails")

BH2
 
I DID IT!!! I DID IT!!! Let's all have a party NOW!!!

I used my detail form as a dialog box, with the docketno as a hidden field. I don't need an embedded view, it remembers! Blackhawk, if you need more info, let me know!!

YEA YEA YEA!!!!

Have a great day!!!!

leslie
 
Very well done. I think I got the gist of it from your description... If I need more help I'll post a message here.

Well Done
BH2
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top