I'm using VB6 and I'm trying to do the following:
I have a command button that execute a while statement. in this statement I'm loading a new form with:
Load FrmPayment
FrmPayment.Show
I want the program to brake until I click a button in the new form, and then start from the same point I left
I tried looking the web for an answer but couldn't find anything that helped.
How can I do this?
By showing your new form modally the new form is the only form in your application that responds to the user.
Load FrmPayment
FrmPayment.Show vbModal
Related
I am trying to close a modal dialog page after changes have been made and then refresh the edit form that was underneath the modal dialog in Oracle Apex.
I tried using dynamic action to close the dialog, but it seems that the dynamic action proceeds the processing step, resulting in the data not being saved into the database after the modal dialog has closed.
modal dialog = page
edit form = page
modal dialog is a pop out on the edit form
Is there a way to close the dialog, while saving the data and also refresh the edit form?
I think there is a way to also redirect to previous page but I do not know how to do that.
Yes there are many ways to close the dialog box while saving the data.
you can use the process for dialog close, process should be after your process which is saving data.
Javascript: please refer below link
http://ashishtheapexian.blogspot.in/2017/06/refresh-region-of-base-page-when.html
https://apex.oracle.com/pls/apex/f?p=1200008:15:132444785184935::NO:RP:P15_POST_ID:142
Branching :
You can create a branch after processing point. this will redirect and close the dialog after saving you data to the database.
Refresh Page when Dialog is closed. Click here
this blog will give enough information about how to refresh the Page when model dialog closed (cross icon).
We can trigger a dynamic action when user press cross icon in model dialog. This will archive by pasting the following code in Model dialog property-> Dialog -> attribute:
close: function(event, ui) {apex.navigation.dialog.close(true,{dialogPageId:7});}
And one more thing we need to keep in mind that "chained property" set to Yes for page to refresh. Here 7 is model dialog page number. Above given code will trigger dialog closed event.
I'm doing a Form.Show Modal to force code execution until the user closes the shown form.
This form gets shown over again, so I'm thinking I'll just HIDE it. This seems to work OK, but wanted to confirm.
So:
frmMessage.Show MODAL
user clicks OK and frmMessage.Hide
code continues
You can either close or hide the modal form to allow the calling code to continue executing. At some point before your application closes you should make sure you unload any hidden forms though. I've had issues in my application with the application not always shutting down correctly when forms are still loaded and hidden. Might just depend on what resources your hidden forms are using.
first i use the PAGGING library
https://github.com/uacaps/PageMenu
i found that it's the problem , when i connect any button to show another controller it it navigate me to that controller but the navigation not shown , for example back button
i try many solutions and non of them work for example i try to make the menu manual but the back button show but not work
i create button and connect to this action
self.navigationController?.popViewControllerAnimated(true)
didn't work
You need to have a pushViewController first. Ensure that you are displaying your viewcontrollers through push.
self.navigationController?.pushViewControllerAnimated(true)
You do not need to code anything to display the previous controller when you have push.
As the title says, I would like to call the reports from forms without actually displaying the form. I am very new to Oracle forms. I tried to do the following but it didn't work:
1)Inserted the code to call the reports in WHEN-NEW-FORM-INSTANCE trigger.
2)Removed the canvas so that the form won't be displayed.
But I got the error
RM-30173: Module contains no canvases
Is it possible to do this?. I am trying to display the report when a menu item in an oracle forms application is clicked which in turn would call the above form but directly displaying
the report instead of displaying an UI.
Update:
I am using Forms Builder 10.1.2.
As for why I don't want to do this directly in the menu(MMB), the menu doesn't have an option to attach a report and I've already got a working form that generates an report but the code to call the report is written in a button-pressed trigger.
In,
http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45, I am trying to do what Andreas Weiden, suggested in that thread.
I think your problem may be in limiting your menu options to only opening forms.
For example, you could instead have the menu in your form execute a form trigger which would call the report. Or a web.show_document to the url for the Report.
What version of Forms are you on? It's been a while since I did much with Forms, but this may give you a start.
I am only familiar with Reports 6i, and it was simple to just run the report from the menu.
We created a menu item that was PL/SQL Command Type, dropped the code to run the report module in the Menu Item Code box, and all was good. I'd be surprised if you couldn't do something similar in 10g reports.
Move the code from the form's button into a procedure in a common library. Attach the library to the form and to the menu module. Call the procedure from both the form button as well as the menu.
I solved the problem by creating a blank canvas in the 'dummy form' as 'FRM-30173: Module contains no canvases' was returned when no canvas was found in the form.
The approach suggested by Andreas Weiden here: http://forums.oracle.com/forums/thread.jspa?threadID=1107427&tstart=45 works well.
You could have also just created the report and just call it behind the menu option but hiding the report parameter form and the report would automatically begin to generate. In the menu option just before you call the report name just set the report paramform to hide and destype to screen. This would have save the trouble of creating a blank canvas and maybe having to suppress error messages if any was thrown.
I'm using WatiN automation tool. I've got a scenario where I need to click on a button, which opens a pup-up from which I need to upload a file. I tried using Fileupload but it is not working, because the file selection window appears and closes immediately without uploading the file. Please suggest a solution. Below is the code I'm using:
ie.Button(Find.ByText("Upload_File")).ClickNoWait();
//now popup appears
IE popup = IE.AttachToIE(Find.ByUrl("http://localhost/admin/Uploadfile.aspx"));
popup.Fileupload(Find.ById("upload1_File")).set("D:\vinay\watin.zip");
Why don't you just set the field (that hold the path) without showing the pop-up, or clicking any buttons? All you need is get the text field Id & do something like:
ie.TextField("Upload_File_Path_Field_ID")).Text = "D:\vinay\watin.zip";
I am facing similar issue but using FileUploadDialogHandler
FileUploadDialogHandler fileupload = new FileUploadDialogHandler(filepath);
using (new UseDialogOnce(browser.DialogWatcher, fileupload))
{
browser.Frames[2].Div(Find.ById("draftTempMaterialFileDiv")).Span(Find.ByText("Document Attachment ")).ClickNoWait();
browser.FileUpload(Find.ByTitle("Choose File to Upload")).Set((#"E:\TEST_PROJECTS\3DLEX_New_Lib\TEST Template.docx"));
}
Though I have not yet figured out how to actually click on Open button, this code solved the issue of file selection window immediately closing