open multiple forms with main form - oracle

I have 5 forms:
Form 1
Form 2
From 3
Form 4
Form 5
Main form is “Form A”. All forms' buttons are pasted on “form A”.
Is it possible that I open all forms at same time and all are active for data input and other are minimized? All forms are developed in 6i.

There are several ways to "open" another form, by using the following built-ins:
CALL_FORM will run the indicated form and keep the parent form active
OPEN_FORM opens the indicated form; it is used to crate multiple-form application (i.e. the one that opens more than one form at the same time)
NEW_FORM exits the current form and runs the indicated form.
These are well described in Forms' Online Help system (navigate to "Help", perform search and read what's written in there). Then pick the option which suits you best.

Related

In cypress Is there any method to run 3 dependent forms individually?

I have 3 forms, and one form is depending on other 2 forms(Each form is in each test file), So my question is can i know is there any solution(method) to run those 3 forms individually?
(The purpose is i want to run each forms individually)
This is maker form
This is Category form
This is maker type form
These are the three forms which i have mentioned above.
Maker form, and Category form are depending on Maker type form, (The value i'm adding in maker and Category forms as above images, will have to choose from Maker type form)
So these Each three forms are in each test files.
When i run the test i can not run the maker type form individually, because its' maker and category values are taken by Maker form and Category form added values.
Your tests (e2e tests) should follow the user flow, so if one form requires another to complete the task, then that's how you test them.
BUT you can test forms independently using Component Testing. In this type of test you mount just one component (form) at a time and supply input values (normally coming from the other forms) via props.
Here is some info about it My Vision for Component Tests in Cypress

Oracle Forms Call Certain Canvases of Multiple Forms from Custom Menu (mmb)

I have one main form ("users.fmb"), one other form ("cards.fmb") and one custom menu ("menu.mmb"). I want to call canvases of forms according to which menu item selected.
For example: When I choose 1. item of menu, call canvas A of "users" form. When I choose 2. item of menu, call canvas B of "cards" form. Menu("menu.mmb") is related with main ("users") form.
How can I do this?
I tried to use
CALL_FORM, OPEN_FORM, GO_BLOCK, SHOW_VIEW, SET_WINDOW_PROPERTY
methods in different ways but it not worked.
if your menu is only attached to users.fmb, you won't be able to call again users.fmb from cards.fmb (except by exiting cards.fmb).
Also if you call again users.fmb from cards.fmb you will have 3 forms in your calling stack (users.fmb -> cards.fmb -> users.fmb), which is not a good idea.
I guess you would have to create another form acting as the main screen from which you can run either users.fmb or card.fmb (you can use CALL_FORM for this).
Also you can use SHOW_VIEW to display a specific Canvas but you will have to do this in the targeted Form.
You can pass the canvas name as a Form parameter (called e.g. "navigation_canvas") and in the WHEN-NEW-FORM-INSTANCE trigger, if this parameter is not null you can then navigate to the desired canvas using SHOW_VIEW(:parameter.navigation_canvas)

ajax button in cakephp 1.2

I'm trying to make something like this:
an html form with 5 button (each one with a differn value). if you click one of this button will be dispayed an text input (with a default value depending to the clicked button value, so the buttons call an ajax/javscript function to generate the default value) and a submit button.
I'm unable to create this type of form. have any suggestion for me ? Thx in advance.
I wouldn't use CakePHP's AJAX features, just write it yourself. Cake's features are useful in limited situations (e.g. pagination) but as soon as you need flexibility, it becomes a limiting factor. I believe the JsHelper is actually being removed in future versions.
To get this done without Cake, take a look at http://jsfiddle.net/mjxWg/8/. It's not a complete working example (e.g. there is no <form> tag), but it should show you enough to get started on your own.

Joomla handling multiple ajax forms on the same page

I'm using Joomla to develop a user profile management component with AJAX.
The goal is to allow the user to edit his own user information. There is a lot of information so instead of having one massive form, I decided to make "subforms" or sections. And for the whole thing to be user-friendly I want to send the forms and refresh the user information with AJAX.
Here's an example :
There are two sections, "Basic user info" which displays the first name, the last name and the age of the person and "Extended user info" which displays the occupation, the company and the skills of the person. Each section has an "edit" link (or button) which turns the content into a form (AJAX) allowing the user to modify the presented information. You can only edit one section's information at a time. When the user has finished modifying the data, he sends the form with a "send" link (or button) and the section gets back to simply displaying the information of the section (with the updates that were just made).
So I need to know what is the most efficient way to develop such a component. I thought of two approaches :
1) In the "tmpl" directory of the main component view we the following files :
default_basic.php (displays the basic user information),
default_basic_edit.php (displays the form which allows the user to edit the basic information)
default_extended.php (displays the extended user information),
default_extended_edit.php (displays the form which allows the user to edit the extended info)
default.php (loads each of the display subtemplates with calls to JView::loadTemplate($subtemplate))
When the user clicks on an edit link, an AJAX call is made to the following URI index.php?option=com_userinfo&view=userinfo&subview=basic_edit&format=ajax, which causes the view class to call $this->loadTemplate('basic_edit') after assigning the user information to it.
If the user clicks cancel the same process is used to load the 'basic' template again. And if the user modifies the information and clicks the send link, the form is sent and then the 'basic' template is loaded too.
2) There is only a "default.php" file in the "tmpl" directory which holds the edit version and the display version of each section. But all the edit versions are hidden at first. And when the user clicks on the edit link the display version of the section becomes hidden and the edit version is displayed (using display:none and display:block). Then, if the user clicks the cancel button we do the opposite. And if the user clicks the send button we send an AJAX request to update the data in the database and return the updated user info which will be loaded into the display version of the section. And we finally replace the edit version of the section with its display version.
I know there's a lot of text but in the end it goes down to choosing between refreshing full HTML blocks with AJAX, or just sending the updated info and modifying the content of hidden blocks and then make them appear. So what do you think is the most logical approach, knowing that we are in a Joomla 1.5 environment ? How would you procede ? (maybe there are other ways to create such a component ?)
(I tried both ways and I couldn't entirely make it work so I decided to ask to see if it is a matter of conception...)
Thank you for taking the time to read all the text.
My answer is: why even refresh parts when it can be done without it?
For example when we are talking about basic form elements like text fields and check/radio buttons I would prefer the following: on a successful save/send simply display a nice message like "Profile saved" for some seconds and the user is sure that the changes are save and sound.
In case I msissed somthing let me know.
I have tried both solutions and #2 is the only one that worked for me.

DNN 5 viewstate

HI,
I'm working on DotNetNuke 5 module that basically consists of three pages; step 1, step2 and step3.
On Step 1 I'm showing a GridView with a CheckBox column and button that should navigate the user to Step 2.
In Step 2, I'm showing a GridView as well that shows the items that have been selected in Step 1.
My questions are:
What is the best way to pass my selection from Step 1 to Step 2?
ViewState? Url-parameters?
I tried in Step 1: ViewState["SelectedItems"] = string.Join(",", list.ToArray());
IN step 2: I did:
var items = (string)ViewState["SelectedItems"];
And I found out items contains empty string. Is ViewState supported by DNN5?
The built-in ASP.Net wizard control doesn't offer enough flexibility for customizing it's look-and-feel and therefore it's not being used. Does DotNetNuke perhaps offers an alternative for ASP.NET WizardControl?
Thanks!
ViewState is definitely supported in DNN. However, if you've actually setup different pages for each step, ViewState isn't going to be available (it only persists across postbacks).
If you'd prefer to keep a three page scheme, using URL parameters if probably the easiest. If that's not palatable, then you'd have to store the info in either a cookie, in the database, or in the Session.
If you want to combine your steps into one control and use postbacks instead of redirection, then you can use ViewState. I don't think DNN exposes its wizard framework controls, but you can use a MultiView control or something similar to switch between the different steps more manually.
In my opinion, you will want 1 single .ASCX for your DNN Module, but you will want three panels inside, one for each step. I would call the panels Panel_Step1, Panel_Step2, and Panel_Step3. Steps 2 and 3 will be hidden initially.
Each panel will contain all of the controls and graphics for its respective step in the wizard.
So, when the user clicks the "Next Step" button to proceed from Step 1 to Step 2, your code will hide Panel_Step1 and show Panel_Step2. You will want an init function for Panel_Step2. Let's call it InitStep2().
Inside this InitStep2() function, you will be able to analyze the values and selections that the user made in Step 1 by analyzing the control values direction.
Example: Textbox_Step1_Name.text, DropDown_Step1_State.SelectedValue, etc.
These values are indeed stored in the viewstate.
Doing a wizard in this manner is really no different than doing it using an .ASCX outside of DNN. You have access to the viewstate, session, and more.

Resources