Can I have a conditional javascript:apex.confirm when column is null

Hi All,
I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated
Regards
Chris

Hello Chris,
>
user4023958 wrote:
I am relatively new to the product but am picking up things all the time. I was recently asked to create a confirmation on submit dialog which I did quite easily using javascript:apex.confirm. I was then asked to only display the confirmation message if a comment column was empty. The column is optional but it is preferred if something is added. I am using 4.1.1. Is this possible? Any ideas would be appreciated.
>
How have you implemented the apex.confirm?
<ul>
<li>If you have done it in dynamic action on button click then you have to make the dynamic action conditional by using Item/Column value is not null condition with expression as your comment item say P1_COMMENTS</li>
<li>If you have done it in Button Action as Redirect to URL then simply you can write a javascript function in your page header as :
<script type="text/javascript">
function f_showConfirm () {
  if ($x('P1_COMMENTS').value == '') {
    apex.confirm('Do you want to submit this page?', 'SUBMIT');
  } else {
    apex.submit('SUBMIT');
</script>and call this javascript function in Button Action - Redirect to URL with URL Target set as:
javascript:f_showConfirm();</li>
</ul>
In order to get accurate/appropriate response you should include relevant details from following information with your question:
<ul>
<li>Full APEX version</li>
<li>Full Database version</li>
<li>APEX Web server architecture (EPG, OHS or APEX listener)</li>
<li>Browser(s) and version(s) used</li>
<li>Operating system with version, architecture(32/64)</li>
<li>Theme</li>
<li>Template(s)</li>
<li>Region/item type(s)</li>
</ul>
The above information will help the forum members to ascertain the problem context and post most relevant response.
Please read the [url https://wikis.oracle.com/display/Forums/Forums+FAQ]FAQ and [url https://forums.oracle.com/forums/ann.jspa?annID=1324]forum instructions for more information on using OTN forums effectively.
Please update your forum profile with a real handle instead of user4023958.
Hope it helps!
Regards,
Kiran

Similar Messages

  • Can SplitJoin have a condition to choose in OSB?

    Hi There,
    I am wondering can Split-Join in the message flow contain a condition with in the one .flow?
    let says i have a split join that doing parallel flow. flow A and flow B.
    Than on top of the splitting can i have a conditions something like this?
    If condition = A route to flow A only
    If condition = B route to flow B only
    If condition = AB route to flow AB

    found the solution. yes there is a if then process function to be used.

  • I have just updated to Pages 5.1 and now the templares which I have saved do not displat the header and footer which they were saved with in the previous version.  How can I have the header and footer included when I open a template?

    I have just updated to Pages 5.1 and now the templares which I have saved do not displat the header and footer which they were saved with in the previous version.  How can I have the header and footer included when I open a template?

    That is becuase Pages 5.1 has numerous unnounced surprises for the unwary user.  Among the surprises:
    - it strips out images from headers and footers without warning
    - it strips out bookmarks without wanring (yes, all those bookamrks you laboriously put into a document: poof! Gone.)
    - it strips out alternating left/right margins, without warning.
    There are many more suprises, as you'll see from glancing through these discussions. They fall into two main categories: things that are present in version 4.3 but that are missing in 5.1, things like
    -mail merge
    -meaningful Applescript/Services support
    -non-contiguous text selection
    -ability to set defaul zoom
    -ability to see comments while editing
    -ability to print comments
    -ability to read RTF files
    -ability to drag in hyperlinked ted from a browser
    These about about 90 other features are gone.
    Then there are the bugs.  Hyperlinks do not reliably export to a PDF file any longer. There have been multiple problems with printing report. Some fonts place stray characters in the headers.  Many reports of the program crashing, courrupting files, etc.
    Fortunately for you, the previous version of Pages is still on your system.  Export any documents you may have created or edited with Pages 5.1 (another great surprise: files created with version 5.1 cannot be read by any previous version of Pages: not just 4.3 but even 5.01!).  Then trash 5.1 and use 4.3 until (unless?) it is stable and has a reasonably robust feature set.

  • HT204053 I have one copy of itunes, can I have two Applie IDs on this when syncing iphones?

    I have one copy of itunes, can I have two Applie IDs on this when syncing iphones?

    Welcome to the Apple Community.
    No. Use two user accounts.

  • Can I have the iPhone make a sound when it finishes syncing?

    I run iTunes on a virtual machine(VM) so that iTunes is accessible even when my laptop is off. To sync I have the host system to autoatically connect the iPhone to the VM running iTunes when I plug it into the USB port. This works great, except I unless I remotely connect to the VM ( the host is headless) or sit there and watch the iPhone sync, I don't know when it's done. What I'd like to do is plug it in, go about my business around the house, and listen for a beep or other distinctive sound that tells me it's finished syncing.
    TThe sound needs to come from the iPhone, as the VM host system does not have any speakers attached to play sound through. Is there a setting anywhere in iOS to have my phone play as sound when it's done syncing?

    Well get yourself hired in APPLE and do the favours to us for this new concept
    Once sync is finished you don't  see the sync logo next to coverage bar at the top

  • Can i have vat condition on freight charges

    Hi,
    One of my client requirement is a special one we . As per the requirement he needs VAT to be calculated on freight only.
    Example
    This is my pricing proceedure
                                                                                 10 Pcs
    P001     Gross Price     175     INR       1750
         Net Including Price     175     INR       1750
         Net Value Incl. Disc     175     INR       1750
    JEXS     Taxes on the PO     288.4     INR
    JEXC     IN Manual Excise     0     %
         Net Value Including     203.84     INR
    JOCM     IN Octroi     0     %
    FRB!     Freight     200     INR
    SKTO     Cash Discount     0     %
         Actual Value     203.84     INR        2038.40
    Here the taxes are calculated on the materail  JEXS only
    My tax calculation are
    BASB     Base Amount                                    1,750.00
         Calculated Call     175     1     1,750.00
         Sub total     175     1     1,750.00
    JMOP     IN: BED setoff %     16               280
    JMX1     IN: A/P BED setoff     100               280
         Total excise duty     28     1     280
    JEC1     N: ECS setoff %     2               5.6
    JSEP     IN: HEcess setoff %     1               2.8
    JEX1     IN: A/P ECS setoff     100               5.6
    JHX1     IN: A/P SECES setoff     100               2.8
         Sub T: ED + Ecess +     28.84     1     288.4
         Copy Net Price     175     1     1,750.00
         Price + ED + Ecess +     203.84     1     2,038.40
         Net Value After Tax     203.84     1     2,038.40
         Net Price + ED + ST     203.84     1     2,038.40
    The freight value Rs. 200 should have a tax of Rs. 24 my final proce will be Rs.2062.40
    How can i go ahead with
    Sunil

    Do you need that? If you hide (best) or disable the Next button until they have opened the URL this is not necessary. A button has also Success/Failure/Hint captions (see Options accordion) but the Success caption appearing will not prevent the action on the button to be executed.
    If you want to do that instead of hiding the button, there are several possiblities. Do you use Captivate 6: use a smart shape as text container and turn it into a rollover shape, with the area over the Next button. When the user moves over that Button he will see the message. In previous versions and in CP6 as well you could use a rollover caption for that goal. Bit more complicated because it will need a conditional advanced action is a Hide/Show action for a text caption or a shape as text container when the next button is clicked. To track the click on the other button that opens a file/URL you'll have to create a user variable that will have to change from 0 to 1 if it is clicked (with the same standard action you already discovered), and on the Next button you'll check first if the variable has been set to 1, if not you show a warning, if it is changed you'll proceed to the next slide.
    Lilybiri
    PS If your question is answered, could you please mark the thread as answered?

  • CAN WE HAVE IF CONDITION IN QUERY GENERATOR

    Hi friends,
    am, trying to make use of if condition to obtain a set of values in query generator.  Its possible to retrieve the required result set using query analyser but not in query generator.  am trying to execute the following query
    if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 1 and owor.itemcode = '100-100')
    begin
                    select itt1.u_reactor1 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
    end
    else
    if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 2 and owor.itemcode = '100-100')
    begin
         select itt1.u_reac_23 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
    end
    else
    if exists (select owor.u_reactor from owor,oitt where oitt.code=owor.itemcode and owor.u_reactor = 3 and owor.itemcode = '100-100')
    begin
         select itt1.u_reactor4 from oitt,itt1 where itt1.father = oitt.code and itt1.father = '100-100'
    end
    if it is not possible to write such query in query generator  can someone help me with a workaround solution.
    Thank u
    Vaitheeswaran

    Hi,
    I dont think Nested IF Statements are allowed in PLD. The reason that u get the result in Query analyser and not in Query Generator is that SAP supports Transact SQL and many SQL Server 2000 functions are not supported.
    However there is a work around in Print Layout Designer for using IF condition by having Linked Objects. Kindly see some tutorials regarding Linked fields available on SDN site and think of some other way of implementing this nested IF query.
    Regards
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • Can I have mannual condition value as zero in Sales order

    Hi
    I need to enter a mannual condition type in sales order in %, but it should not give me any value and it should be zero. In Pricing procedure I haven't maintained any values in from & to column, but then it is taking the value either from the base price or from some other value. Can any one tell me how to control this....and get zero as value in sale order though I enter in %.
    Regards,
    Ragu

    Hi,
    What is the function of the condition type if its effect is not to be evaluated in the pricing screen.
    anyways if thats the case, in the pricing procedure you can specify the counter no. in the from and to fields related to the condition type.
    you can enter the counter no. of the base price on which you want the percentage of the particular condition type to be executed.
    hope it would solve your problem.
    regards,
    Siddharth.

  • Can't view terms & conditions in app store when trying to update apps

    When trying to update my apps, I get a notification that says:
    iTunes Terms & Conditions Have Changed
    Before you can proceed you must read & accept the new Terms & Conditions
    I am given the options "Cancel" and "OK". Upon clicking "OK", however, the Terms & Conditions do not show up. Instead, I am just back at the screen that shows my available updates.
    Please note that this issue is different from other issues that say they cannot update apps because of this pop-up; their situation is that the Terms & Conditions show, and they are given an option to accept the Terms & Conditions, but upon doing so and trying to update the apps again, they are prompted with the same message. I am completely unable to view the Terms & Conditions entirely.
    This may or may not have to do with another minor issue I'd been experiencing where certain applications do not allow me to switch to or from the application. For example, whenever I receive a text notification pop-up, clicking "View" or "Reply" will simply close the window but it will remain on the window that I am currently on and will not switch to the text messaging app. This also seems to be the case when a notification occurs in the notification center and upon clicking on the notification, nothing happens. This only happens to select applications, not all of them.
    I am currently running on iOS 6.1.3 on a 16GB iPhone 5 with Verizon Wireless as my provider.

    I agree with you. I have just encountered the exact same problem and it's frustrating. It's a bug.
    Opening iTunes didn't solve the issue in my case.
    Here's a description of the problem and the solution I found:
    Problem
    1. Opened the App store
    2. Logged into my account
    3. Clicked on the download link for the app in question — was presented with the dialogue that I should accept the terms and conditions etc — and pressed OK.
    4. Nothing happens. Repeated step 3 many times but nothing happened.
    Solution
    1. Quit App store
    2. Launch App store again and repeat step 3 above.
    3. The terms and conditions will appear on the screen for you to accept and you can then proceed with your download/purchase.

  • How can I return to a previous version of Numbers? Or how can I have all my sheets show on a column on the left hand side, as in the previous version?

    I updated my Numbers for Mac only to find out that there are several changes that make it less appealing for me so far (and I don't think it's only the learning curve). Questions: a) can I somehow edit the location of where I can find all the sheets (right now they are on top of the page, and you can't see all of them listed at quick glance but must scroll/arrow through them) I have in that spreadsheet? In the previous version they were all easy access on the left hand side.
    Or b) can one go back to a previous version of a program somehow?
    Thank you for any leads/answers!
    L

    can I somehow edit the location of where I can find all the sheets (right now they are on top of the page, and you can't see all of them listed at quick glance but must scroll/arrow through them)
    On my machine I just hit shift-command-j (the keyboard shortcut I assigned in System Preferences) and a list of the sheets in the current document pops up:
    I type a number from the list and jump immediately to that sheet. The hands never have to leave the keyboard.
    (This particular document had a sheet named for each month.  But the sheets in your document automatically will be listed instead.)
    This is done via a Jump to Sheet Automator Service (Dropbox download).  To install just doubleclick the .workflow package and (if needed) click 'Download Anyway' in System Preferences > Privacy & Security.
    Installation will cause a new item to appear in your Numbers > Services menu.  Then, if you want a keyboard shortcut, go here in System Preferences and add one:
    You can rename or remove the service by holding down the option key in Finder and choosing Go > Library > Services. You can also view the AppleScript contaned within the service by opening the .workflow package in Automator.
    Note, also, that in Numbers 3 you don't have to use those left-right arrows upper right to slowly scroll left-right to the sheets that are out of view.  Just move your cursor up to the "band" with the "tabs" and drag left or right.  That's much faster than using the arrows.
    SG

  • Can I have text or a topic show when I click a folder

    I get this icon when I link to a Word document. when I generate the TOC it shows as a folder and in my project when I click it I do not get text to the right, only a drop down of what's attached or in the icon. Is there a way to have folders or this icon to show text when you click them. I'm not sure if I'm stating this properly but I don't want a bunch of items in the TOC that do nothing other than be an organizer. I have tried to search the help documentation to see if I'm missing something and do not find any topics about this. I believe I have seen on other sites where I can click an item that will expand (I call this a folder) but when I do I not only get a list of other items or topics in that area but also text to the right in the body of the project.
    Any suggestions?

    While I was drafting this, both you and Ben posted some good comments. I'll go ahead and complete my post in hopes of shedding some light for others who may be wondering.
    The Word linking icon is new to RoboHelp with version 8 and many folks are still getting the hang of it, so I'm glad you asked the question. As you have discovered, that green icon means that the Word document is linked and is up to date at this point.
    One thing that will not be obvious unless you "look under the hood" in the Windows Explorer is that the icon actually represents a "real" subfolder that has been created automatically on your hard drive within the project folder structure.
    That new folder is automatically created bearing the same name as the Word document. When you right-click to "generate" the .htm content, this is the folder that will contain that content (along with any graphics or .css files as a result of the Word conversion).
    So moving along, if you use the "Automatically create TOC" feature to create your table of contents, the Word-created folder will be treated as a "Book" with whatever topics shown inside. (As you have discovered, you can workaround this manually with drag and drop.)
    Within the Project Manager pod, the reason you don't have any text showing (or a topic displaying in the Design Editor), is that the Word-folder is not a topic and thus has no text. It is simply a container for the topics inside.
    Now, if you don't like the idea of the Folder showing up as a Book in your TOC (or as an organizer as you put it,) you can simply move the Topic(s) inside the book to where you like and delete the "Book" icon in the TOC editor.
    Or, as Ben aptly suggests, you can also edit the properties of a book to have it link to a topic of your choice by the method he describes in his post.
    Hope this helps.
    Thanks,
    john

  • HT3529 How can I have my phone number pop up when I send a text from my iPad?

    I did a test text to my iPhone from my iPad and it came up as my email. How can I make it my phone number so I can text people in my contacts without it showing up as my email?

    On the iPhone and iPad go to Settings/Messages/Send & Receive, set the "Start a new conversation from..."  your phone number.

  • HT6058 When can we have Reject option for a call when the screen is locked?

    Its very annoying that we cannot REJECT a call when we want when the phone is locked . When will we have this fixed?

    Tell Apple you'd like to see this on the Lock Screen:
    http://www.apple.com/feedback/iphone.html

  • Hi i was wonder if you all can't have a time sync Calender, like when you traveling it will display when is the next holiday an full moon, or any info about the place you going to

    i would like to see apple invent a smart calander one that can time sync with the location you at, displaying when is the next holiday etc an also be alble to show when is thee next full mooon all so...

    Sorry the site didn't suggest these articles, but from your description, I'd start here:
    * [[Firefox can't load websites but other browsers can]]
    * [[Configure firewalls so that Firefox can access the Internet]]
    (If those are not linkified in email, come back to the thread for live links)

  • Can I have a product formula in an entire column that will multiply the previous two columns?

    Trying to enter a product formula for an entire column that will multiply the previous two columns without having to select each row of two cells and clicking on "product".  This is tedious.  Thanks.

    My own tip to apply fill down to a column :
    click the tab at top of the column to select the entire column
    press command then click the header cells to unselect them
    Trigger Table > Fill > Fill Down
    It's the kind of info which is available in Numbers User Guide.
    It's always good practice to Read The Free Manual.
    Yvan KOENIG (VALLAURIS, France) mercredi 21 septembre 2011 21:07:53
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

Maybe you are looking for

  • ADF:--Error occurred during initialization of VM,Could not create the Java

    Hi Friends, when am creating new adf page and starting Run the ADF page it will through an error *** Using port 7101 *** "C:\Users\Rama Krishna\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\bin\startWebLogic.cmd" [waiting for the s

  • Best Practice Advice for Xcelsius Beginner

    Hello, all - This is my first post to the community. Please forgive my naivety. : ) I've read about half of the 400 page Xcelsius manual, and am still confused about using individual cells to comprise a series. My client has a ready-made Excel spread

  • SOAP Web Services in JDeveloper

    Hello! As you helped me with my other problems, I hope you can help another time: A SOAP web service that was already running, won't do that anymore, but shows up the following two error messages: [SOAPException: faultCode=SOAP-ENV:IOException; msg=R

  • Unable to print Batch Master Record

    Dear QM Gurus, I am unable to print Batch Master in COEBR Transaction, it is showing all the process orders and Inspection lot related to this batch. But not able to take print out, it is asking for Deviations, Archive and Approval. Anybody can guide

  • Do you need to add an anti virus on mac pros

    I purchased a mac pro for my son and was sold an anti virus to install. Do i really need to install this? I would rather not. Thanks