Custom Buttons in XML Forms

Hi Experts,
Is there a possibility to create a custom button like when i click the button mail should be sent to concerned person along with form.
and how to create print button?
Edited by: EPADMIN on Feb 7, 2012 8:10 AM

To print or send email you can use Javascript in your form.  In the show form insert a Label.
(--> in the code replace REF by HREF --> if I put HREF in my post it doesn't work...?)
To print insert
<A REF="
javascript:
window.print()">Click to Print This Page</A>
  in the Caption and set property Display HTML to yes.
The same to send mail but put
<A REF="
mailto:yourmailaddress?suject=Support request">
Click to mail</A>
  to create a mail to [yourmailaddress] with subject "Support request". 
(check mailto syntax for further options).

Similar Messages

  • Creating radio buttons in XML Forms Builder

    Hi everyone,
    I can't seem to find any instructions on how to create Radio Buttons in XML Forms builder, anyone has a link or instruction on how to?
    Thanks,
    Samer

    Hi Samer,
    So taking the example for the slides, you need first to create a new child under DataModel for the DataSchema. You can name it "Gender".
    Click on the Radio Button in the Toolbar and drag "Gender" from the left hand site into the Edit Form.
    It should have already a first radio button and in the box on the bottum right you should see the reference in the Schema Reference field (/DataShema/DataModel/Gender).
    You can now drag a second button from the toolbar and place it behind the first one. Make sure you add the same value in the Schema Reference field.
    On the Show form or RenderListItem you need a Control Selector as mentioned on slide 18. You can just use right mouse click -> Add. Go on the new item on the right hand side, and click on "Add Multiple Labels". You can choose now how many radio buttons you have, here 2.
    In our example enter in one Label "Condition" = "true" and "Label" = "Male" and in the other "Condition" = "false" and "Label" = "Female".
    Finally, make sure that the Control Selector has the Schema Reference also as defined above (/DataShema/DataModel/Gender).
    Hope this helps,
    Robert

  • Delete button in xml form

    In the RenderListItem form, I did included two buttons :
      - edit button to edit the news => work perfectly
      - delete button to delete the news => the problem
    When I click on the delete button, I receive the following message :
    XML - Forms 
    Item /BvD-it SEPNews/Others/0056c04e-7c12-2a10-8185-c74e6f577c75.xml does not exist
    but the file do exist.
    When I click on the OK button (at the end of the message), the news is effectively deleted.
    So this is functionnaly working, but it comes with a non relevant error message.
    Thank you for your help
    Vincent

    Hi ,
    there are various ways of doing it..
    You can try as the previous post says or also you can try When new block instance trigger and disable the item
    using set_item_property , it all depends on when and how you want to diable that item.

  • Opening a popup from custom button in a Form

    I have a requirement to open a popup from a custom button of a portal form and once the value is selected from the popup the control should return to the main form with the value selected and set it to some display only field in that same form. It can be done thru' popup of a field directly but how can I do this thru'a button ?.
    Help would be appreciated.
    Thanks
    -Krishnamurthy

    Works for me if I middle-click a bookmark on the Bookmarks Toolbar and browser.tabs.loadBookmarksInBackground is set to true.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
    *Don't click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Attaching Javascript function to Buttons in XML forms

    Hi ,
    Can anyone tell me how can we attach Javascript function or code in XML forms ?
    Cheers
    Nitesh

    Hi Nitesh,
    If you use a label with style urBtnStd urTxtStd you can make a link that
    looks like a button which will fire the URL in the Hyperlink property. The
    XMLFB tries real hard not to let you put Javascript in there for security
    reasons. I tried some attribute tailgating, but it filters those kinds of tricks
    out. (This is where you try to try to sneak in another attribute at the end
    of one attribute value by inserting a quote character). You could also
    hand patch the XSL, but this will get overwritten with the next build of
    the XMLFB project.
    Regards,
    Darin

  • Conditional display of "Custom" Buttons in Portal Forms

    Could someone tell me if the following is possible, and briefly explain the steps to a beginner in Portal (but reasonably familiar with PL/SQL):
    Problem - How to display "Custom Buttons" conditionally
    Example -
    a) Assume you have a certain record ("patient_address"). The hospital requires that every patient address be authorized before submitting records to health insurance. However, authorized records should not be authorized again.
    b) Also assume that the "patient_address" table has a column "authorized" (which can contain Y or N)
    * The requirement is to show an "Authorize" button whenever the record being viewed has the "authorized" column as "N" only
    * If possible, this can be further improved by obtaining whether the person viewing the information has permission to authorize, but this can be taken as a next step
    Approaches -
    1. If possible, achieve this in Portal Forms
    2. (worst case) - show the button, but show a message if it is pressed and the action does not apply
    Somehow, it seems as though Portal Forms is not suitable (or does not have the documentation readily accessible) of how to do specific, custom, real world forms design as in this example - could someone please elaborate
    Also, would this be better done by using one of the following in combination with Portal:
    - HTT (will this be supported, given that it is an Oracle internal technology)
    - PHP (is this even compatible with Portal?)
    null

    Hi,
    Conditional display/hide of custom buttons is not yet supported in Portal.
    However, if you are willing to modify the generated form package this could be done.
    Each form has a procedure called row_function which conditionally hides Insert/Update buttons depending on the mode. By default all elements of a form are visible, then row_function modifies the "visibility" property to hide that element.
    for example, this is a fragment of row_function code which hides the Insert button in update mode:
    "_form_state" := p_session.get_value_as_varchar2(
    p_block_name => "_block",
    p_attribute_name => '_FORM_STATE');
    if "_form_state" = 'UPDATE_AND_DELETE' then
    "_idx" := get_index('INSERT_TOP');
    p_form.items("_idx").visible := 'N';
    end if;
    You can add any additional code to check form's session storage/custom package variable/function whatever is more suitable in your case.
    Then you just set visible to 'N'.
    "_idx" := get_index('MY_CUSTOM_BUTTON');
    p_form.items("_idx").visible := 'N';
    Of course the biggest drawback of this is every time you edit your form you will loose your change and must edit the package manually. To minimize the effect you can create a custom package/procedure with type signature matching that of row_function and place your code there, so you will need to add only one line of code to the row_function.
    Hope this will help to resolve the problem, I don't know the status/plans for HTT/PHP support in Portal.
    Thanks,
    Dmitry

  • Custom Actions in XML Forms Builder

    Hello everyone,
    We are starting a project to replace our current intranet with Enterprise Portal + KM + Collaboration.  Our current intranet has many interactive foms developed as ASP pages for doing thinks like requesting new user ID's etc.  These forms are attached to a workflow engine (Ultimus) where they trigger various workflow processes.  I am exploring wherther or not these existing ASP based forms can be replaced by XML forms developed on the form builder.
    Can XML forms be developed that trigger external actions like generatating a workflow?  I have not found anything in the documentation so far that would indicate how this is accomplished?
    Thanks,
    -Matt Schababerle

    Thank you Detlev, that is what Im looking for. 
    I knew that XML forms are primarily for document creation.  I'm just trying to think 'out of the box' and find a way to convert all the ASP forms we have to a standard, portal-based format.
    The forms I am reviewing are mostly simple pages that would basically validate and save the form data, then kick off a single workflow task. For existing forms, we will utilize URL iViews and link to the existing form.
    For new forms, it sounds like we could probably make the XML forms builder work, but would probably be better off just creating basic .jsp or web dynpro pages to handle the data validation and external workflow submission.  What do you think?
    Thanks for your help!
    -Matt

  • Add Subform dynamically,on click of Button, in Interactive form generated by Adobe Document Services

    HI,
    I have an XDP file designed by Adobe Designer 7.1 with the following hierarchy of elements:
    -form1(root)
    --Button
    --tmpForm (subform - Repeat subform for each data entry )
    ---ST (Text)
    Now, this XDP file generates an Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
    On click of button, the following javascript is executed on client side:
    var df = _tmpForm.addInstance(1);
    df.ST.rawValue = "HI" ;
    xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
    On clicking the button, i get the length of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
    But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0,and open it using Adobe Acrobat PRO 8.0, it works fine.
    My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
    Or, is there something that i am missing?
    Please guide.
    Thanks.
    Regards,
    Siddhartha

    Hi,
    you can't change the behavior of the save button in the browser nor in Reader/Acrobat.
    You can add a custom button within your form which calls a custom script from a folder level script using the browserForDoc method.
    The browseForDoc methos is the only one whcih can change the name in the saveAs dialog.
    Here's an example., you can run from Acrobat console.
    You need to combine it with the solution from the other thread to make it work with your form.
    http://forums.adobe.com/message/2266799#2266799%232266799
    var oRetn = app.browseForDoc({
        bSave: true,
        cFilenameInit: "MyForm.pdf",
        cFSInit: "",
    if (typeof oRetn !== "undefined") {
        this.saveAs({
            cFS: oRetn.cFS,
            cPath: oRetn.cPath,
            bPromptToOverwrite: false

  • Problem wiht added button on invoice form

    I have added a custom button on invoice form.
    Scenario 1:
    I open the invoice form then the custom button is added and the et_ITEM_PRESSED event on custom button in catched. All is ok!
    Scenario 2
    I open a custom form and after close it.
    After I open the invoice form then custom button is added but et_ITEM_PRESSED event on custom button in not catched!!
    Could somebody please help me?
    Thanks

    Hi Domenico,
    It could be that the custom form gets an exception and then no other events might be caught. Try and put try...catch clauses around all your code and show messages when an error is received. This might be the cause of the problem - an unhandled exception.
    Hope it helps,
    Adele

  • Htp.p( )/htp.script( ) in plsql for custom button

    Hi All,
    I am trying to display an ALERT after doing some validations in the PL/SQL Code of a "Custom Button" on a FORM:
    htp.p('<script language="JavaScript">
    alert("No values found");
    </script>');
    But, looks like the whole statement is being ignored.
    On the other hand i can execute the same code in the Additional PL/SQL Code section for "After displaying the Form".
    Appreciate if anybody could help.
    Thanks,
    Gopi.

    I noticed when you enter Java Script code for some field events in Portal the custom code does not show up in the generated web page. This is probably the same kind of problem.

  • Clear button in WebDB form

    The WebDB form does not seem to have a clear button, which is really useful when the form is populated and the user wants to do a second query or something else. Has any one run into this kind of problem? Can we write some code to add a customized button to the form?
    Any suggestions will be appreciated.
    Xiaobin
    [email protected]

    Thank you Maxi for your reply but,
    when I press a reset button the required field challenge me for navigation ( I must fill the requried field to navigate )
    I want any way for jump the required validation ( or disable the required validation ) when I want to navigate to another page without fill the required field.
    Thank you

  • Problem with NewsLayout/XML Forms

    Hello,
    I have a created News(custom) item, through XML forms. When I preview the Edit,Show and Renderer form, they all work fine.
    The problem, I am facing is:
    When I create a news item under documents folder: New->Forms->News, it is saved. when i click on this xml file, I can see the news.
    But in the iView, when i set the Layout as "NewsBroswer" , these news are displayed as links but not as News item( as we see in Renderer list in XML froms ). All the other forms (FAQ, SAP Demo News are seen as news item )
    Can someone tell me why, this problem exists ?
    Regards,
    Poornima

    Hi Raghu,
    I have already done this. I am using the same layout set( with all the things u have mentioned ) to my other news, it works.
    The news where I am creating now is directly under root in another folder which is at the same level as documents folder. Should I do some XML resource rendering settings for this. The XML form is available for this folder.
    I have no idea pls help ! Its consuming a lot of my time to correct this.
    Regards,
    Poo

  • Where can we change the XML code of the XML form ?

    Hi
    How can we change the coding of the XML forms ? I am able to see xsl and aml forms in KM content ...but i think that are not editable...can anybody help me out
    Thanks in advance

    Hi,
    In KM folder "/etc/xmlforms" you will find a folder with the same name as your XML Forms Builder's project.
    There are *.xml and *.xsl files for each of defined views (Edit, Show, RenderListItem) in this folder.
    You may modify any of these files, the changes will have affect immediately after new version of file is uploaded.
    But remember DO NOT USE "Generate project" button of XML Forms Builder anymore, otherwise your changes will be discarded.
    The simplest way to develop and debug .xsl files is to connect "/etc/xmlforms/your_project" folder by Portal drive and copy xsl files from local computer directly to the KM.
    Regards, Mikhail.

  • XML Form builder - Issue with Reset button

    Hi Experts,
    Using xml form builder I have created a project.In the show form I have added the "Reset" button.
    This reset functionality is working fine during creation of new xml file item.
    But when I am editing the existing xml file ,  onclick of the "Reset" button it is not clearing all the data fields instead it is clearing the newly added data.
    Please sugguest me how to achieve this functionality of clearing the fields during editing existing file item.
    Thanks,
    Regards,
    Rudradev Devulapelli.

    Hi Rudra,
    Try writing custom java script and call the same in the button click.
    ~Priya

  • Buttons not works into xml forms

    Hellow,
    I have created some custom XML forms . However, the buttons on the editor (hyperlink, text size etc) dont work. I Have created 2 types of buttons, one type is a button standard of xml forms builder. And the second type is a button created with html code.
    My problem is that only one of these types works at the same time.
    Some body knows how i can solve the problem??
    Thanks

    If you have metalink access check out Note:357545.1 it describes the behavior you are seeing, this is caused by Microsoft's IE way of handling embedded objects, the embedded objects will no longer be activated automatically, instead they will require a user interaction like a "click", this is why you have to click twice.
    Just like Gerd have said above, this will only appear if you are using "seperateframe=false"
    Tony

Maybe you are looking for

  • Java.util.zip.ZipException: error in opening

    i ahve problem unzipping some zip file any one help me the zip file is name PRICE.ZIP and content is PRICE.TXT Please help code                //zf will contain the actual zip file object                System.out.println("FILE TO UNZIP"+SERVER_DIREC

  • Listener configuration with service guard

    Hello We plan to work here with HP service guard on a cluster (oracle version 7.3 and hp UX 11). We want to distribute databases accross the nodes of the cluster and let them protected by service guard. Here's my main question. I have a cluster with

  • Balance differences between Asset Register with FS10N

    Hi,, There is a serious problem occur where value of Asset Register in acquisition value is not matched with value in FS10N. The difference is around Rs. 24000. Here version is ECC5. I need your suggestions. REgards, Samrat

  • Sorting of Items in LookUp Flat field

    Hi all, I have a Flat table "Numbers" with values from 1 to 20. This is made as a Lookup field in the main table. When i see the ordering of these values in the lookup field, it shows "1,10,11,12,13,14,15,16,17,18,19,2,20,3,4,5,6,7,8 and 9" which i b

  • I need help with Actionscript 2.0

    Ok so I am made a button using flash 9 and actionscript 3.0 then I sent it to someone and they told me to make it in flash 8 using actionscript 2.0 now everything works except for the button. The button keeps having errors so is there diffrent html I