Dynamic Parameter Page - Hidden and Required fields

Post Author: robfurrball
CA Forum: .NET
Product: CR 10
Version: 10.0.0.5.1279
Operating System(s): XP
Database(s): SQL Server All, This is my first forum post, so please excuse any mistakes...I believe this is the right forum for the topic.  I'm working on a page that will dynamically read the parameters in a CR report requested by a user and will build and display an input for each parameter (datepicker for date, drop down list for discrete values, etc.) I'm looking at how to define whether a parameter should be hidden (ex. username - populated by a session variable) or required (ex. Customer Name - would like to bold or put a special character next to the label/prompting text to show that it is required). The best that I've come up with would be to define a naming scheme like @_variable for hidden and @#variable for required.  Is there another way that this could be done in case other groups want to use this page to load reports in the future, but may not have those naming schemes enforced? Thanks,Rob

put this tag in body of your jsp
<af:messages/>
-- in backBean
public void save()
if ((bindingCampo1 == null) || (bindingCampo1 .getValue() == null))
JSFUtils.addFacesMessage(" This field is required.", FacesMessage.SEVERITY_ERROR);
else if ((bindingCampo2 == null) || (bindingCampo2.getValue() == null))
JSFUtils.addFacesMessage("This field is required.", FacesMessage.SEVERITY_ERROR);
else
// with this line you call method save at your appModule and there you do a commit of you save operation
OperationBinding operation = bindings.getOperationBinding("save");
operation.execute();
if (operation.getErrors().isEmpty())
JSFUtils.addFacesMessage("Save sucefull.", FacesMessage.SEVERITY_INFO);
Message was edited by:
VictorHugoMuniz

Similar Messages

  • Partial trigger and required field

    We developed an ADF JSF application which some of field has partial trigger .
    Then we add some required field.
    when runtime when we change any partial trigger target item all field validated and "required field missing message" occurs.
    How can we prevent this behaviour ?
    why all field controlled against partial triggered items?
    is it normal?
    How can we solve this ?
    Thanks.

    Hi,
    in JDeveloper 11 the implementation has changed and the issue wont be the same in most of the cases. There also is a notion of subform that allows you to only submit the field of interest - not affecting any other field.
    Frank

  • Dynamic Forms with Subforms and Text Fields

    I've been reading all of the messages relating to subforms and dynamic forms and have used many of the suggestions, but haven't found anything that addresses the problem I am having. I'm using Designer 7.0. I've saved my form as a dynamic form, I've set my text fields for multiple lines and expand to fit. My problem is that as soon as I set the parent subform to Flow Content, everything moves to the left margin. I've tried grouping items together within a subform in hopes that the items will maintain their position on the page, but everything always moves to the left margin. I'm creating a legal form that needs to have text and a text field centered at the top of the page. Below that to the left is a text field that needs to be able to expand with two text fields to the right of it. Below that are additional text fields that need to expand as needed.
    Am "stacking" my subforms incorrectly and setting the wrong subform to Flow Content? Or, can you now lock a field to a specific position? Any help would be greatly appreciated.

    Unfortunately, I hadn't understood that you needed the fields to expand in height and everything below them to move down the page. In that case, you'll need to use flowed subforms.
    Having all objects move to the left side of the page is expected when setting a subform to flowed. That's because the flow is top-down, left-right.
    One thing you could try is making the text field that needs to be centered exactly as wide as the flowed subform and then setting its left- and right-hand margins to an equal number. This would ensure an equal amount of space on the left- and right-hand sides and because the field would be as wide as its flowed container (subform), entering multiple lines of text would result in everything below moving down.
    I've attached a sample form where the page subform has been set to flowed, the text field at the top is a multi-line/height-expandable text field with its width set to the page width and its left- and right-hand margins both set to 2in and the button and check box objects are pushed below the text field.
    When text is entered into the text field, it expands in height and causes the button and check box to move down.
    To achieve other horizontal and vertical positioning/offsets, you could play with the margins of all the fields that need this.
    Stefan
    Adobe Systems

  • Dynamically use page number in form field on spawned pages?

    I have a form with spawned pages.  JS for spawning page(s) works fine.  However, one text field on template is driving me nuts.  I would like this field ("CaseNum") to dynamically display page number, since page number also corresponds to case number.  On templage ("getcase"), I can calculate value for CaseNum using custom calc script (event.value = this.PageNum).  But that doesn't work because every spawned page gets the same value (ie, whatever is last spawned page number). I also tried JS below, using P0.getcase.CaseNum as the field on the template in which I want the page number/case number to be displayed:
    var oPage = this.pageNum;
      this.getField("P" + oPage + ".getcase" + ".CaseNum").value = oPage;
    But, this doesn't work either, because the field on the spawned page automatically gets the prefix of P + page number + .getcase appended to the field name.  Is there any way to dynamically used page number in a form field on spawned pages?  If so, how? Note that while I am trying to use a dynamic case number on spawned pages, it presents the same issue as dynamically displaying page numbers on spawned pages.  I'm a JS newbie, so any help appreciated.  I've searched high and low on web and in forums and couldn't find the answer.  Thx.

    http://forums.adobe.com/thread/1160899
    7.George Johnson,
    28-Feb-2013 09:42   in reply to natelfo
    Is this what you mean?
    Also see:
    http://www.planetpdf.com/developer/article.asp?ContentID=6466
    http://www.wordwizardsinc.com/blog/finding-the-fieldname-prefix-on-acrobat-acroform-spawne d-template-pages-using-javascript-functions/

  • Back buttons and required fields...how to implement?

    Hello
    I would like some thoughts on the best approach to the following problem please.
    -You have a wizard, lets say made up of 2 pages.
    -Page 2 has some required fields.
    -User goes from page 1 to page 2 then wants to return to page 1 for whatever reason.
    -(Assuming they havent filled in the required components), what is the best way to let the user navigate back to page 1, without the system kicking in its required fields warnings etc..
    One option I have thought of is populating the fields myself, but this feels like a hack.
    Second option could be to edit the required=#{} of the required components when the back button is pressed?
    Any thoughts?
    JC.
    Message was edited by:
    jamesclinton

    Good tip.
    ok, back to the main thread. immediate = true will result in any data the user entered being forgotten. The solution does by-pass the required rules, so its a mini result.
    Tomahawk does have a stateSave component.
    <t:saveState id="save" value="#{bean.xxx}" />
    And a JavaScipt listener component.. I'm thinking both or one of these could be used to remember/store the state..
    If anyone has any other solutions then please post.
    JC
    Message was edited by:
    jamesclinton

  • Page hidden if a field is blank

    Is there a code I can input that makes a page "hide" if a field is blank?

    In Acrobat you make the hidden page a "template" and hide it. Then for your field you need to use either a validation script or on blur action to change the template from hidden to visible and if the field has its data deleted then you need to hide the template.
    var cTemplate = "myTemplateName"; // name of template to hide/show
    var t = this.getTemplate(cTemplate);
    if ( t != null )  {
    if event.value != ""  t.hidden = true;
    else t.hidden = false;
    } else app.alert("Template " + cTemplate + " not found", 0, 0);
    // end of non-null template name

  • Logic Rules and Required Fields

    If I create a logic rule to show a field based on other conditions, can I set this field so that it is required only when it is visible?

    As long as the required field remains hidden, the user will be able to submit without entering data into the hidden+required field.  As soon as the condition is met to display the field the user cannot submit until they fill out the form.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

  • Page rotation and signature field

    Hello,
    I'm requesting some help because I spent too much time comparing my PDFs to see where I am wrong.
    I got a document with a clockwise rotation of 90 degrees for every pages. The conforming readers apply the
    rotation to display the content in a readable fashion.
    So, when I sign the document (with a visible signature field), the signature visual representation is rotated. I got back to ISO 32000-1
    and discovered the MK dictionary of widget annotations (table 188).
    Here is an example of the widget annotations I'm producing now:
    5651 0 obj
    <</MK <</R 90>>/F 4/Type /Annot/Subtype /Widget/Rect [100.0 475.0 356.0 731.0 ]/FT /Sig/DR <<>>/T (Sign5929838)/V 5649 0 R/AP <</N 5661 0 R>>/P 5629 0 R>>
    endobj
    But the signature representation is not correctly aligned.
    I compared to what Acrobat 8 Professional is doing. Until now, I found no differences, but those signatures are correctly aligned.
    5636 0 obj
    <</Rect[39.8122 525.182 153.319 702.22]/Subtype/Widget/F 132/P 5634 0 R/T(Signature2)/V 5660 0 R/DA(/MyriadPro-Regular 0 Tf 0 Tz 0 g)/FT/Sig/Type/Annot/MK<</R 90>>/AP<</N 5637 0 R>>>>
    endobj
    (Acrobat is re-ordering objects before saving the file)
    Well, I think I need some fresh look to understand when I went wrong.
    Here are the complete files:
    http://www.terafiles.net/v-121441.html (by me)
    http://www.terafiles.net/v-121442.html (by Acrobat)

    Ok, I finally found out what's going on backstage.
    The /R entry of the MK dictionary is just some informative statement. It does not make the PDF reader tilt the signature field.
    Acrobat modifies the current transformation matrice to do so.
    It's sad it's not clearly stated in the ISO standard...

  • Need xml tags for min and max length and required fields

    Hi - the following is the code that I am using to create a schema,register the schema, create a xml table and insert data into the table. notice that I am using the minOccurs and maxOccurs in the schema defenition but when I insert a record into the table with a value larger then the maxOccurs had been set to and I was able to succesful in the insert. Can someone tell me if I am usig the right tags and if not which tags am I supposed to be sing?
    EXEC dbms_xmlschema.deleteSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd',dbms_xmlschema.DELETE_CASCADE_FORCE);
    declare
    doc1 clob:= '
    <schema elementFormDefault="qualified"
    xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
    xmlns:hematest="http://www.specialtysystems.com/fraamed/kaylatest.xsd">
    <element name =�airspace�>
    <complexType>
    <sequence>
    <element name=�airspace_areas� minOccurs=�0� maxOccurs=�unbounded�>
                        <complexType>
                             <sequence>
    <element name=�area� minOccurs=�1� maxOccurs=�1�>
    <simpleType>
    <restriction base="integer">
    <minInclusive value="-999999"/>
    <maxInclusive value="9999999"/>
    </restriction>
    </simpleType>
    </element>
                             </sequence>
         </complexType>
                   </element>
              </sequence>
         </complexType>
    </element>
    </schema>
    begin
    dbms_xmlschema.registerSchema('http://www.specialtysystems.com/fraamed/kaylatest.xsd', doc1);
    end;
    Drop table kaylatest;
    create table kaylatest(
    schedules xmltype)
    xmltype column schedules
    XMLSCHEMA "www.specialtysystems.com/fraamed/kaylatest.xsd"
    element "airspace";
    insert into kaylatest (schedules) values
    (XMLTYPE('
    <airspace
    xmlns="http://www.specialtysystems.com/fraamed/kaylatest.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.specialtysystems.com/fraamed/kaylatest.xsd
    http://www.specialtysystems.com/fraamed/kaylatest.xsd">
    <airspace_areas>
    <area>99999999999999999999999999</area>
    </airspace_areas>
    </airspace>

    Please see the posting guidelines thread...
    Posting Guidelines...
    BTW also note that the forum has a search capability.

  • Form Features: Checking for required fields on scrolling or moving to the next page.

    Hi! I am developing a form which will be distributed to people using Adobe Reader without the JavaScript functionality. I have a form with about 20+ pages and each page has 4 required fields. I would like to make it easy for the users to show the errors then and there when they miss a require field, instead of having a generic "required field not filled" message at the end of the document. How do I do this without JavaScript? It would be better if the document jumps to the page where there is an empty "required" field.

    This isn't possible without using JavaScript.

  • Checksum error for Hidden and Protected item

    I have a region with 3 items - a Text field, a Text area and a Hidden and Protected item. When clicking on the save button the record should be written to the table. However I get the following error:
    ++Checksum error for Hidden and Protected item ID (7676217916943303), value (), posted checksum (1060941776BCEA7DDAE813A442DF01E3), expected checksum (********************************), index_i (8), index_j (1), index_m (3);++
    When I change the hidden and protected field to a regular text field I am able to successfully process the page.
    Do I have to do anything different when I have a hidden and protected field? Would appreciate any suggestions/comments to help resolve this issue.
    Regards,
    Ghazi

    If you have client-side code that changes the value of a "Hidden and Protected" item after the item/value has been emitted to the page by Application Express, you need to change the item type to Hidden, instead.
    Scott

  • Dynamic parameter doesn't bring in all the data

    Hi All,
    Crystal 11.5.10.1263
    Ok, I'm stumped. 
    I created a query that brings in all the data.
    I pasted the query in the report and it brings in all the data.
    I created a simple dynamic parameter to select the "ID" field.
    I looked for ID 1539 and saw that tons of IDs were missing,
    including 1539.
    I've already broken down the report and created tests,
    keeping them as simple as possible.
    The report without a parameter shows all the data.
    I also tried a static parameter just to see what would happen,
    and I got the same results as the dynamic parameter - lots of missing data.
    I guess that proves it's not the parameter, so I'm stumped.
    Signed,
    Stumped Jimmy

    hey stumped jimmy,
    you can increase the number of parameter values via a reg key...
    HKEY_CURRENT_USERSoftwareBusiness ObjectsSuite 12.0Crystal ReportsReportView
    uisng the decimal value  for "PromptingLOVBatchSize".
    please see the support note [here |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333333383331333333363331%7D.do]for more info.
    cheers,
    jamie

  • Do not want Comma in the drop down of my dynamic Parameter

    Hello All,
    I have a dynamic parameter on year and the database values are
    2007
    2008
    2009
    But when the user selects from the drop down box it displays with a comma as a seaprator in thousands like
    2,007
    2,008
    2,009
    Please suggest me how can i remove this comma in the drop down box.
    Thanks
    Robinn

    Since it is a dynamic parameter you can try creating LOV using Business View Manager or try to create a new report using add command and use the query with convert function and try to create a dynamic parameter using the field in the report. If the format is fine then try to save the report to server which will automatically generates LOV in the repository.
    Regards,
    Raghavendra.G

  • Is there a way to disable levels of a cascading dynamic parameter?

    Hello,
    As the title describes, I'd like to see if there's a way of programmatically disabling levels of a cascading dynamic parameter.
    For example, I have a dynamic cascading parameter that has two levels, levelA -> levelB, where based on the value of levelA, levelB choices get filtered. I'd like to programmatically populate a value for levelA and disable it so that the user can't change it.
    Miscellaneous info:
    Language: C#,
    IDE: Visual Studio 2010
    CR for Visual Studio ver: 3.0.2.x
    Any help is appreciated.
    Thanks.

    Hi Andrew,
    First, the version of CR for VS does not make sense, did you mean 13.0.2000.0? If so that is the Assembly version which never changes. The real version s the version of the dll's. Or you can query the GAC for the version this way:
    foreach (Assembly MyVerison in AppDomain.CurrentDomain.GetAssemblies())
        if (MyVerison.FullName.Substring(0, 38) == "CrystalDecisions.CrystalReports.Engine")
            //File:             C:\Windows\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\13.0.2000.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll
            //InternalName:     Crystal Reports
            //OriginalFilename:
            //FileVersion:      13.0.9.1312
            //FileDescription:  Crystal Reports
            //Product:          SBOP Crystal Reports
            //ProductVersion:   13.0.9.1312
            //Debug:            False
            //Patched:          False
            //PreRelease:       False
            //PrivateBuild:     False
            //SpecialBuild:     False
            //Language:         English (United States)
            System.Diagnostics.FileVersionInfo fileVersionInfo = System.Diagnostics.FileVersionInfo.GetVersionInfo(MyVerison.Location);
            txtRuntimeVersion.Text += fileVersionInfo.FileVersion.ToString();
            // check if CrsytalDecisions.Enterprise dll's can be loaded ( Anything but Cortez - managed reporting )
            if (fileVersionInfo.FileVersion.Substring(0, 2) == "13")
                btnRasOpen.Enabled = false;
            CRVer = fileVersionInfo.FileVersion.Substring(0, 2);
            return;
    As for the dynamic parameter you cannot get the top levels of the prompt, only the last field info but there are limitations right now.
    If you look at the Query all you will see is the last prompt field in the SQL.
    Currently we have an Enhancement request to be able to get the field name from the the report to get that last field name. There is no plans to get the field names above though so no option to disable in code.
    What you can do though is change the Dynamic parameter to Static and/or List of Values and then you can change the behaviour in your app by creating your own Parameter Prompt UI and the result should be noted in the WHERE portion of the SQL Statement. And no you cannot modify the SQL statement.
    Don

  • Debug not showing & required fields not working

    I have MX 7.0.2 Developer's Version installed on W2K and MX
    7.0.2 on W2003 soon to be production server. On my Developer's
    Version the debug output shows up and the required fields using an
    input tag work. The same code on the production server, with the
    same admin settings doesn't show debug output and the required
    fields don't catch that the field is blank. I have read in the
    forum that it is very likely that the /cfide virtual mapping is not
    configured correctly, but not specifically how to fix the problem.
    I see cfide in the admin setting, mappings on the production server
    and have tried turning debug on and off, but still no debug output
    and required fields not catching and not showing validation
    message. Any help would be appreciated.

    Hi Amit,
    Do you mean to say that you are not able to see these settings in SE16 where as other users are able to? If that is the case , there might be an authorization problem for you.
    or try logging off and loginto the system. that should work sometimes. If not try to go to SU53 and check whether your auth has failed to see for this table.
    Regards
    Srini

Maybe you are looking for