Exit_Form in Enter_Query Mode Problem
Hi Guys,
I have written this code in my when_new_form_instance
Enter_Query;
now when the form runs its in Enter Query Mode.
I also have a Exit button on my form with code
Exit_Form(No_Validate);
if user runs the form, and without executing the query s/he wants to exit, the exit button is not working. First s/he has to execute the query or cancel the query.
How can i programatically control this situation on my exit button.
I dont want to write Exit_Form twice in a button, suggest any other solution pliz.
Best Regards,
Imran Baig
In your Exit button's WBP trigger, do this:If :System.mode = 'ENTER-QUERY' then
Exit_Form;
End if;
Exit_Form(No_Validate);To get the button to work while the form is in enter-query mode, it must be in the same block as the one being queried, or else you must set its Mouse Navigate property to No.
Similar Messages
-
Call_form from menu when in enter_query mode
I was wondering if headstart has a setting that allows the user to open another form from the menu even when it is in enter_query mode.
I can see in the libraries that when a form is closed this mode is checked and exit_form is called twice when the form is in enter_query mode but the call_form procedures do not seem to have this check.
I am also not sure how to implement this myself, since calling exit_form in a menuitem also exits the piece of code, so any call_form or open_form call is not reached after the first exit_form.
Has anyone had this challenge before and if so, how did you solve it?
Thanks
Message was edited by:
Wendy TrompSandra,
I tried to put the key-exeqry in the template. There's only one problem the key-exeqry is a 'in place of' trigger. When I put the code 'Null;' in the trigger, a generated form without a key-exeqry doesn't work because the 'key execute query' does nothing. A generated form with a key-execute query works fine.
At the other hand, when I put the code 'Execute_query' in the trigger, a generated form without a key-exeqry works fine, but the other one doesn't.
Which code should I include in the template-trigger?
Thanks,
Martine. -
Push button in enter_query mode
Hi all !
I've got the following Problem in Forms 4.5:
When i enter the query mode with "enter_query",
i cant push any other (user defined) button i have placed on the form (other Blocks). Thats my problem....
It seems, that my buttons have to belong to the "Query-Block" (because if so-it works).
But i have got some other forms sources - and in these forms the buttons DONT belong to the Query-Block and i CAN push the Buttons in ENTER_QUERY - Mode.
Please, can somebody can give me e hint .... ??Frank: Thats what i thought too -but i saw (in other Sources) that it could be done, but how..
Eugeniy I Duzhinskiy:
So, many Thanks to you. It works fine !!!!
(Its great to see there are some other Forms Users out there :) ) -
Create_record in enter_query mode
Dear members,
(Forms 6i c/s)
In enter_query mode, when the user wants to create a new record, I'd like to exit from the mode and create the record.
But "create_record" (F6) is not allowed in this mode, so it doesn't get to the key-crerec trigger. Thus I can't find a place to put my "exit_form / create_record" code.
Any idea ?Unfortunately, a lot of triggers ignore the "Fire in Enter-Query Mode" property, and apparently you have stumbled into one of them. Forms was written by humans and they make mistakes -- someone probably decided that no matter what, since you couldn't create a new record legally in Enter-Query mode, that they should disable the key-trigger. Too bad.
I tried to get the Key-Crerec trigger to work here and had no luck. I'm afraid you're going to have to try a button and When-button-pressed trigger. -
Calendar enter query mode problem
I have successfully implemented the calendar utility supplied by
the demo.
However, has anyone figured out how to use it when in
enter-query mode? It doesn't work because you can't navigate
out of current block when in enter_query mode.In your Exit button's WBP trigger, do this:If :System.mode = 'ENTER-QUERY' then
Exit_Form;
End if;
Exit_Form(No_Validate);To get the button to work while the form is in enter-query mode, it must be in the same block as the one being queried, or else you must set its Mouse Navigate property to No. -
How to pass the global variable in enter_query mode
Dear Friends
I am calling the form and in enter_query mode ,but my global variable is not pass to the form when it is in enter_query mode , me be the field is clear after the enter_query is called ,in which triger do I have to keep my variable
:H_DOC_CODE := :global.offer_no ; so that it will be assign to the field
:H_DOC_CODE this my script is keept in
WHEN-NEW-FORM-INSTANCE.
waiting for your valuable answer.
best regards
Jamil Alshaibani
-- this my script
DECLARE
V_STATUS NUMBER;
BEGIN
:system.MEssage_level := 25;
:GLOBAL.V_STATUS := 0;
CLEAR_FORM(NO_VALIDATE);
enter_query ;
:H_DOC_CODE := :global.offer_no ;
END;I'm not quite sure what you mean with
But the document number is not pass to the called form field and : H_DOC_CODE is a field in the called form.Do you want that the form is in ENTER-QUERY-mode and the field H_DOC_CODE contains the field of the GLOBAL?
Or do you want to automatically execute a query with that H_DOC_CODE.
For the first, you have to assign the global in the WHEN-NEW-RECORD-INSTANCE-trigger instead of the PRE-QUERY:
IF :SYSTEM.MODE='ENTER-QUERY' THEN
:H_DOC_CODE :=:global.offer_no ;
END IF;For doing an automatic query the suggested solution with the PRE-QUERY-trigger is right, but you would have to issue an EXECUTE_QUERY in the WHEN-NEW-FORM-INSTANCE instead of an ENTER-QUERY. -
Hi i am trying to fetch a mail from my Zimbra account. But i am getting the following error.
What is this TLS mode problem? please help.
javax.mail.AuthenticationFailedException: only valid after entering TLS mode
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at javax.mail.Service.connect(Service.java:105)
at FetchMail.receive(FetchMail.java:40)
at FetchMail.main(FetchMail.java:193)Hi i am trying to contact Our Zimbra server to retrieve the mails from Inbox, I used pop3 as protcol .. before but it was throwing an error
javax.mail.AuthenticationFailedException: only valid after entering TLS mode
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:146)
at javax.mail.Service.connect(Service.java:297)
at javax.mail.Service.connect(Service.java:156)
at SampleZimbraSMTP.postMail(SampleZimbraSMTP.java:44)
at SampleZimbraSMTP.main(SampleZimbraSMTP.java:22)
so i changed to pop3s & downloaded new jars. I am pasting the code here
import java.util.Date;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import javax.mail.Authenticator;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.Multipart;
import javax.mail.Part;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Store;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
public class SampleZimbra {
public static void main(String args[]){
try {
SampleZimbra zm = new SampleZimbra();
zm.postMail();
catch (Exception e) {
e.printStackTrace();
private boolean debug = false;
public void postMail() throws Exception {
Properties props = new Properties();
Authenticator auth = new ZimbraAuthenticator();
Session session = Session.getDefaultInstance(props, auth);
session.setDebug(debug);
Store store= session.getStore("pop3s");
store.connect("ip address","username","password");
Folder folder = store.getFolder("INBOX");
folder.open(Folder.READ_ONLY);
// Get directory
Message message[] = folder.getMessages();
for (int i=0, n=message.length; i<n; i++) {
System.out.println(i + ": "
+ message.getFrom()[0]
+ "\t" + message[i].getSubject());
// Close connection
folder.close(false);
store.close();
class ZimbraAuthenticator extends Authenticator {
public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("username", "password");
After this code compiles & when i try to run it throw me the following error..
javax.mail.MessagingException: Connect failed;
nested exception is:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:148)
at javax.mail.Service.connect(Service.java:275)
at javax.mail.Service.connect(Service.java:156)
at SampleZimbraSMTP.postMail(SampleZimbraSMTP.java:44)
at SampleZimbraSMTP.main(SampleZimbraSMTP.java:22)
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
at java.io.BufferedInputStream.fill(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
at java.io.DataInputStream.readLine(Unknown Source)
at com.sun.mail.pop3.Protocol.simpleCommand(Protocol.java:347)
at com.sun.mail.pop3.Protocol.<init>(Protocol.java:91)
at com.sun.mail.pop3.POP3Store.getPort(POP3Store.java:201)
at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:144)
... 4 more
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(Unknown Source)
... 19 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 24 more
Can any one guide me to resolve this....
Thanks
Bharathi.
Message was edited by:
bharathi -
Function keys in enter_query mode
Dear members,
(Forms 6i c/s)
Function keys have different behaviors in enter_query mode: some are allowed (F1), some are forbidden (F6), some are unused (F2).
It seems that I can't use a KEY-F* trigger to intercept the function key behavior and make it do something else when I'm in enter_query mode.
Typically, I'd like to make those keys exit from the mode before doing their action.
Where and how could I do that ?
Thanks.Hi Matthias,
first, think about:
KEY-F6 is not the Shortcut F6 (the KEY-F6 is only usable/matchable via OracleTerminal)
KEY-CREREC is F6 (default-windows)
second:
The disabled F6-key in enter-query mode is a new feature of Forms6i. Forms 4.5 and older aren't disallowing this key. This is a very tricky (and not a good) feature of Forms6i.
I think, that you have no chance of using these keys in enter-query. That behaviour seems to be hard coded deep in the source of Forms6i... -
Open a form in enter_query mode
Qs no:1:- I want to open a form in enter_query mode.
Qs no:2 :- after they query 4 fields(blk1) ...depending on that the rest of the informative part of that form(blk2) gets populated.
Now user hit OK (push button).
Now all the fields should be blanked including those 4 fields and the informative part and the form should stay at enter_query mode.
FYI:- There is no master-detail relation between two blocks.blk2 gets populated when user puts data in the 4th field and press tab ...
I have written the code to populate the informative part in when-validate-trigger of the 4th text field.
How can I do that?
please suggest..
Edited by: 977083 on May 13, 2013 4:59 AMHello,
Switch to enter query mode at the end of the When-New-Form-Instance trigger:
Go_Block('the_block_to_query');
do_key('enter_query');Francois -
I've been down this road before but now it's getting just crazy. I can't get work done if I want to create a simple layout. I've created new workspaces, cleaned, everything I can think of including taking out any third-party components that might possibly be compiled in non 4.5.1 (though they supposedly have).
I try to create a simple MXML component. If it's based on anything visual (e.g., panel) or if I start with a group and then drag in a panel, I just get the little computer icon with red x on it in design mode with the following errors in the Design Mode Problem panel. I mean, this is just a new, empty component.
Assets failed to compile.
Design Mode is unable to display the document styles, skins, and images because the following assets have failed to compile:Details
:Unable to resolve resource bundle "components".( - Line:-1)
Unable to resolve resource bundle "skins".( - Line:-1)
Unable to resolve resource bundle "core".( - Line:-1)
Unable to resolve resource bundle "core".( - Line:-1)
Unable to resolve resource bundle "effects".( - Line:-1)
Unable to resolve resource bundle "layout".( - Line:-1)
Unable to resolve resource bundle "styles".( - Line:-1)
Unable to resolve resource bundle "components".( - Line:-1)
Unable to resolve resource bundle "core".( - Line:-1)
Any ideas?I thought I had it by deleting a namespace reference; things started to render and all was good for a couple minutes. Then it reverted to the same problem so I'm open to other suggestions.
-
SOLVED : Lenovo X60 spontaneou​s sleep mode problem.
The problem is the flat panel screen! (either t-conn board and/or backlight). Viewiz HV121X03-100 Part No. 42T0359 FRU No. 13N7205. LCD : Wistron P/N:60.4Q443.001
I have 2 identical of Lenovo X60 laptops, with swivel-type-hinge at center. One has this spontaneous sleeping mode problem. I thought it was the Inverter problem - WRONG. Next some say it's the motherboard, CPU fan & heatsink, BIOS updates wrong also. All of these assumptions and theories are wrong diagnosed.
Solution replace the flat panel screen (very expensive because it has Wacom digitizer glass on top of the screen and board at the bottom.)
Roan
Computer Technician
Chapel Hill, NCHello @Tilia,
I have read your post on how your notebook computer is experiencing an issue with waking up from sleep mode, and I would be happy to assist you in this matter!
To further diagnose this issue, I recommend following the steps in this document on Troubleshooting sleep and hibernate issues in Windows 8. This should help configure your power management settings to effectively use sleep mode on your system.
Additionally, you can also restore your notebook's default power schemes by following the steps below:
Step 1. Click the Start button
Step 2. In the search box, type "Command Prompt"
Step 3. Right-click Command Prompt
Step 4. Click Run as administrator
Step 5. At the command prompt, type powercfg /restoredefaultschemes and press Enter
reference: http://superuser.com/questions/669571/windows-8-1-64-bit-power-schemes-gone
Please re-post with the results of your troubleshooting, and I look forward to your reply!
Regards
MechPilot
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping! -
SWC Load Error - Design Mode Problem
Hi,
I'm loading custom .swcs into my Flash Builder (4.5 Burrito) project and I get these errors. These will only appear in design mode (not in source mode) and will not be labelled under the Problems tab, rather the Design Mode Problems tab:
SWC Load Error
SWC file failed to load. Any component dependent on this SWC file will not be displayed in the Design Mode.
The SWC may have failed to load because of:
* Incompatible definitions caused by usage of a different SDK version
* Missing referred class definitions
I don't think this problem is caused by an SDK incompatibility, as all these swcs have been created under flex 4 and I'm pretty sure under the 4.5 SDK.
Loading the components contained in these swcs onto my canvas (at design time) will work fine. I'm able to build and run the application without any errors caught by flash builder.
Any idea how to fix this problem, or what it means?SWC Load error indicates that the swc used does not match with the definitions present in design view or with what is present in already loaded other lirbaries. The issue is reported by the flash loader. It looks like that, your swc is compiled with a previous version of the sdk and the design view and the related definition correpsonds to another version.
The incompatability logic is not in DV. When DV tries to load all the swc details available in the project, the loading fails as the loader reports the issue. There is hardly anything, we can do here from DV. If the player reports the incompatability issue, the loader is corrupted and all further loading is ignored. So to avoid such issue, DV ignores the failed swc's and tries to proceed.
If you pass me the swc , I can give the details of the incompatability. Ideally between 4.5 and 4.5.1 there should not have been any incompatability. However your case shows there is. You can contact me at [email protected] -
Lock records when in Update Mode / problem with 2 users on 1 document
Hi,
when user A updates e.g. a purchase order and user B goes into this purchase order and updates e.g. the remark before user A, then user A cannot save his changes. Imagine user A has put in several new lines and has made several price adjustments, his work will be gone.
In most cases this should not happen very often, but it could. Since B1 recognizes when another user has updated the document before, it should be possible to solve this situation more convenient (either by lock, saving to a new document, comparing to the old version, etc).
Thank you
SebastianHi Sebastian,
Your request is understandable. It may not have big problem to change current process by coding. However to lock records whenever in update mode, that could create too many locks. It is basically not good for performance. The trade off may be allowing save as function. However, this may not be a desirable solution for most end users.
Thanks,
Gordon -
K9N PLATINUM(NON SLI) DUAL CHANNEL MODE PROBLEM
hi
put a new system together with the following specs:
amd am2 3800+(2ghz)
k9n platinum 1.20 bios
2x512 kingston ddr2(667mhz)
pci video(yes not pci-e)have not decided which vid card to get yet.
500w psu 12v 35a,5v 25a,3.3v 25a
liteon dvd burner
seagate 300gb ide 7200/16 meg cache windows xp-pro sp2 with all updates.
not overclocking or even trying to.
no sata drives connected.
has never failed to post,boot windows and no lockups or blue screens.
ok,i am trying to get the memory to work in dual mode.
everytime i put the memory in the dual mode slots,the cpu clocks down to 1ghz instead of 2ghz.
verified by bios,windows and cpu-id
i have tried different memory(both ddr2 533 and 667)667 installed now.
also never had any install problems with windows and everything runs fine until i tried dual mode.
after the cpu clocks down to 1ghz,the only way to get it back to normal is a bios reset( load defaults
or press red button).
if i leave the memory as single channel then i have no issues.
also cpu-id says the chipset for my board is nforce 550,i thought k9n platinum had 570 nforce chipset?
this might just be a problem with cpu-id though.
any thoughts on the cpu down clock problem in dual channel mode?
thanks,jeff1 assume you can get into BIOS with 1 stick only?
Go into the BIOS and manually set the timings and voltage to what your memory manufacturer recommends. Use a 2T command rate and see if it works.
Try both "sets" of dual channel slots, i.e. the two left slots or the two right slots. -
Sending a bug report on the OS and a sleep mode problem.
I find the bug button in Safari really convenient for sending Apple bug reports. And when other applications crash, you usually get an error dialog with a button to send a bug report. But sometimes problems arise that require reporting, but which don't fall in either of these categories. It would be very handy to have a bug "button" for the OS, or perhaps just a menu selection in the Finder menu bar that invokes a bug report dialog box. I know you can dig around and find the URL for Apple's bug report web page, but I am always forgetting it -- I suppose I could just bookmark it, but then I'd just have to dig around in all the bookmarks to find it. Better would be a utility built-in to the OS for sending bug reports (like Safari's). It could also automatically transfer necessary info about the OS rev and such.
The problem I had was this. I have a script that puts my iMac to sleep. I put the script alias on the task bar and a single click puts the computer to sleep (easier than using the menu). Unfortunately, I sometimes click it by mistake when I am trying to click an adjacent icon in the task bar, and the Mac starts going through its cycle to enter sleep mode and is impervious to anything I do to try and cancel it. I tried pressing the space bar continuously to prevent it from going to sleep, but that did not work. Worse, when it went to sleep and I woke it up again, the task bar would not appear, clicking on app windows did not activate them, Finder menus could not be selected, etc. The cursor would move, but I could not do anything else. (I wish now I had noted if the clock in the menu bar was still advancing, but I didn't think to do that.) I powered down the iMac from the power key and rebooted. Things are working fine now.
I wanted to send a bug report on this, but realized that unlike Safari, there was no button or menu selection for doing that. So here I am.
Any suggestions are welcome.
TIA,
Drake[email protected]
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Maybe you are looking for
-
Looking for a specific game...
In the ipod touch guided tour video I am trying to figure out the name of the the second game shown in that video. It's the one right after Cro-Mag Rally. Anyone know?
-
Can anyone recommend a 1tb external hard disk?
I'm looking to purchase yet another external hard drive. I've already got a couple of LaCie disks (80gb & 300gb), the latter of which is now full of Apple Lossless files and converted ACC files for my iPod. As I keep seeming to underestimate my space
-
Delivery - Shipment and Shipment cost docs
Hi, I created delivery and completed invoicing , when I tried to create shipment doc with VT01N , Its asking for tranportation planing point and shipment type. FYI I have configured routes , legs(Direct leg) and shipment doc types.My question is , is
-
Hello, i have one issue when i hit back button of F Fox than it will show me " Document Expired " alert message.. i need to avoid this alert. because my site is based on ajax so i need same page with my all activity i perform before i go next page wh
-
Board Options keep getting in the way
When you change from one forum to another, the logical 'path' for the mouse-cursor goes over the 'Board Options' menu, or when going into a post, it goes over the 'Thread Options', both of which apparently function as 'OnMouseOver'. Could this be cha