How to fill a field in a page attribute structure

Hi
We're trying to build a BSP Application (Pages with flow logic). One of the BSP Pages is a search for customer data, with search fields displayed dynamically.
Now Im trying to fill the fields of structure "ls_partner", which is defined as a page attribute. However, it always is initial at onInputProcessing. It works well for normal page attributes (like strings etc.), but not with fields of a structure.
I found the following on sdn:
If firstname is a field in a structure called myaddress of the type address, you can access firstname in the layout as follows:
<input type=text name="myaddress.firstname">
This doesn't seem to work though. Any suggestions?
Thanks a lot!
Philipp

Hi Phil,
I assume by "fill the fields of a structure" you mean by passing the parameters as form field or HTTP header parameters.
I don't believe you can do this. You can only pass parameters that map to a page attribute that is a data element like STRING, INT4, MATNR, etc.
If you need to pass an entire structure you probabaly need to pass each individual element as a separate paramater, or else pack the structure into a string field and then parse it to extract the individual elements at runtime.
Cheers
Graham Robbo

Similar Messages

  • How to hide mandatory field in OAF page through personalization

    Hi,
    Could u please help, that how to hide mandatory field in seeded page.
    This could be achieved through personalization only.
    Thanks,
    Ramachandra.
    Edited by: 927747 on Jun 21, 2012 2:16 AM

    yes you can hide that field by simply set the render propert to "false" using the personalization.
    Regards,
    Vijay Reddy.

  • How to combine +two fields without submitting page (via AJAX/HTMLDB_Get)?

    Hi all,
    After my last contribution "Request for Scott Spendolini" I was able to create the scripts to update fields in forms without having to refresh the page. Thanks again to Scott, Carl and the others who helped me solving my problem.
    I have another question regarding this however. How do I combine two (or more) values on a form to fill a field with the values, for instance to create a unique Primary-key field?
    This is the example: combine the postcode and the house-number (and maybe an extension to the housenumber) in one field 'adrescode'. This uniquely identifies an adress in the Netherlands. I can 'get' the postcode to fill the first part of the adrescode, but how do I modify the scripts to 'get' the housenumber (huisnummer) and - if not left null - the extension to the housenumber?
    Here are the scripts I created to far:
    in the region source of the page I have the following Javascript:
    <script language="JavaScript1.1" type="text/javascript">
    function f_P52_getAdrescode ()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=P52_getAdrescode',0);
    get.add('P52_POSTCODE',html_GetElement('P52_POSTCODE').value)
    gReturn = get.get();
    if(gReturn)
    {  html_GetElement('P52_ADRESCODE').value = gReturn  }
    else
    {  html_GetElement('P52_ADRESCODE').value = 'null'  }
    get = null;
    </script>
    and in the shared components of the application I have created an process P52_getAdrescode as follows:
    declare
      l_adrescode varchar2(16);
    begin
        l_adrescode := :P52_POSTCODE || :P52_HUISNR ;
        if :P52_HUISNRTOEVOEGING is null then
              NULL ;
        else
              l_adrescode := l_adrescode ||':'||:P52_HUISNRTOEVOEGING ;
        end if ;
        htp.prn(l_adrescode);
    -- dbms_output.put_line(l_adrescode);
    end;
    I ran this PL/SQL in the SQL-section of HTMLDB and it does what a expect: combine the values in a new string.
    In my page however, it only gets the value of postcode and puts this into the adrescode field.
    So my question is: how do I modify the Javascript (I Guess) so that also the fields 'huisnummer' and 'huisnummertoevoeging' end up in the adrescode field?
    Thanks for your help,
    Jan.

    Carl, Scott,
    I have two pages with exact the same fields and codings (as described before in this Post.
    I now have two different named functions and application processes, a javascript an process for each page. They both do the same thing, use the same code except for the page-number (:P52_ and :P92). I tried to make one process to replace both, but ran into problems when I changed the name in the get.add statement.
    Changing the get.add from: get.add('P52_POSTCODE',html_GetElement('P52_POSTCODE').value) to: get.add('POSTCODE',html_GetElement('P52_POSTCODE').value) always ends up in what looks like a complete html-(source)dump of the page in the field that has to be updated. Even when I replace the :P52_POSTCODE in the application process as well Changing back the application process and the javascript to so that both javascript and process use the :P52_ again and the function returns the correct value again. What am I doing wrong?
    I requested an online-workspace to post the application to it, but have no answer to my request yet, so I can't provide a working example at the moment....
    Thanks for your help again,
    Jan.

  • How to fill in fields in a PDF form? I have downloaded the Adobe Reader x 10.0.1.

    I have the Adobe Reader x 10.0.1. Free version.
    I downloaded a PDF form and open the document but cannot fill in any of the fields. With the form opened I look at File/Properties/security which shows "Filling of the form fields": Allowed.
    I do not find "Typewriter" under view.
    How can I type in to fill the fields
    Regard

    The window snip will let you see:

  • How to place aggregated fields in the page header or group header

    Hi,
    i have a report where in i have to display a header based on the aggregated value of a field
    currently the field has values like
    row1  blank
    row2  blank
    row3 Cookies
    row4 blank
    I wanted to know how to get the maximum of these rows in the page header i.e. it should come as Cookies for this case.
    Is there any way to get this? it is easy in the footer where i can do a maximum of this field and get the value but not sure how to get this in the group header.How do we group maximum at the page header or group header?
    Require your help on this at the earliest.
    Thanks
    Shilpi

    Hi Shilpi,
    >
    Shilpi Sinha wrote:
    > currently the field has values like
    > row1  blank
    > row2  blank
    > row3 Cookies
    > row4 blank
    >
    Do display these things in a subreport(i mean adda subreport in detail section). And Create a formula in the subreport itself with shared varible for assiging  the maximum value ..
    Then in the main report , create one formula with same shared variable and just display in Header secton..
    Regards,
    Salah.

  • How to fill a field with after changing another field in a multi form?

    Hi,
    I have multi occurence form in which multiple record are showeds and/or added.
    One field is a dropdown field, after filling this field (selecting a value in the dropdown), another field needs to filled with the selected value.
    My problem is that only the first occurence is filled with the value of the selected dropdown, even when filling the dropdown field in one of the other occurences.
    I tried point to the other occurences but this was not succesfull
    See script
    So when a sparepart is selected from the dropdown sparepart, the field defectpart must be filled the selected sparepart, when I have multi forms (occurences) only the first occurence defect part gets filled with the selected parts, even when a sparepart from another occurence is selected.
    data.p1.spare_parts.spare_parts::change: - (JavaScript, client) -
    p1.spare_parts.DefectPart.rawValue =  xfa.event.newText;
    Can anyone help to solve this problem
    Thanks
    Christophe Van Mechelen

    hi,
    Your code is right, i dont know why its not working,
    try this,
    dropdown field in change event,
    var c = xfa.host.newtext
    textfield1.rawValue = c;
    (or)
    textfield1.rawValue = xfa.event.newText;
    by
    Parthi

  • How to clear all fields on the page by using javascript ?

    Hello,
    has anyone an example of javascript function that clears all fields on the page?
    Thanks

    Hi Edward,
    You may want to have a look here http://textsnippets.com/posts/show/215
    Or try this (source from http://www.mindpalette.com/tutorials/clear_defaults/index.php):
    function MPClearAll() {
    with (document.forms[thisForm]) {
    for (var n=0; n<defaultVals.length; n++) {
    var thisField = defaultVals[n][0];
    var thisDefault = defaultVals[n][1];
    if (elements[thisField].value == thisDefault)
    elements[thisField].value = '';
    }}}Hope that helps,
    Dimitri

  • BIP Template - How to display form field on next page?

    I have a BIP word template with the below form-fields. How do I display the fk_job_title and p_grade on the next page if it continues on next page (same class title)?
    ** form fields **
    CLASS TITLE: F fk_job_title PAY GRADE: p_grade
    JOB CODE: job_code SALARY RANGE: s1 - s2
    LOCATION OF WORK: work_location
    GENERAL DESCRIPTION: general_descr
    ESSENTIAL WORK TASKS: work_task
    KNOWLEDGE, SKILLS, AND ABILITIES: knowledge_skill
    EDUCATIONAL AND EXPERIENCE: education_exp
    SUBSTITUTIONS: sub
    CERTIFICATIONS/LICENSES: certification_license
    OTHER JOB ASPECTS: job_aspect E
    PB
    Thank you so much,
    MT

    Hi ,
    For the Header on each page...
    http://blogs.oracle.com/xmlpublisher/2010/04/repeat_row_headers_after_page.html
    Number of rows restriction
    http://bipublisher.blogspot.com/2009/06/bi-publisher-conditionally-limiting.html
    Hope this might helpful for you.
    Thanks,
    Ananth
    http://bintelligencegroup.wordpress.com/

  • How to disable all fields of a page on button click

    Hello, I am using JDeveloper 11.1.2.3.0
    I have a page with several fields on it. I want to have all the page fields disabled when I click a certain Button. How can I achieve this?
    If what I am asking is too difficult to achieve can you help me with an idea on how to achieve something similar?
    Thank you

    This can be achieved by using JavaScript Client API get the id's all the fields while clicking the button  and disable your Components,
    Calling Backing bean method or binded component involves server side round-trip, you can easily achieve this using simple java script in
    Client Side..
    Call this method in your Client Listener ..
    function disableFields(actionEvent) {
            var field1= AdfPage.PAGE.findComponent("field1id");
            var field2 = AdfPage.PAGE.findComponent("field2id");
            field1.setDisabled(true);
            fileld2.setDisabled(true);

  • How to fill the field ITXNR??

    Hi Gurus,
    I am in a tight spot here.
    Let's say I am loading data into HRP1000 {Objects Infotype}
    using LSMW.
    I have done the recording.
    Source fields are OTYPE OBJID STEXT SHORT
    Now, I am assumiing that field ITXNR in HRP1000 can be used to fill it with some legacy number.
    can it be used???? Please enlighten me on this.
    I would like to know how ITXNR can be filled. Should or can it be assigned any No. ranges???
    Or shall I supply No.s from my excel sheet to it ; so that I will be able to extract the OBJID's generated for the legacy Numbers.
    ITXNR is not there in my recording though. But it needs to be filled.
    Please provide me inputs.
    warm regards,
    Hari Kiran

    waiting for inputs ...

  • How do you merge fields in new Pages?

    I had a template created in the old Pages to create mailing envelopes.  I was able to drag and drop contacts I selected into Pages and it would automatically format my envelopes based on my field specifications.  I attempted to create a new mailer two weeks ago but defining the fields is no longer an option in the new Pages and my formatting is gone in from my template!  So frustrating.  Someone help!

    Pages 5 dosn't have mail mergin. Use Pages 09 instead as before. You should have it in Applications/iwork 09 folder, if you haven't deleted it!

  • How to display inut field 2-3 pages

    Hi friends,
    Can anybody explain styep by step with screen shot my requirments.
    I have 3 bsp pages.
    1st page have input field for Only Material No (i_matnr).
    2nd page should display that material no text like '2nd Page Material No -'xxxxxx''.
    3rd page should also display that material no text like '3rd Page Material No -'xxxxxx''.
    Thanks in advance.
    Moosa

    Hi
    you can do this by using set and get parameter
      put this in dohandle event:
       navigation->set_parameter( name  = 'i_matnr' value =  wa_itab-i_matnr).
       navigation->next_page( 'tonext' ).
    on the second page and third page
    on Do Request
    use this:
    value = request->get_form_field( 'i_matnr' ).
    and show in layout as
    textview id = 'id1'.
    value =<% "controller->value"%>
    Regards
    Arun
    Edited by: Arun Padmanaban on Apr 7, 2009 3:18 PM

  • How to fill a field via routine

    Hi all,
    I have an ODS lets call it ODS1, and it is fed by two other ODSs lets call them ODS2 nd ODS3. I need to add an info oject into "ODS1", and ODS2 has that info object but ODS3 has not. Therefore I am having trouble to activate the update rules for ODS3.
    What I need to do is, I need to write a code in ODS3's update rules in order to feed it from ODS2.
    I'll appreciate any help with points
    Regards

    At field level write sonthing like that:
    TABLES: /bic/azods2
    select yourfield from /bic/azods2
    into RESULT
    where /bic/azods2-field1 = comm_structure-field1 and
              /bic/azods2-field2 = comm_structure-field2.
    In that code you have to change tables name (change ZODS2 with the name of your ods) and fields name (yourfield is the fields to be read from ODS2 andl field1 and field2 are the field to access to ODS2).
    Hope it's clear.
    Regards

  • Hiow to add a new field in bsp page.

    Hi Experts,
    I am new to BSP,
    I am doing project in erec, I want to know how to add new fields in BSP page.
    Like I want to add a new field in portal where I could write some comment.
    Regards,
    amod

    Please try to post this question in BSP forum for getting better answers.
    For Enhancing an existing Standard BSP application , refer the below link.
    http://help.sap.com/saphelp_crm70/helpdata/EN/20/b0f4f819e844df9f47bc9c70c795f4/content.htm
    Raghu

  • Field value in page number X

    Hi everyone
    By using JavaScript, how can I get field value in page number X at runtime?
    Thanks

    I can recommend you to check the JavaScript scripting guide: http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Especially last chapter called "Examples of Common Scripting Tasks", last three sub-chapters working with the instance manager. Shows how can you add, delete, count, view, move instances.

Maybe you are looking for

  • BEx Formula Use of 'Logical And' and Calculation for Gross Margin

    HI Bex gurus. Having an odd time with what should be a simple formula to handle the display of gross margin (GM). The goal here is to display GM% properly and the requirement is as follows If GM <= 0 then 0.0   Else If GM > 0 and Sell > 0 then ( ( se

  • Warning while opening a report

    Hi I am getting a warning while i try to execute a report. The warning says "warning following error for partial InfoCube = 0PCA_C01 in RSDRC_CUBE_DATA_GET_RF, Error SQL Error:1578" Can any one tell me what the issue is and the possible solution ? Re

  • Error in transaction - CRMD_ORDER

    Hi, We have created one custom transaction type (Z transaction type). We get an error with  a document created from this transaction type. Error Description: Message Type:      Error Reference Object: Item 10 Message Text:       Item 10     Sold-to p

  • Unable run web context with jsf 1.2

    Hi, I use jsf 1.1.01 and have no problem. When I upgrade jsf libraries for 1.2.01 version, Apache Tomcat write these warnings and ends web thread. What is missing??? thanks Radim 28.8.2006 11:49:09 org.apache.catalina.core.StandardContext start SEVER

  • Missing links for fish-eye correction in Premiere Pro

    I miss the link called "lens distortion" when I follow the suggestions below:  effects - video effects - distort - lens distortion Hope somebody can help me or give me another solution how to remove Fisheye with Premiere Pro. Best regards MS