The use of OpenArgs or stLinkCriteria - openargs

Got a concept question. On opening a form, is it better to use stLinkCriteria or OpenArgs?? If there is a difference, when should one be preferred over the other?
Thanx
Bill

Depends on what you're doing.
stLinkCriteria is good for opening a new form.
OpenArgs is the only way I know of to send variables to a newly opened form since the OnLoad event of the form can process the variables sent via OpenArgs.

Related

Access 2016: Alt+Tab...toggle between open forms by using Alt+Tab

I've got roughly 10 forms of which I need 2 or 3 open at same time. (BTW: the forms are linked to separate tables) I know I can open multiple forms but I need to be able to toggle between the open forms using "Alt+Tab" ..... anyone know if this is possible? Thank you in advance... Tjay
BTW: I posted on Stackoverflow as well and got some great tips but didn't accomplish what I was needing.
As mentioned in your other post (Old Post):
This cannot be done with use of Alt+Tab, you would need to use the MS Access shortcut setup in the design of the program CTRL+F6
It is not possible to override the Alt+Tab Windows function programmatically to achieve the results you are looking for.
Here's a simple question for you though; why would you "need to be able to toggle between the open forms using Alt+Tab"? Is there some specific reason you need Alt+Tab to accomplish your goal? Perhaps what you need can be accomplished through some other means.
For instance, you can setup events such as SetFocus for specific forms after certain events have been finalized, while not an Alt+Tab to a form, it accomplishes a similiar end result.

Form value store in two place

i want to store single from data in two places i.e http://www.abc.com/post.php and http://www.xyz.com/post.php. how can i do this. please help.
Thanks
Your best bet is to use jQuery to post the form. On a button click, use jQuery.post to submit the form twice.
Erick

How can I display another form in a z3c.form button handler?

I have a form with a single text field.
On submit I would like to display another form.
I can use RESPONSE.redirect() and pass it in the query string but I would rather not.
I don't want to use a SESSION variable.
I would like to display a second form which can read this value from the request variable.
I have looked at collective.z3cform.wizard but it is not obvious how to do this.
Trying to call the view() from the button handler does not seem to have any effect.
I fall in the same lack of functionality.
For what I know, z3c.form does not support this kind of traversing.
You may remember that this functionality worked well with CMFFormController.
Actually to do this, cmfformcontroller used session machinery.
So, you don't want to use session but that's the way. At least I do so, and I'm happy.
In this way there's no need of a wrapping tool like z3c.form.wizard.
hth,
alessandro.
collective.singing has a non-session based wizard which uses hidden fields to store results of intermediate steps.

submit form and keeping values setting

I want to know if there is a way to submit a form but at the same time keep the values selected and edited(without reset).
Thanks.
One is to use ajax.
Your question is very vague... You will likely need to use PHP (cookies) to store the entries / changes.
In ASP.Net MVC, you may set the page with the form to submit to inherit an instance of a class which properties are set automatically.
In order to keep the values after the submit, you just have to place the object model as the same object that you received as an argument in the action, like this return View("ViewName", object).
But anyway, your question could have been a little more specific. Hope that if you are using .Net, this may be useful.

Multiple Forms vs 1 All-Encompassing Form?

I'm writing a YouTube Reply/Comment type wall on my website. This allows users to either post a new comment to the wall, or reply to any existing comment on the wall.
Is it recommended to create a separate form for each reply comment box? Or is it better to just create 1 form on the page that contains all of the input/submit elements, and then just use code to figure out which part of the form the user is submitting?
This question really isn't about this particular application, but just general coding best practices. Thanks!
ps - I will be using jQuery/Ajax
The best thing to do is to use separate forms. Unless you're using ASP.net, in which case you're already inside one giant form.