Form change

Hello ,
         I am new to Adobe forms and Java. We have an existing adobe form built using live cycle designer. It has a section as a drop down ( for note types) under which it shows the different notes attached to a document. We would want to default it to a particular type of note ( as default ). This might be very easy to do, but can someone point me how to proceed?

If I add the default, will it reflect , which text is shown below?. This is the code for that drop down. How do i add default texttype here.
// If this object exists, then we are not being rendered by the XML Form Agent
if ((Exists(xfa.host.appType)) and ($.bind.ref <> "")) then
     // Note the rawValue and try to set the selection if it is present
     // As soon as you add items the rawValue will be lost
     var CurrValue = ""
     //  Check for a null - an empty XML node will return a null
     if ($.rawValue <> null) then
          CurrValue = $.rawValue
     endif
     var Found = 0
     // the data binding may contain "$data.<root data name>" instead of $record
     var DataBinding = replace($.bind.ref,Concat("$data.",xfa.record.name),"$record")
     DataBinding = replace(DataBinding,"[*]")
     if (Exists(xfa.record.enum_list)) then
          for i=0 upto xfa.record.enum_list.nodes.length - 1 step 1 do
               // Find the match.  The binding value may contain "[*]"
               // so remove them first
               var ListBinding = replace(xfa.record.enum_list.nodes.item(i).binding.value,"[*]")
               if (DataBinding == ListBinding) then
                    // the first two items are the name and binding attributes, then the list starts
                    if (xfa.host.version < 7) then  // add a dummy item to work around a bug in A6
                         $.addItem("a","-1")
                    endif
                    $.clearItems()
                    for j=2 upto xfa.record.enum_list.nodes.item(i).nodes.length - 1 step 2 do
                         // The order is assumed to be display and then data
                         // if the value is null, then add the empty string
                         if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) then
                              $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,"")
                         else
                              $.addItem(xfa.record.enum_list.nodes.item(i).nodes.item(j).value,xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value)
                         endif
                         if (xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == CurrValue) then
                              Found = 1
                         endif
                         if ((xfa.record.enum_list.nodes.item(i).nodes.item(j+1).value == null) and (CurrValue == "")) then
                              Found = 1
                         endif
                    endfor
                    // Now set the selection - omitting this step means there will be no selection
                    // if there is only one item in the list and no default value, we have to select the first item - Bug in Acrobat 6.02 (fixed in Acrobat 7)
                    if ((xfa.record.enum_list.nodes.item(i).nodes.length <= 4) and (CurrValue == "") and (xfa.host.version < 7)) then
                         $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                    else
                         // if available, set the selection to the default value
                         if (Found) then
                              $.rawValue = CurrValue
                         else
                              // otherwise: set the selection to the first item
                              $.rawValue = xfa.record.enum_list.nodes.item(i).nodes.item(3).value
                         endif
                    endif
                    // END OF DO NOT MODIFY
                    // START OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                    // END OF CODE - TO RUN AFTER LIST HAS BEEN FILLED
                    break
               endif
          endfor
     endif
endif

Similar Messages

  • How to publish infopath list form changes from one environment to another

    How can we move InfoPath customized list form changes from one environment to another example Development environment to UAT environment? We can save that as source file and update url on the .xsn file. But is there any other way we can do it?
    Rajasekar A.C

    Hi,
    You can save the list as template in source environment. Download the template for List Templates, upload in the same location in Destination site. The customized infopath should go with it. Let us know if that doesnt work.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Detect Form Change

    Hello Everyone.
    I'm using Apex 4.0.1 against Oracle 10.2.0.5 on Linux.
    I created an Apex form in which I included the following JQuery code that detects changes to fields or drop downs on the form. Note that I got this code from a previous Forum post contributed by someone named Vee in this Forum.
    $('#RSID1').find('input,select').change( function(){
       $s('P120_FORM_CHANGED','Y');
    if (document.getElementById('P120_FORM_CHANGED').value == 'Y') {apex.confirm(htmldb_cancel_message,'EXITPAGE');}This code resides in the "Execute When Page Loads" section of the form page. And it works fine. If I attempt to change any field on the form and then, subsequently, click the "Cancel" button on the form page, the form page variable P120_FORM_CHANGED is set to "Y". Then the javascript "if" statement checks the value of this page variable. If it is set to "Y", then the following Apex confirmation message appears:
    The form has changed.  Continue Cancelling?The problem I'm having is that, prior to the "apex.confirm" confirmation dialogue window even appears, I see all of the form field values revert back to their pre-change state. And so, even before the confirmation dialogue window appears, the user's form changes are "lost". If the user subsequently clicks the "OK" button displayed in the confirmation popup dialogue window, control returns to the previous page. This works as expected. In this case, of course, it doesn't matter that the form modifications were "lost".
    Unfortunately, when the user clicks the "Cancel" button on the confirmation popup dialogue window, the user is left on the same form page (which is what it is expected to do) but with all of the form fields back to their pre-modification values.
    I suspect the problem I'm having is somewhere within the above JQuery itself.
    Would someone be able to help me figure out why the user's form changes are always being reverted back to their pre-change values even before the confirmation dialogue window appears?
    Thank you very much for any help on this.
    Elie

    Have you tried using this plugin:
    http://www.apex-plugin.com/oracle-apex-plugins/dynamic-action-plugin/skillbuilders-save-before-exit_43.html
    there, you can define exceptions easily.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.apress.com/9781430235125
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Direction of Text in Forms Changed Strangely?

    Dear All
    I develop an application by default and its Direction was from LEFT to RIGHT in all data fields- as Engish writing default direction.
    After 2 months successful implemention and running on a PC, the direction of Text writing into all fields and in all forms changes strangely and it now take input from RIGHT TO LEFT?
    Can anyone help me to resolve this problem? where the things gone wrong? what i have to do now? what to modify?
    I do have more than 20 Forms and so hundreds fields there?
    Lookng forward ur urgent help.

    This is going to sound like a really obvious question but what have you changed since it started to do this?
    My guess would be some sort of NLS setting in Forms or in the O/S - does this happen to any other applications? What about a brand new Form; do you get the same. If you are running on the web does it change if you use a different browser?
    REgards
    Grant ROnald
    Forms Product Management
    http://www.groundside.com/blog/content/GrantRonald/

  • Payroll Form - Changes

    Hello Gurus,
    Can anybody help me on my previous post. Since I was not able to reply to the thread so I had copied the complete thread & pasted it below.
    As Mr. Zippo said, can somebody elaborate on implementing the formula & calculation.
    Best Regards
    Bhagwat
    Payroll Form - Changes  
    Posted: Aug 8, 2008 3:36 PM       E-mail this message      Reply 
    Hello Gurus,
    Please help me in this.
    I want a field in the PE51 form, where it should have a field called NO. OF DAYS PRESENT. The field value should be no. of days he should be applicable for Pay. e.g. If he had taken 5 days off in a month, then the no. of days should be 25 in a 30 day month & 26 in a 31 day month.
    Please reply ASAP as I'm in a project & touching the deadline.Adequate point will be provided.
    Marcello Lanzon...  
    Posts: 70
    Registered: 1/28/08
    Forum Points: 138 
    Solved problem (10)
    Very helpful answer (6)
    Helpful answer (2)
       Re: Payroll Form - Changes  
    Posted: Aug 8, 2008 3:58 PM    in response to: Bhagwat Mondal       E-mail this message      Reply 
    Hi Bhagwat!
    I think this documentation can solve your isue. Can you try?
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/60/d8bc36576311d189270000e8322f96/content.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/5e/af4aee901a11d2a6120000e83ddb11/content.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a6/d1be97932c11d2a6140000e83ddb11/content.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a6/d1be94932c11d2a6140000e83ddb11/content.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a6/d1be94932c11d2a6140000e83ddb11/content.htm
    Creating or Changing FORMS
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a1/9ef9f87ae811d2a5fa0000e83ddb11/content.htm
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/60/d8bf69576311d189270000e8322f96/content.htm
    Regards and good luck!
    ML
    Arti Lohar  
    Posts: 219
    Registered: 11/23/06
    Forum Points: 422 
    Solved problem (10)
    Very helpful answer (6)
    Helpful answer (2)
       Re: Payroll Form - Changes  
    Posted: Aug 8, 2008 6:41 PM    in response to: Bhagwat Mondal       E-mail this message      Reply 
    Hi Bhagwat,
    As far as I know, I dont think there is any standard provided to get the number of days worked in PE51.
    Of course you can write a custom rule in schema to get the hours worked based on the time sheet days and get the number of days worked in RT Table and then use them on PE51.
    But I would suggest you to go with ANZHL i.e. number of hours worked..
    Let me know.
    Arti
    Bhagwat Mondal  
    Posts: 20
    Registered: 4/3/08
    Forum Points: 0 
       Re: Payroll Form - Changes  
    Posted: Aug 11, 2008 2:42 PM    in response to: Bhagwat Mondal       E-mail this message      Reply 
    Thanx a lot Arti,
    I had already tried it but I'm getting only Total number of hours worked by that employee. Whereas I need the exact number of days that employee had worked for that month, including the sundays as the sundays are also paid. Specifically I need the number of days.
    Please Gurus help me in this.
    Regards
    Bhagwat
    zippo zhao  
    Posts: 20
    Registered: 1/29/07
    Forum Points: 14 
    Solved problem (10)
    Very helpful answer (6)
    Helpful answer (2)
       Re: Payroll Form - Changes  
    Posted: Aug 11, 2008 7:31 PM    in response to: Bhagwat Mondal       E-mail this message      Reply 
    If the shifts are all the same duration( like 8 hours per day), you may take a workaround, use formula : working days=total working hours / working hours per day.
    Bhagwat Mondal  
    Posts: 20
    Registered: 4/3/08
    Forum Points: 0 
       Re: Payroll Form - Changes  
    Posted: Aug 12, 2008 10:37 AM    in response to: zippo zhao     Edit      E-mail this message      Reply 
    Thanx for ur instant reply,
    But the thing is I have 6 days working. In those 6 days, 5 days is 8 hrs & Saturday is only 6 hrs working.
    Your formula can be implemented if I have an uniform working hours shift.Since we have a slight deviation here, we have to change the formula a bit.
    Could u also please tell me how to implement the formula & also bring into calculation into SAP.
    Please also suggest me if there is any other way out.
    Regards
    Bhagwat

    done it myself

  • ESS form change permanent address - how to modify text?

    We would like to change the default / delivered  text in the SAP delivered ESS form "Change Permanent Address".
    Currently it seems to translate very poorly from German to English.
    How do we alter the "change permanent address" text...specifically the part that that reads"  ... in so10? 
    "FORM AREA FOR EMPLOYEE" ...
    Thanks,
    Matt

    solved.
    found change of address form id here:
    http://help.sap.com/erp2005_ehp_05/helpdata/en/45/619a91e2d01feee10000000a1553f7/frameset.htm
    entered into SFP transaction (installed adobe life cycle manager).
    opened ISR_HRASR_SHAD, MADE changes.

  • Dunning form - change field data in STD form

    Dear all,
      I have a request for dunning form (ex.F150_DUNN_01).If I want to get data which can't get from table/structure MHND,F150x(ex. Sales order).I want to make a code in text element like:
    /:  SELECT * FROM VBRP WHERE VBELN = &BKPF-XBLNR&
    Is it possible to do this? else I will need to change dunning program to add this selection code...right?
    BR
    Regina

    I know that you can't do a SELECT statement in the sapscript form.  You can however do a PERFORM statement.
    You can call a subroutine of a program passing values to it and getting values back out. 
    In the sapscript.....
    /:   PERFORM 'NOT_PICKED' IN PROGRAM 'ZSD_RVADIN01'               
    /:   USING &VTRLK-VBELN&.                                         
    /:   USING &VTRLP-POSNR&                                          
    /:   CHANGING &WK_NOT_PICKED&                                     
    /:   ENDPERFORM                                                   
    Notice that the sapscript form is sending VBELN and POSNR
    and getting back WK_NOT_PICKED.
    In the program......
    form not_picked tables co_sym_using   structure itcsy
                           co_set_symbols structure itcsy.
    * Pass from layout set
      clear: wk_vtrlk_vbeln, wk_vtrlp_posnr,
    * Pass to layout set
             wk_not_picked.
    * get value of variable &VTRLK-VBELN&
      read table co_sym_using with key name = 'VTRLK-VBELN'.
      check sy-subrc eq 0.
    * convert into alpha format  (Not necessary all 10 characters used)
      wk_vtrlk_vbeln = co_sym_using-value.  "( need zero's )
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = co_sym_using-value
           importing
                output = wk_vtrlk_vbeln
           exceptions
                others = 1.
      check sy-subrc eq 0.
    * get value of variable &VBDPR-POSNR& (INVOICE Item#)
      read table co_sym_using with key name = 'VTRLP-POSNR'.
      check sy-subrc eq 0.
      wk_vtrlp_posnr = co_sym_using-value.
    * Send out "NOT"
          wk_not_picked = 'NOT'.
    **  transfer variable &WK_NOT_PICKED&
      read table co_set_symbols index 1.
      co_set_symbols-value = wk_not_picked.
      modify co_set_symbols index 1.
    endform.                    " NOT_PICKED
    Regards,
    Rich Heilman

  • DW CS6, two column table in form, changing font size in 1st col and can't change in 2nd

    In DW CS6, I made a two column table in a form for label/data.  I reduced the font size in the 1st col (label) from 12 to 10px but can't change in 2nd col  (data).

    Give data an ID or Class name and style it with CSS. 
    For better answers, we need to see your code.
    Nancy O.

  • Hyperion Planning form change not flowing through to Smart View

    Hyperion Planning 11.1.2 and Smaer View 11.1.2.
    I have a user that installed SV yesterday but has been using planning for years. I made a change on his planning form (just added an account) and he does not see this change in smart view. However, he does see the change when logged into Hyperion Planning in his form.
    One strange thing about this is the change shows for all hierarchies except for ones that he has loaded data to. So, for a hierarchy that has no data, it shows the form in SV how it is in planning. If he loads data to the hier, the form automatically switches back to how it was before the change, even when the planning form itself hasn't been changed.
    Here is what we have tried:
    Rebooted machine
    removed user security completely from plannng and added back
    checked for ghost instance in task manager or excel
    Opened new Workbook and opened form fresh
    remvoed connection, closed excel and all instances, new connection and open form fro mblank slate
    Nothing seems to be working. And I see the form how it is in planning. HE does not, he sees it the "old way" and ony for hier points that have data submitted to them. So, literally switches the view based on the POV.
    Any help would be greatly appreciated.
    Edited by: kplum12 on Jun 15, 2012 11:48 AM

    Hi,
    Sounds like in the smart list set up you set "#Missing Data Form Label:" to "Data Form Setting" change it to "Drop Down Setting" and it should be alright.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • ADF create form : change value fields

    Hi all,
    I have a create form:
    first problem
    one field is an ID known by my backing bean
    <af:form>
            <af:panelFormLayout>
              <af:inputText value="#{bindings.Mpr.inputValue}"
                            label="#{bindings.Mpr.hints.label}"
                            required="#{bindings.Mpr.hints.mandatory}"
                            columns="150"
                            maximumLength="#{bindings.Mpr.hints.precision}"                       
                            shortDesc="#{bindings.Mpr.hints.tooltip}"
                            clientComponent="true">
                <f:validator binding="#{bindings.Mpr.validator}"/>
                <af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
                <af:clientListener method="getMpr" type="mouseOver"/>
                <af:serverListener method="#{backing_main.remplirChampMprCreerNote}" type="seekMPR"/>
              </af:inputText>I would like that when my page appears this value field *#{bindings.Mpr.inputValue}* be filled by this one *#{backing_bean.myID}* .
    second problem
    I have 3 richTextEditor who provide auto-completion (If you type ADF and then *<ctrl+space>*, ADF would be replaced by Application Developpement Framework thanks to a bean)
    It works outside a create form . Inside a create form the problem is when calling my bean I have a validator alert who say "you must enter a value" and my Component's value is reseted..
    Does someone knows these problems ?
    Thanks,
    valéry.

    Hello simply,
    I have an af:form generated by a viewObject's drag and drop, the automatically generated code use bindings, I just replace 3 af:inputText by 3 af:richTextEditors and I add the listeners for <ctrl+space> event.
    here is the JSF page :
        <f:view>
        <af:document title="une note au dossier médical">
        <af:messages/>
                            <f:verbatim>
                <![CDATA[       
                <script language="javascript" type="text/javascript">
                var comp;
                var target;
                var prevKey;
                var curKey=0;
                function wysiwygKeyPress(event) {
                    prevKey = curKey;               
                    curKey = event.keyCode;
                    var wysiwygValue="";
                    if(prevKey==17 && curKey==32)   // CTRL + espace
                        var richTextEditor = comp; //wysiwygmode
                        if (target.contentWindow.document.attachEvent){   //IE specific
                             if(target.contentWindow.document.body.firstChild.innerHTML)
                                wysiwygValue = target.contentWindow.document.body.firstChild.innerHTML;
                             else
                                 wysiwygValue = target.contentWindow.document.body.innerHTML;
                          else {     //FF specific
                             wysiwygValue = target.contentDocument.body.firstChild.textContent;
                        AdfCustomEvent.queue(comp, "customEvent",{value1:wysiwygValue}, true);
                function rteMouseOver(event) {
                    comp = event.getSource(); //helper function
                    target = event._target;
                    //IE could not find the event._target
                    var clientId = comp.getClientId()  + "::cont";
                    var iframe = document.getElementById(clientId);
                    if (iframe.contentWindow.document.attachEvent) { //IE
                       target = iframe;
                       //IE uses attachEvent
                       iframe.contentWindow.document.attachEvent('onkeydown', function() { wysiwygKeyPress(iframe.contentWindow.event); });
                    else {
                    //FF uses addEventListener
                      iframe.contentWindow.addEventListener('keydown',wysiwygKeyPress, true);
                </script>
                ]]>
            </f:verbatim>
          <af:form>
            <af:panelFormLayout>
              <af:inputText value="#{bindings.Mpr.inputValue}"
                            label="#{bindings.Mpr.hints.label}"
                            required="#{bindings.Mpr.hints.mandatory}"
                            columns="150"
                            maximumLength="#{bindings.Mpr.hints.precision}"                       
                            shortDesc="#{bindings.Mpr.hints.tooltip}"
                            clientComponent="true"
                            >
                <f:validator binding="#{bindings.Mpr.validator}"/>
                <af:convertNumber groupingUsed="false" pattern="#{bindings.Mpr.format}"/>
              </af:inputText>
              <af:inputText value="#{bindings.Commentaire.inputValue}"
                            label="#{bindings.Commentaire.hints.label}"
                            required="#{bindings.Commentaire.hints.mandatory}"
                            columns="150"
                            maximumLength="#{bindings.Commentaire.hints.precision}"
                            shortDesc="#{bindings.Commentaire.hints.tooltip}"
                            >
                <f:validator binding="#{bindings.Commentaire.validator}"/>
              </af:inputText>
              <af:spacer width="19" height="17"/>
              <af:richTextEditor value="#{bindings.Observation.inputValue}"
                                 label="#{bindings.Observation.hints.label}"
                                 required="#{bindings.Observation.hints.mandatory}"
                                 columns="150"
                                 shortDesc="#{bindings.Observation.hints.tooltip}"
                                 clientComponent="true">
                    <af:clientListener type="mouseOver" method="rteMouseOver"/>
                    <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
              </af:richTextEditor>
              <af:spacer width="15" height="22"/>
              <af:richTextEditor value="#{bindings.Traitement.inputValue}"
                                 label="#{bindings.Traitement.hints.label}"
                                 required="#{bindings.Traitement.hints.mandatory}"
                                 columns="150"
                                 shortDesc="#{bindings.Traitement.hints.tooltip}"
                                 clientComponent="true">
                    <af:clientListener type="mouseOver" method="rteMouseOver"/>
                    <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
              </af:richTextEditor>                            
              <af:spacer width="17" height="18"/>
              <af:richTextEditor value="#{bindings.Conclusion.inputValue}"
                                 label="#{bindings.Conclusion.hints.label}"
                                 required="#{bindings.Conclusion.hints.mandatory}"
                                 columns="150"
                                 shortDesc="#{bindings.Conclusion.hints.tooltip}"
                                 clientComponent="true">
                    <af:clientListener type="mouseOver" method="rteMouseOver"/>
                    <af:serverListener type="customEvent" method="#{backing_main.ctrlSpaceHandler}"/>
            </af:richTextEditor>                            
            </af:panelFormLayout>
            <af:commandButton text="Sauvegarder la note"
                              action="#{backing_main.creerNote}"/>
          </af:form>
        </af:document>
      </f:view>A pageDef file is automatically created :
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.52.5" id="ajoutNote3PageDef"
                    Package="viewcontroller.pageDefs">
      <parameters/>
      <executables>
        <iterator Binds="TmpnoteView1" RangeSize="25"
                  DataControl="AppModuleDataControl" id="TmpnoteView1Iterator"/>
        <invokeAction Binds="Create" id="invokeCreate" Refresh="prepareModel"
                      RefreshCondition="${!adfFacesContext.postback and empty bindings.exceptionsList}"/>             
      </executables>
      <bindings>
        <attributeValues IterBinding="TmpnoteView1Iterator" id="Mpr">
          <AttrNames>
            <Item Value="Mpr"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="TmpnoteView1Iterator" id="Observation">
          <AttrNames>
            <Item Value="Observation"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="TmpnoteView1Iterator" id="Traitement">
          <AttrNames>
            <Item Value="Traitement"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="TmpnoteView1Iterator" id="Conclusion">
          <AttrNames>
            <Item Value="Conclusion"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="TmpnoteView1Iterator" id="Commentaire">
          <AttrNames>
            <Item Value="Commentaire"/>
          </AttrNames>
        </attributeValues>
        <action IterBinding="TmpnoteView1Iterator" id="Create"
                RequiresUpdateModel="true" Action="createRow"/>
        <action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
                DataControl="AppModuleDataControl"/>
      </bindings>
    </pageDefinition>I add to this form a create button and a commit button, you could see it in the pageDef :
    <action IterBinding="TmpnoteView1Iterator" id="Create"
                RequiresUpdateModel="true" Action="createRow"/>
    <action id="Commit" RequiresUpdateModel="true" Action="commitTransaction"
                DataControl="AppModuleDataControl"/>I call these actions in the bean creerNote called by my submit buton:
    public String creerNote() throws IOException {
            // --- modify fields to remove some html tags --- //
            // --- 1. get EL context --- //
            FacesContext facesContext = FacesContext.getCurrentInstance();
            Application app = facesContext.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = facesContext.getELContext();
            // --- 2. get ExpressionValues --- //
            ValueExpression valueExpObserv = elFactory.createValueExpression(elContext, "#{bindings.Observation.inputValue}", String.class);
            ValueExpression valueExpConcl = elFactory.createValueExpression(elContext, "#{bindings.Traitement.inputValue}", String.class);
            ValueExpression valueExpTrait = elFactory.createValueExpression(elContext, "#{bindings.Conclusion.inputValue}", String.class);
            // --- 3. get String values --- //
            String texteObserv = (String)valueExpObserv.getValue(elContext);
            String texteConcl = (String)valueExpConcl.getValue(elContext);
            String texteTrait = (String)valueExpTrait.getValue(elContext);
            // --- 4. remove some html tags --- //
            texteObserv = texteObserv.replaceAll("<p>","");
            texteObserv = texteObserv.replaceAll("</p>","");
            System.out.println("[Main.java] CreerNote > observations après traitement : "+texteObserv);
            texteConcl = texteConcl.replaceAll("<p>","");
            texteConcl = texteConcl.replaceAll("</p>","");
            System.out.println("[Main.java] CreerNote > conclusions après traitement : "+texteConcl);
            texteTrait = texteTrait.replaceAll("<p>","");
            texteTrait = texteTrait.replaceAll("</p>","");
            System.out.println("[Main.java] CreerNote > traitements après traitement : "+texteTrait);
            // --- set new values --- //
            valueExpObserv.setValue(elContext, texteObserv);
            valueExpConcl.setValue(elContext, texteConcl);
            valueExpTrait.setValue(elContext, texteTrait);       
            // --- set mpr field --- //
            ValueExpression valueExpMPR = elFactory.createValueExpression(elContext, "#{bindings.Mpr.inputValue}", String.class);
            valueExpMPR.setValue(elContext, getMprSelected());
            // --- call the create pageDef's action --- //
            bindings = getBindings();
             OperationBinding operationBinding = bindings.getOperationBinding("Create");
             operationBinding.execute();    
            // --- call the commit pageDef's action --- //
            bindings = getBindings();
            operationBinding = bindings.getOperationBinding("Commit");
            operationBinding.execute();       
            return "Abrev";
    }As you know, If I type <ctrl+space> I call the method ctrlspaceHandler who change the value of the component.
    public void ctrlSpaceHandler(ClientEvent clientEvent) {
            // --- get applicationModule --- //
            if(am==null)
               setAm();
            // --- get myViewObject --- //
            ViewObjectImpl mesAbrev = am.getThesaurusVO1();
            ViewCriteria vc =  mesAbrev.createViewCriteria();
            ViewCriteriaRow vcRow = vc.createViewCriteriaRow();
            // --- get richTextEditor's last word without html tags--- //
            RichTextEditor rte = (RichTextEditor) clientEvent.getComponent();
            String texte = (String)clientEvent.getParameters().get("value1");
            System.out.println("[Main.java] ctrlSpaceHandler > valeur du rte via rte.getParameter: "+texte);
            int indiceDernierMot = texte.lastIndexOf(" ");
            indiceDernierMot++;
            String abr = texte.substring(indiceDernierMot).toUpperCase();
            abr = abr.replaceAll("<BR/>",""); abr = abr.replaceAll("<br>","");
            abr = abr.replaceAll("</P>",""); abr = abr.replaceAll("</p>","");
            abr = abr.replaceAll("</FONT>",""); abr = abr.replaceAll("</font>","");
            abr = abr.replaceAll("</SPAN>",""); abr = abr.replaceAll("</span>","");                                           
            System.out.println("[Main.java] ctrlSpaceHandler > abréviation recherchée : "+abr);
            // --- add a criteria to my viewObject --- //
            vcRow.setAttribute("Msgcourt", "like '"+abr+"'");
            vc.addElement(vcRow);
            mesAbrev.applyViewCriteria(vc);
            // --- seek the abbreviation --- //
            mesAbrev.executeQuery();
            // --- get row found --- //
            Row row = null;
            while(mesAbrev.hasNext())
                row = mesAbrev.next();
                System.out.println("[Main.java] ctrlSpaceHandler > ligne trouvée : "
                               +row.getAttribute("Spr") +" - "
                               +row.getAttribute("Msgcourt")+" - "
                               +row.getAttribute("Msglong"));
            // --- if found --- //
            if(row!=null)
                // --- get abbreviation's detail --- //
                String detail = (String)row.getAttribute("Msglong");       
                System.out.println("[Main.java] ctrlSpaceHandler > message long = "+detail);
                // --- replace abbreviation by detail in the text and update graphical component --- //
                texte = texte.replaceAll(abr.toLowerCase(), detail);
                texte = texte.replaceAll(abr.toUpperCase(), detail);
                rte.setValue(texte);
                RequestContext.getCurrentInstance().addPartialTarget(rte);
    }When debug I see all my method bean works fine.
    But as result on the form I have a message who say "first enter value", I can bypass this problem if I remove all richTextEditor's required attributes. Biggest problem is that my richText component is cleared after ctrl+space... My test with a richTextEditor bind to a bean was OK, the only difference here is my richTextComponents uses bindings with pageDef.
    Thank you,
    Valéry

  • Adobe form - change particular row into bold

    Hi all,
    I have a requirement in adobe form, which i need to change the font into bold for the particular row in a table. For example i am displaying table which has two columns if the first columns values starts with 'A' then that particular row should be bold .Could you please help me to achieve this .
    Thanks in Advance.
    Col1           Co12
    eeee           123333
    www          545454545
    AAA           44545454
    eee              5454
    ADS            4545        
    sdd               fdfd
    Regards,
    satish

    check here: Re: Dynamic change of font in table
    Otto

  • HCM Processes & Forms: Change & Delete Operations

    Hi,
    I've been working on Processes & Forms.
    One of my processes is a typical address change. In this process, it's possible for the user to change any of his/her addresses. This means that the process is customized to accept subtype * of infotype 0006. This is working fine, we can change and create addresses.
    The problem is that we want to delete addresses too, but P&F doesn't allow two operations for the same infotype. We also tried to follow note 1043692, using the DELETE_DATASET reserved field, but it's not possible to use rules on SAP_PA using fields that are not defined for this back-end service.
    Any help on this?
    Regards,
    Fábio.

    Sorry for the delay,
    I've never configured a process for Absences, but since you're talking about this infotype, I think you're trying to delete the record completely. However, in P&F the "delete operation" means that a record is deleted as of the effective date (i.e. delimited).
    Example: I'm deleting a temporary address: the record will still be there, but the new end date will be the effective date that I chose.
    So if you're expecting the absence to disappear, it will not happen unless you set the effective date to the begin date of that record.
    Regards,
    Fabio.

  • Adobe Form - Change default Window measurement Configuration

    Hi All
    I 'm a new in SAP and am learning how to use Adobe Form (I know a bit about SmartForm but M manager wants me to write report using Adobe Form) and I need help.
    I'd like to know how to change the default setting of the window measurent from inches to mm. At the moment, all my window dimensions are in inches - and i don't know how to switch them to mm - Please tell me how - Thanks

    I found it

  • HCM Process and Forms - Changes to Form Issue

    We have a scenario within HCM processes and forms where the changes being made by an intermediate approval step is not being sent to the next level approver.  For example, in a pay change the initiating manager sends the pay change to his/her boss for approval, then once approved the form is sent to HR for final approval and update into R/3.
    In this scenario the initiating manager starts the process and makes appropriate updates to the form (including comments).  This then routes to that manager's manager for updates/approval.  When processing the form, the approving manager can see the information input by the initiating manager.  The approving manager then has the opportunity to make appropriate changes within the form and add comments before it is approved and sent to HR for final approval.
    Once the approving manager makes changes and sends this to HR, when HR processes the form they see the changes as if it was sent by initiating manager (HR does not see the changes made by the approving manager).
    I appreciate any insight you may have on this issue.
    Regards,
    Brad

    Sounds like you process is designed incorrectly and your are having problems with your process object integrity. You need to be careful with loops/branches when designing your process. Are you doing it all in the same Form Scenario and just using multiple steps? The form scenario will "share" the "data" hence you can have issues. You can split it to a differnt form scenario and pass the data over from the other FS to your FS. Then you know you will have your own data there. I often see people trying to do their whole process within one form scenario and use multiple steps without realizing the data integrity issues with that.
    Hope this helps.

  • Form Change it status from Query to others without any reason

    Hello,
    I have two forms(develper 10g R2) first one works fine if I call that form via menu and want to exit without any modification or insertion it will not ask for saving or cancelation but the second form ask every time for saving and cencellation when I call that form, without any modification/insertion the problematic form have three blocks first block is Control block(database block =NO) and when I called form the cursor moves directly in to the Control block and if I want to exit without touching anything it ask for saving/cancelling,
    on exit I wrote code like this
    IF :SYSTEM.FORM_STATUS <> 'QUERY' THEN
    ELSE
    exit_form(no_validate, full_rollback);
    end if;
    some one have idea why.
    Thanks and Regards, Khawar.

    Hi SIS,
    I ran form in debug mode and continuesly monitor form status, it start with Status of NEW(is it normal??), since the status is new it ask for saving/cancel, I have another form(which behave normal) I did same with it, it also start with NEW status but when I assign a value to an item resides in Control block in WHEN NEW BLOCK INSTANCE trigger the form status changes to QUERY, so I applied same here and assign dummy value to dummy item, and it works fine.
    Thanks, Khawar

  • XML form Changes

    Hi All,
    We are having few XML forms in landscape.There is a requirement to put some text messages in the existing form.
    For example if i click on submit button , it must throw a message that your form has sent for approval.I have forms builder and opened the existing form.Have created a copy of this by saveas option.i have clicked on submit button in EDIT FORM and the properties of submit are
    class Button
    Caption Submit
    Action Display
    Style Emphasize
    Description
    Alignment
    Vert Alignent
    X
    Y
    I tried to change the action from save to ( Link to source text, display,edit ,create).
    I got struck here .
    Please let me know the procedure to edit this form and put the message when i click on submit button.
    I need this message after validationg the form input fields.
    Thanks in advance..
    Sridar.

    To brief my requirement i have an existing form where i need to put some popup message after clicking submit button.the question here is
    1.Where do i find the source code for this ( navigation steps please)
    2.What are the steps i follow in changing the existing forms.
    3.is it possible to put a popup in xml form
    thanks in advance..

Maybe you are looking for

  • Cannot access security & privacy

    hey all please can you help me with this 'all of a sudden" problem that i have encountered that is driving me absolutely insane. i am trying to access the security and privacy setting under the system preferences tab but when i click on the icon a me

  • Opening PDF links in IE8 - show URL

    Hi there In IE8 it seems pdf links automatically open up in Adobe Pro or Reader rather than in the browser. Previously it opened up in the browser and showed the URL. I've tried changing the setting in Adobe Pro and Reader - Preferences - Internet -

  • While Compile the Package it shows "alter session set plsql_trace=false"

    Hi, My package was working fine and suddenly the status is invalid so i tried compiling the package that time sql developer got hanged, package also not getting compiled. i asked DBA to find out the status, they said the following query is running fr

  • Trying to export finished project, get error -49

    I'm trying to export to my hard drive Movies folder a number of finished iMovie 8.0.6 projects. They run for 3-4 hours, then at the end I get an error message that says project couldn't be exported due to error (-49). I've searched in help and in the

  • How do I reduce the dictation tone volume?

    Sometimes when listening to music with headphones, I will need to compose a message. Occasionally, I will hit the dictation button by accident and get my ears blasted off by that tone that plays when it's ready to listen. How do I reduce the insanely