JSF 2: dynamic validation required for different buttons?

Hello

I'm currently learning on jsf 2.0 book of jsf 2.0 core + glassfish + cdi.

I have a question about the functionality of the JSF validation.

Let's say I have a very simple connection request that has a very simple as layout:

user name: (entry field for the user name - help needed = 'true')
password: (password entry secret - help needed = 'true')
loginButton + registerButton (to aid immediate = "true") + checkUserIdAvailabilityButton

Now, let's say the loginButton is pressed and the username and password are left blank, validation error occur in both fields, and who works as a what I wanted.

And when the registerButton is pressed, he doesn't care if the user name or password is filled by the user, since it is using immediate = "true", thus bypassing the validation and the order is fulfilled the request value phase apply, and which still works like what I wanted.

And here is my problem... When you press the checkUserIdAvailabilityButton, I expect only the user ID to be filled and I don't have to worry about whether or not the password field is filled, but the password field will return the error saying that it is a required field.

Is in any way to solve this kind of problem? I know that this could be an application very simple, but in my workplace, I think they design a lot of screens like this, as the record button with required with different refresh fields button but the buttons are on the same page.

Thank you!

do not use the property required, but instead, make the vacuum check server-side in your action methods. Total flexibility, as you want to in this case. It may require a few minutes more striking, however, you may not have everything.

Making of the postings in the view isn't my cup of tea I consider that it makes sense on the server side and so I like to have it in my beans to support where it is visible to everyone, including my unit tests. But that's my personal opinion.

Tags: Java

Similar Questions

  • VALIDATION required for invoker rights proc?

    The proc following EXEC_PROC in a package named PKG_DYNAMIC_SQL is called by the RUN_PROCS proc which is in a different package below:

    PROCEDURE exec_proc (pi_proc_name IN varchar2, pi_acctky IN varchar2)
    AS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    RUN IMMEDIATELY "BEGIN" | pi_proc_name | '(:acctky);' | "END;" USING pi_acctky;
    END exec_proc;

    PROCEDURE run_procs (pi_proc_names_tab IN pkg_types.t_tab_proc_names)
    IS
    BEGIN
    FOR indx IN pi_proc_names_tab. FIRST... pi_proc_names_tab. LAST
    LOOP
    pkg_dynamic_sql. EXEC_PROC (pi_proc_names_tab (indx), pi_acctky);
    END LOOP;
    END run_procs;

    The pi_proc_name is a set of stand alone procs that do an UPDATE statement. I find that I have not a statement COMMIT within each pi_proc_name, I get an ERROR of EXECUTION. Am I right to say that cause I have a BEGIN END (anonymous block) pair around the invocation of pi_proc_name I use INVOKER RIGHTS? That has something to do with the error when the called proc does not commit before stopping?

    Please help me understand why?

    An "autonomous operation" must always have a commit or rollback, as part of the operation. Has nothing to do with the rights of the appellant.

    This is why you are getting the error.

  • How to add different Actions on different buttons. How to receive the first screen in a stack

    Got two problems I have to solve.

    Let's start with my first.

    Source:

    public class core extends MainScreen implements FieldChangeListener{
        public core()
        {
            super();
            try{
                setTitle("Mobile Inspection Manager");
                RichTextField MainMenu = new RichTextField("Main Menu",RichTextField.TEXT_ALIGN_HCENTER);
                FontFamily fof = FontFamily.forName("Times New Roman");
                Font fon = fof.getFont(Font.PLAIN, 32);
                MainMenu.setFont(fon);
                add(MainMenu);
                SeparatorField Sep = new SeparatorField();
                add(Sep);
                add(new RichTextField(""));
                ButtonField but1 = new ButtonField("Equipment", ButtonField.CONSUME_CLICK) ;
                but1.setMinimalWidth(360);
                but1.setPadding(7,0,7,0);
                add(but1);
                ButtonField but2 = new ButtonField("Messenger", ButtonField.CONSUME_CLICK) ;
                but2.setMinimalWidth(360);
                but2.setPadding(7,0,7,0);
                add(but2);
                ButtonField but3 = new ButtonField("Reports", ButtonField.CONSUME_CLICK) ;
                but3.setMinimalWidth(360);
                but3.setPadding(7,0,7,0);
                add(but3);
                ButtonField but4 = new ButtonField("Preferences", ButtonField.CONSUME_CLICK) ;
                but4.setMinimalWidth(360);
                but4.setPadding(7,0,7,0);
                add(but4);
                ButtonField but5 = new ButtonField("Update/Sync", ButtonField.CONSUME_CLICK) ;
                but5.setMinimalWidth(360);
                but5.setPadding(7,0,7,0);
                add(but5);
                ButtonField but6 = new ButtonField("About", ButtonField.CONSUME_CLICK) ;
                but6.setMinimalWidth(360);
                but6.setPadding(7,0,7,0);
                add(but6);
                ButtonField but7 = new ButtonField("Exit", ButtonField.CONSUME_CLICK) ;
                but7.setMinimalWidth(360);
                but7.setPadding(7,0,7,0);
                but7.setChangeListener(this);
                add(but7);
            }catch(Exception e){
    
            }
        }
        public boolean onClose()
        {
                Dialog.alert("Goodbye!");
                System.exit(0);
                return true;
        }
        public void fieldChanged(Field field, int context)
        {
            master.Application.closeApp();
        }
        public void InfoScreen(){
            MainScreen Version = new ui.about.version();
            master.Application.changeScreen(Version);
        }
    }
    

    I've defined several buttons for the main Menu.

    How can I add these buttons Actions?

    I added one already to the Exit button. We work.

    My first idea was to add a method to implement the InfoScreen.

    But I get a Java error.

    Browsing through the Internet I have not found a solution.

    I took most of the developer Sources.

    But I don't know what I should do now.

    How can I declare different Actions for different buttons?

    2. question.

    I am swaping with screens with the pushScreen command.

    Is there a way to return to the previous screens?

    1 Add this as a change listener to each button.  In your fieldChanged method, mount ButtonField field, extract label and branch code according to it.

    2. pop removes the screen from the top of the stack so underneath the screen becomes visible. Stack screen blackBerry is just that - a battery.

    By the way - are you sure that you have found the font Times New Roman family?  There is no such family on BlackBerry.  Extract his name by using fof.getName () and display it in, say, Dialog.info - you might be surprised.

  • Bypass Validation required field required in dynamic form PDF

    I faced a difficult situation, where some fields are required, but we need allow the rule of validation (required) required bypass when you save the form and require to fill in these fields when you submit the form. In other words, to allow a flexible control when to enable / disable this feature.

    I wanted to put in place a flexible solution, and I will post my findings here. Appreciate your comments to improve.

    Steps to follow:

    1. mark the fields returned as required.

    2 specify 'Empty Message' as "this field can not be empty", or similar.

    3. specify the "Message of Script Validation" as 'this field must have a correct value before submitting', or similar.

    4. create a Global Variable-level form something like 'StopTotalValidation' and '1' as the default means default, turn off Validation for some cases.

    5. for areas that require this type of control, add the script (to be defined later) on the event to "validate":

    myTools.validateForRequiredField (the);

    6. create a Script object "myTools" and add the following script:

    function initStringFunc() { }

    Call this function to initialize Document

    String.prototype.Trim = function() {}

    return this.replace(/^\s+|\s+$/g,"");

    }

    String.prototype.LTrim = function() {}

    Return this.replace (/ ^-s+ /,' ");

    }

    String.prototype.RTrim = function() {}

    Return this.replace (/------s+$/,' ");

    }

    String.prototype.isEmpty = function() {}

    return (this == null) || "This.Trim ( == );"

    }

    }

    function setNodeProperty (, of theNode Dubien newValue) { }

    if (theNode [property] ! = newValue) {

    theNode [property] = newValue;

    }

    }

    function isNodePropertyEmpty (theNode, property) { }

        var result;

        if (theNode == null || theNode [theProperty] == null) {

            result = true;

        } else {

    result = theNode [theProperty] .isEmpty ();

        }

    returns the result;

    }

    function disableTotalValidation() { }

    StopTotalValidation.value = '1';

    }

    function enableTotalValidation() { }

    StopTotalValidation.value = '0';

    }

    function isTotalValidationOn() { }

    back StopTotalValidation.value ! = '1';

    }

    function isTotalValidationOff() { }

    back StopTotalValidation.value == '1';

    }

    const conRequired = '(mandatory)';

    function validateForRequiredField (theFld) { }

        //

    / / Bypass required field Validation when the overall Validation is OFF.

        //

        var result = false ;

        if (theFld) { }

    If (theFld.mandatory & & theFld.mandatory == "error") { }

    If (myTools.isNodePropertyEmpty (theFld, "rawValue")) { }

    myTools.setNodeProperty (theFld, "rawValue" conRequired);

                }

    If (isTotalValidationOn()) { }

    If (isNodePropertyEmpty (theFld, "rawValue") | ) theFld.rawValue.toLowerCase) == conRequired.toLowerCase ()) {

                        result = false;

                    } else {

                        result = true;

                    }

                } else {

                    result = true;             

                }

            }

        } else {

            result = false;

        }

    returns the result;

    }

    7. now click on the button 'save' call the function "disableTotalValidation()" and click on the button 'submit' call the function "enableTotalValidation()".

    I just finished the implementation of the solution above, and according to my initial tests, it works fine.

    I'll post this to my Google Docs workspaceand provide updates their.

    T arek.

    Hi Niall,

    In fact, it is not that some require and some do not need validation...!

    The fact is that fields that are 'Required' rule ignored should only and only if the form is "saved" from the Save"" button.

    The 'Required' rule should be triggered only and only the user is clicking on the submit"" button.

    I think I can make use of your approach. The only problem I see now is how to mark the item of of these fields with the details the user of LiveCycle Desinger interface requires? This means, I have to call a script on the initialize event of these areas, which is more work and more confusing for other developers. As I use a non-standard feature of the interface user Desinger.

    In my case, I added a simple invocation of the event 'validate' to a common function for all areas that need to follow this simple rule "bypass validation required...". »

    But, I really like your solution. In fact, I understand what you're doing, but now the following questions are triggered:

    1. What is the meaning of three time equal (=) in the statement of JavaScript "if"?

    2 I need more information on the use of methods 'createNode()' and 'namedItem().

    Tarek.

  • Utility to do validations/controls pre-required for the installation of R12?

    Hello

    ENV: Oracle Linux 32-bit 5.8, Oracle EBS R12 (12.1)

    Is there a utility of Meta Link that I can run to check if all the prerequisites are met for the installation of Oracle EBS R12 on Oracle Linux 5.8 32-bit?

    What is the name of the utility?

    Best regards

    Hello

    Regarding your checks of preinstallation of the original question, have look at GDR - health check / Validation Engine Guide (Doc ID 250262.1)

    There are sets of different rules for different OS that you can use to check if all the conditions are met before installing

    You can consult the mos note "R12.1.1: Installation of Oracle E-Business Suite and upgrade Lotus Notes version 12 (12.1.1) for Linux x 86 (Doc ID 761564.1)" and install the needed packages from your installation media (most of the packages are available on the installation media, oracle has provided a separate link for those not available)

    If yum does not properly check out this (you are on 32 I doubt there is one for 32-bit)

    Index of/repo/EnterpriseLinux/EL5/addons/x86_64 /.

    Concerning

    SANAE

  • I want to use two different images for a button state...

    I want to use two different images for a button state... [Normal] grayscale media social icon outline [rollover] color media social status icon.

    Option 1:

    Create a status button which becomes transparent in the mouse above.

    Have the other underneith of the image.

    Option 2:

    Create a status button with a background image.

    Then select a different background image for each State.

    You can also do cool stuff like Sprite buttons too.

    Example: Adobe Muse Social Sprites by MuseThemes

    Widget page: Adobe Muse Social Sprites by MuseThemes

    Themes of Muse had a great video about these doing just now.

  • Files which are required for Windows to run properly have been replaced by unrecognized versions

    I get this window popping up that reads, "files required for Windows to run correctly have been replaced by unrecognized versions.»  To maintain system stability, Windows must restore the original versions of these files.  Insert your Windows XP Professional CD2 now. "The problem is that I'm not running XP Professional.  I am running XP Media Edition (do not know what version - when I look at 'System' in the control panel it says version 2002, but the OS disc that came with my computer says version 2005 with update rollup 2).  In any case, I only have an installation disc, and when I insert it, the computer tells me it's the wrong disc.  What should I do?

    God help us all...

    Is the CD you have an XP bootable installation CD authentic or some kind of restore CD provided with your system (they are not the same thing).  If it's a CD of Windows, this Service Pack is on the CD?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    If the system works, what do you think might have changed since the last time it did not work properly?

    What is your Service Pack installed?  If you are not sure, do the following:

    Click Start, run and enter in the box:

    Msinfo32

    Click on OK and when the system info summary appears, click on Edition, select all, copy, and then paste the results here.

    There will be some personal information (such as the user name and the name of the system), and what appears to be personal information for you, simply delete the personal information of the pasted information.

    When you see a message like this:

    Windows file protection
    Files which are required for Windows to run properly have been replaced by unrecognized versions.  To maintain system stability, Windows must restore the original versions of these files.

    I hope that you are curious to know what is the file and when you know that, you can decide what to do about it.

    You must click Cancel, and then click Yes to keep the file, then you will have an event to watch which will tell you what the problem is the file.

    Search where you sign in to see what is the name of file system Viewer, then decide what to do.

    The event will look something like in this example:

    Event type: Information
    Event source: Windows File Protection
    Event category: no
    Event ID: 64005
    Date: 10/01/2011
    Time: 14:41:56
    Description:
    The protected system file taskmgr.exe had not been restored in its original, valid version because the Windows File Protection restoration process was cancelled by user interaction, user name is Jose.  The file version of the bad file is unknown.

    When you know what the file is, you can decide what to do about it.  There are probably other copies of the files on your system, or you can get the files from another source.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    eventvwr.msc

    Click OK to launch the event viewer.

    Check your event observer system log and look for a proposed Windows file protection event.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove all personal information from your information after you paste If you are forced to do so.

    P.S. Let us know how you go with these Microsoft KB article suggestions.

  • Under XP, while doing a disk cleanup, get a message "files required for windows runs properly have been replaced by unrecognized versions.

    While doing a disk cleanup, I received a message "files which are required for windows to run properly have been replaced by unrecognized versions.» To maintain system stability, Windows must restore the original versions of these files. Insert your CD-ROM in Windows XP Home Edition now. "and I did not... I can restore it online?

    * original title - windows file protection *.

    Maybe someday the dialog box 'ask a question' forums XP will ask these questions automatically when a new thread is started so I don't have to ask every time.  It might even be possible to solve a problem in a single response when enough information is provided.

    Please provide additional information on your system:

    What is your Version of XP and the Service Pack?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    If you have a genuine XP installation CD bootable which corresponds to your currently installed Service Pack, you won't get away with instructions to run sfc/scannow.

    Windows file protection wants to replace a file of the backup copy he keeps in the dllcache folder and WFP found that the backup copy of the file on your system is not look right, so he complains (there is a list of 3498 files PAM knows).

    When you see the original message, if you click Cancel, then choose 'keep' the file afflicted, you will see a warning message, and then a message like this in the case where the system log viewer:

    Event type: Information
    Event source: Windows File Protection
    Event category: no
    Event ID: 64005
    Description:
    The protected system file taskmgr.exe had not been restored in its original, valid version because the Windows File Protection restoration process was cancelled by user interaction, user name is Jose.  The file version of the bad file is unknown.

    As you can see, the file that WFP is concerned is clearly stated in the paper, so now you know what is the file.

    For the above example, I used my (taskmgr.exe) Task Manager file to reproduce the problem.  You need to see what your event viewer message says.

    When you know what the file is, you can decide what to do about it.  There are probably other copies of the files on your system, or you can get the files from another source.

    A shortcut to the event viewer is to click on start, run and enter in the box:

    eventvwr.msc

    Click OK to launch the event viewer.

    Check your event observer system log and look for a proposed Windows file protection event.

    If you double-click on an event, it will open a window of properties with more information.  On the right are black up and down arrow keys to scroll through the open events. The third button that looks like two overlapping pages is used to copy the details of the event in your Windows Clipboard.

    When you find an interesting event that occurred at the time of your question, click on the third button at the top and arrows to copy the details and then you can paste the details (right click, paste or CTRL-V) the text in detail here for analysis.  Remove personal information from your information
    After having stuck if you are forced to do so.

    Do, or do not. There is no test.

    I decided to implement the points for a new puppy instead of a pony!

  • Bundle file was rejected. Package ID is required for all .bar files.

    Hi all

    I transferred my request 2 months before the app world. Now, I want to download the new version.

    But it gives error when downloading:

    Bundle file was rejected. Package ID is required for all .bar files. If this is an upgrade, ID of Package must match ID of Package in the bundle of the original file.

     


    Please provide any suggestions to solve this one. It is urgent.

    Thanks in advance.

    Hi Hemant,

    I hope that you change the name of the Package or key Sigining?

    According to my understanding now solved BlackBerry Siging issue so I don't expect that one question remaining is different name of the package so check and let me know...

    --------------------------------------------------------------------------------------------------------------------------------------------

    feel free to press the button like on the right side to thank the user who has helped you.

  • Need help for the button to trigger on the text caption effect

    Hello world

    I work in

    Screen Shot 2016-04-13 at 12.52.31 PM.png

    on a Mac (chart below)

    Screen Shot 2016-04-13 at 12.53.04 PM.png

    I'm very new to Captivate (only my second week), but am familiar in other Adobe programs. I'm trying to get a dynamic object that I made in a button to trigger an effect on a text caption. I scrolled the forums here and tried various things of the advanced actions for just using the drop down menus in the property inspector and nothing that I tried gives me the result I want.

    Here is a screenshot of what I'm working with.

    Screen Shot 2016-04-13 at 12.54.37 PM.png

    What I want to do is for the arrows for the buttons (and they are currently). When the slide appears first I don't want that image and the arrows visible. So when the user clicks on the arrow, I want the effect I chose (spiral) that will be triggered with the corresponding text.

    Looks like my property for each caption Inspector (the names are different for each)

    Screen Shot 2016-04-13 at 12.58.03 PM.png

    And I also tried to write a few advanced Actions that follow as well as tutorials that I found online, and nothing gives me what I want.

    When I preview the slide I can see everything on entry and then when I click the button to apply the effect. I rechecked the advanced actions and usually when I try these nothing happens at all.

    Is - it there anyway that I can get that works this way, I'm wanting. It seems that it should be simple and I'm right on it.

    The shape of buttons are all pause at this moment, it's OK.

    I just tried it out and see what you mean. The text is there from the beginning, and that shouldn't be the case. you expect it not to appear when the button is clicked. I have never used this spiral effect myself, but since you have no control over it, I mean you can't see where starts the effect at all, there is no visible path you have with the other effects of the entry. Either, you need to create a custom, effect whose path begins with text outside the scene, or a combination of an Alpha to + a standard entrance effect.

    Tried the first one with a simple left to a straight path. I edited the paths so that they all start at the same position horizontal and end at the same horizontal position. So happy with the leaders and Guides that we finally got in Captivate, they are very useful for this type of design:

    It's the chronology:

  • Disable Validation on the Cancel button

    Hi guys,.

    I use jdev version is 11.1.1.5.0.I have done a validation custom for my Palm/editable grid table which i m, saving data on the button, click Save. Validation works perfectly except when I click on the button cancel next to my button 'save' his also validate grid table than i do ' t want to do.
    any suggestion how I can stop posting on the Cancel button.


    < af:table value = "#{bindings.ssku1.collectionModel}" var = 'row' "
    Rows = "#{Bindings.ssku1.rangeSize} '"
    emptyText = "#{bindings.ssku1.viewable?" "{'No data to display.': 'Access Denied.'}".
    fetchSize = "#{bindings.ssku1.rangeSize}" rowBandingInterval = '0' "
    selectionListener = "#{bindings.ssku1.collectionModel.makeCurrent} '"
    rowSelection = "single" id = 't3' columnStretching = 'last '.
    "partialTriggers =": cb20: cb50 "
    styleClass immediate = "AFStretchWidth" = "true" autoHeightRows = "8" >
    < af:column id = rowHeader "c54" = "true" align = "center" width = "100" >
    < af:commandButton text = 'Details' id = "cb10".
    actionListener = "#{jcbwb.jcbOrderRowSelect}" > < / af:commandButton >
    < / af:column >
    < af:column sortProperty = "ssku_size_1" sortable = "false".
    rendered = "#{gridDetailsBN.ssku_grid_col_1} '"
    headerText = "#{gridDetailsBN.ssku_grid_col_1_hdr}" id = "c44" > "
    < af:inputText value = "#{row.bindings.ssku_size_1.inputValue} '"
    label = "#{Bindings.ssku1.hints.ssku_size_1.label} '"
    required = "#{Bindings.ssku1.hints.ssku_size_1.Mandatory} '"
    Columns = "#{Bindings.ssku1.hints.ssku_size_1.DisplayWidth} '"
    maximumLength = "#{bindings.ssku1.hints.ssku_size_1.precision} '"
    shortDesc = "#{bindings.ssku1.hints.ssku_size_1.tooltip} '"
    disabled = "true" id = "nonpopupit61" >
    < f: validator binding="#{row.bindings.ssku_size_1.validator}"/ >
    < / af:inputText >
    < / af:inputText >
    < / af:column >
    < / af:table >

    Hello

    Set in the immediate to true on the Cancel button.

    Zitouni

  • How can I prevent validation required to control when I demand it?

    < af:inputText label = "" ref: " id ="it1" required ="true"autoSubmit ="false"showRequired ="true"requiredMessageDetail ="Order number is required for the client to information"binding =" #{w9manageBean.propOrderNumber} "/ >"

    < af:commandButton id = "cb1" actionListener = "#{w9manageBean.getCustInfo}" text = "Read customer information" / > "

    "< af:inputText label =" "UPC:" id = "it2" binding = "#{w9manageBean.upcInp}" autoSubmit = "true" required = "true" / >



    There are two areas of (it1 and it2) input with validation required to true. But hit a button (cb1) validation of the pop inputbox up.i want not one of the control's validation (it2) be called on this button (cb1).


    How can I prevent this?

    I use jdev 11.1.1.5.0

    Published by: AdfeeeZy_941794 on January 22, 2013 05:20

    Published by: AdfeeeZy_941794 on January 22, 2013 05:20

    You can use the subform

    
    
    
      
        
          
            
              
                
              
              
            
          
          
            
          
        
      
    
    

    See also: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/40-ppr-subform-169182.pdf

    Published by: Mohammad Jabr on January 22, 2013 15:37

  • The use of bind variables in dynamic query created for Ref Cursor

    Hello

    I'm in a situation where there is a Ref cursor to which the query is built execution based on a loop. This is why the number of links would be known until the program runs.
    The application is currently using literals instead of bind variables.

    code snippet of the above is
    strSql: = "select * from emp where 1 = 1 and ().

    loop cursor1
    If cond is true then
    strSql = strSql | "ename = ' |" Cursor1.ColumnName;
    end loop;

    Open cursor2 for strSql;

    How to use links in the example above.

    sb92075 wrote:

    user13019948 wrote:
    Hello

    Here is the code I have my trying to change literal-based link to the base.

    What do you mean by "based bind?

    who, what, how determines the values to be 'bound '?

    He's referring to the coding style. He is currently using concatenated literal, and the goal is to change it to use the bindings.

    If I understand this it is known as method 4 dynamic SQL and requires DBMS_SQL. There are examples autour but they vary according to the type of statement being generated - SELECT statements require column lists to be parsed, unlike the INSERT/UPDATE/DELETE.

    This came up recently on my current project and I hit a demo. Here a table of names and values accepted procedure and had to build these in a single WHERE clause along the lines of

    AND t_names(i) = t_values(i)
    

    for an undetermined number of elements in the array. For this demonstration, I used a table that we called "attribute" (don't ask) which has columns including 'attribute_id' and 'name', and I need to build a query along the lines of

    select description from attribute where attribute_id = :b1 and name = :b2
    

    by the way '1012' and 'ISIN' respectively. (I use a table better and after a CREATE statement for her but I have to rush right now, sorry).

    declare
       k_sql_base        constant varchar2(500) := 'select description from attribute';
    
       t_names           constant varchar2_t := varchar2_t('attribute_id',  'name');
       t_values          constant varchar2_t := varchar2_t('1012',          'ISIN');
    
       l_sql             varchar2(500) := k_sql_base;
       l_rows_fetched    integer := 0;
       l_value           varchar2(4000);
    
       l_cursor_handle   integer;
    
    begin
       -- Construct the SQL statement with column names and bind variables e.g.
       -- 'select description from mars.attribute where attribute_id = :b1 and name = :b2'
       for i in t_names.first .. t_names.last loop
          l_sql := l_sql ||
             case i
                when t_names.first then ' where ' else ' and '
             end ||
             t_names(i) || ' = :b' || i;
       end loop;
    
       dbms_output.put_line('SQL statment = ' || l_sql); 
    
       -- Parse the statement we built above (the remaining steps require a parsed cursor):
       l_cursor_handle := dbms_sql.open_cursor;
       dbms_sql.parse(l_cursor_handle, l_sql, dbms_sql.native);
    
       -- Associate the 1st column of output with variable l_value - required for SELECT statements:
       -- (actually the 3rd param here 'column' seems to be only used to get a datatype, in this case we want a string -
       -- dbms_sql.column_value actually extracts the value into a specified variable, which can be different.
       -- All examples in the documentation pass a local variable without further comment, so not entirely clear what this does other than set the output datatype.)
       dbms_sql.define_column(l_cursor_handle, 1, l_value, 4000);
    
       -- Now go through values array binding actual values to :bn variables in the cursor (similar to USING clause of EXECUTE IMMEDIATE)
       for i in t_values.first .. t_values.last loop
          dbms_sql.bind_variable(l_cursor_handle, ':b'||i, t_values(i));
          dbms_output.put_line('Bound :b'||i || ' as ' || t_values(i));
       end loop;
    
       -- Open the cursor and fetch the result (no loop here because we are expecting a single-row result):
       l_rows_fetched := dbms_sql.execute_and_fetch(l_cursor_handle);
    
       -- 'Returns value of the cursor element for a given position in a cursor'
       -- Copy the value of column 1 to variable l_value (has to match
       -- dbms_sql.column_value(l_cursor_handle, 1, l_value);
       dbms_sql.column_value(l_cursor_handle, 1, l_value);
    
       dbms_output.put_line('Result = ''' || l_value || '''');
    
       dbms_sql.close_cursor(l_cursor_handle);
    end;
    

    Hope that helps...

  • Captivate 5.5 prohibited for different types of a quiz question slides to work properly?

    Captivate 5.5 prohibited for different types of a quiz question slides to work properly?

    I have a quiz that includes multiple choice questions, multiple choice with several answers, sequencing, and short answer questions. I was told in an online conversation that I had to use a default template to Captivate with a type of question only for captivate slide works correctly. The Adobe representative remotely considering my record, and discovered that the quiz button is not connected to any action, even if I created it a slide of questionnaire.

    screen shot 18.png

    Online chat:

    Thank you for choosing Adobe. A representative will be with you shortly. Your estimated wait time is 4 minute (s), and 0 second (s) or more because there is 1 client (s) online in front of you.

    You are now chatting with 'Lea '.

    Leah: Hello. Welcome to Adobe Technical Support.

    Leah: I received your request. I would like to please a moment to check your account and review the details of your

    request.

    Leah: Please choose the option, the infinite attempts

    David Lee: Yes, I had endless attempts checked. It still does not work.

    Léa : Each question must have infinite attempts

    David Lee: Yes, I welcomed the infinite attempts in quiz preferences, as well as with respect to each question. This particular slide is a question multiple choice with multiple correct answers. The infinite button is checked. The slide informs the user to try again, but the back and the clear button do not work, the termination of the project and the user did not click the new button.

    Léa : I may have remote desktop connection help you?.

    David Lee: Yes, thank you. How do I facilitate this?

    Léa : http://my.adobeconnect.com/khyati/

    Léa : Enter as a guest

    David Lee: I'm in

    Léa : Share my screen

    Léa : Desktop

    Léa : Please show me what slide we discuss on

    David Lee: We discuss slide 18

    David Lee: The current slide

    Lea: I would like to see the result

    Léa : Tiffany is a Captivate model?

    David Lee: No, I did this. The other tab you see is called ClarkTemplate, but this isn't a model of captivate. I called model as is the format for the entire project.

    Léa : Unfortunately there is no action not implemented responses to check and also that is not a default captivate quiz, I can't support this.

    David Lee: Why is there no action on response to tick? It's a quiz slide

    Leah: The model of clark is not a default template of Captivate.

    David Lee: I'm supposed to use a default template of captivate?

    Leah: Yes if you want to

    David Lee: And it would work then?

    Léa : He could.

    David Lee: How to create a default template of captivate?

    Léa : They want a multiple response quiz?

    Léa : If so, please create a quiz, and you can create the quiz with the help of the help file.

    David Lee: Yes, but it should also include short answers and sequencing. Am I limited to a type of question in a quiz for captivate 5.5 working properly?

    Léa : Yes

    David Lee: Thank you for your time.

    Léa : Welcome

    Léa : I closed the meeting

    Léa : Please contact Adobe. Good bye.

    Friendly format for this question slide!  Very cool.

    One thing I want to suggest you check if you meet problems with question slides, but you have not accidentally deleted default captions that are on the slide when Captivate adds to your quiz.  For example if you have deleted or replaced the title of the question (the one that tells you that it is a true/false or multiple choice) or legends question text (the one that allows you to enter the question to which the user is supposed to reply), then you can expect to have strange problems arise.

    Usually, I suggest to users that they're trying to click the little eye icon on the timeline for the quiz question so that it hides all the objects on the slide.  This icon SHOULD NOT overshadow the default Captivate captions or buttons.  He must hide captions or the items that you added to the slide when it was inserted.  If you click on this icon and you see the title of the issue or question text captions disappear, then you are snookered and need to rebuild this quiz with a new question.  You can not re - insert these specialized legends once you've deleted.  They come with question slides.  Most users of Captivate are blissfully unaware that these legends of importance both for the proper functioning of the quiz.

    One last thing: some of your symptoms suggest that you have the Quiz settings > required options set too tight.  Make sure that the drop is set to optional for the highest degree of flexibility.

  • Requirements for forms designed in Livecycle PDF reader

    HI guys,.

    I designed some forms of dynamic pdf which was developed using Livecycle Designer ES. These forms are fillable online forms and I will download on my site for my users can open these forms in a browser, fill in the form online and print it for their personal use. These forms are more like tools for users online. To do this, I also provide my users with a troubleshooting guide, so they can refer to it if they cannot open the forms or having difficulties to display the forms correctly. So I just now, I am working on the creation of this troubleshooting documentation and I don't want to give the wrong info to my users so some clarification and some doubts and I was wondering if you guys can help out me...

    (1) according to what I understand, I think that users must have at least a v.8.0 Acrobat Reader to complete these dynamic forms designed in livecycle designer ARE. This is right? So I think go on my memory, because I think I read this somewhere. would you be able to clarify that? I have the right version?

    (2) in addition, as a result, I understand that users need to have a browser Acrobat reader to open PDF files in a browser. So, I'll add a list of the different download links for pdf plugin for different browsers.

    (3) I was wondering, what happens if the user does not have acrobat reader installed on their computer? What are the other common pdf readers who use different users? I know there are tons out there, but I try to understand the more frequent than the majority of people other than Acrobat Reader use. I mean the mac or other OS users. These forms will also work in other pdf readers? Is there is a list of the different pdf readers and versions requirements so that these forms of livecycle to work?

    (4) other than the above, think that if I need to talk about anything that any other troubleshooting documentation? The points that I may have missed?

    Sorry... This is the first time I'm downloading these forms online and I'm trying to understand the requirements that I may be able to help my users if they experience problems. So any help is very appreciated!

    Thank you..

    You can set a password for the permissions on the form using Adobe Designer template (file > properties > Security PDF).  If you set the permissions to "do not allow changes", you must provide the password to open the PDF file in Adobe Designer.  End users, the form do not have to enter a password to open it for fitness to drive.

    Concerning

    Steve

Maybe you are looking for

  • Virtual store Toshiba account reset - 23183

    Please reset my account - 23183. Model PX1530U-1ET1, S.N. Z9016517DH.Thank you

  • WLan / WiFi works does not properly on the Satellite C55C-C-16f

    Hello I just bought the laptop toshiba Toshiba Satellite C55C-C-16f mentioned in the title, and there seems to be something wrong with the WiFi adapter. Sometimes it connects to the WiFi, but most often, when I start the computer (whether by or stand

  • Re: Question from Toshiba on leave

    Hello, I'm new here I have a toshiba laptop and it came with visa buit inand there also a recovery partion and a partion windows 7 (I double started) When I go to Start menu - right-click on computer - manage-disk mamaagement I see my vista partion m

  • HP 15-af131dx: pilots internet Windows 7 HP 15-af131dx?

    Hello I recently bought a laptop from HP 15-af131dx from BestBuy. It came with 10 Windows but I'm not a big fan of Windows 10 so I went down to Windows 7. I searched for hours for drivers from internet for this but I can't. Now, it seems that HP has

  • How to DISABLE fax - HP Officejet application 6600?

    Someone can explain to me in no uncertain terms, how do I turn off the fax on my HP Officeject 6600 new feature?  Wireless internet connection.  We do not want the functionality, but are stuck at 'Fax Test' 'current fax test.  Please wait... "Touch s