How Can I Set a Javascript Value into an Attribute of BSP PAGE

Hi
Can anyone tell me.
How Can I Set a Javascript Value into an Attribute of BSP PAGE

Hi Mithlesh,
javascript runs on client side and you cannot assign the value to a Page attribute directly.
As a workaround,you can use an Inputfield,hidden if required,and set the value using javascript.Then the form will have to be submit to be able to read the value in onInputProcessing and then can be assigned to any variable.
In Layout
<head>
<script language="javascript">
function pass()
   txt1 = document.getElementById("ip_mrf");
   txt.value = "hello" ;
</script>
</head>
<htmlb:inputField  id="ip_mrf"
                           value="<%=mrf_number%>"
                           visible="FALSE"/>
in onInputProcessing
cha1 = request->get_form_field( 'ip_mrf' ).
where cha1 is the page attribute
hope this helps,
Regards,
Siddhartha
Message was edited by: Siddhartha Jain

Similar Messages

  • How can we include the property value into the News RSS?

    We have defined object property u201CDepartmentu201D that is used in News XML creating form. How can we include the property value into the News RSS (set value of the particular RSS XML tag)?

    We have solved the issue with NWDS

  • How can i get this variable value into second page IN BSP

    Hi friends
    I have variable wk_matnr value 'ABC' in first page of BSP.
    How can i get this variable value into second page.
    Moosa

    Hi,
    you can define variable (page attribiue) on the second page with the same name. You can realise the Navigation with Button ther started onInputProcesing routine. In onInputProcesing you have to call navigation->set_parameter with attribut name as parameter and then starting the navigation. If you have checked the auto property on the variable on second page and varable have same name, the value of variable should be transported.
    [See this tutorial|http://help.sap.com/saphelp_erp2005/helpdata/DE/1a/c5133a62983c0ae10000000a114084/frameset.htm]
    Best regards
    Bogdan

  • 10GR2 - How can I load multiple row values into one field?

    Hi
    Can anyone please help with a problem I'm having with merging data.
    The source table has multiple entries for the same Id e,g,
    ID Code
    1 123
    1 234
    2 123
    2 567
    The output should only have one row per ID e.g.
    ID Code_List
    1 123;234
    2 123;567
    Do you know what operator I could use that would allow me to do this? I've looked at unpivot but I think I would need multiple output fields (one for each Code). I have to concatinate the codes and separate with a semi-colon.
    Thanks
    GB

    Q) Input data
    =============
    COL_0,COL_4
    1235,"G0123,G124,G25,G6"
    1236,"G01,G23,G124,G25,G6"
    1237,"G0123,G1,G24,G25,G6"
    1238,"G,G0123,G124,G25,G6"
    1239,"G0123124,G256"
    Output
    ======
    TEST_ID,TEST_VAL
    1235,G0123
    1235,G124
    1235,G25
    1235,G6
    1236,G01
    1236,G23
    1236,G124
    1236,G25
    1236,G6
    1237,G0123
    1237,G1
    1237,G24
    1237,G25
    1237,G6
    1238,G
    1238,G0123
    1238,G124
    1238,G25
    1238,G6
    1239,G0123124
    1239,G256
    I wrote this procedure...
    declare
    rcd_cnt number;
    test_id123 number;
    junk_1 number;
    cd_occurences number;
    child_count number;
    str_abc varchar2(200);
    char_pos     number default 0;
    cd_temp_str varchar2(50);--:= 'G0123,G124,G25,G6';
    begin
    select nvl(count(col_4),0) into rcd_cnt from test_ee where col_4 is not null;
    for aa in 1 .. rcd_cnt loop
    select col_0,rownum rn,nvl(trim(col_4),0) into test_id123,junk_1,cd_temp_str from (select col_0,rownum rn,col_4 from test_ee where col_4 is not null) where rn = aa;
    --dbms_output.put_line('...I am in for loop...' || cd_temp_str);
         --dbms_output.put_line('===================' || rcd_cnt || '.................' ||aa);
    cd_occurences := length(cd_temp_str) - length(replace(cd_temp_str,','));
    dbms_output.put_line(cd_temp_str || '...Str Occurences are ...'||cd_occurences ||'**************'||test_id123);
    child_count :=0;
    for z in 1..length(cd_temp_str)+1 loop
    child_count := child_count+1;
         if(instr(cd_temp_str,',') > 0) then
         char_pos := instr(cd_temp_str,',',1,1);
              str_abc := substr(cd_temp_str,1,char_pos-1);
         dbms_output.put_line('..Partial String of..'|| z ||'..is.....' || str_abc);
              insert into test_xx(test_id,test_val) values(test_id123,str_abc);
         end if;
         cd_temp_str := substr(cd_temp_str,char_pos+1,length(cd_temp_str));
         if(cd_occurences=child_count) then
         dbms_output.put_line('..Partial String of..is.....' || cd_temp_str);
              insert into test_xx(test_id,test_val) values(test_id123,cd_temp_str);
         end if;     
    end loop; -- close for of z */
    --dbms_output.put_line('...I am in end for loop...');
         end loop; -- close for of aa
    end;
    instead of procedure,is there any way from sqlqery.

  • How can I set Messages to log into my account when I launch it.

    I find it inconvenient to have to have to switch from offline to available each time I start up Messages. Is there a way to auto login in to an account when I start up Messages.

    Hi.
    gail from maine may have part of the answer but I an not sure it is all of it.
    It seems you are talking about other accounts rather than the iMessages account as the iMessages account is not affected by the "when I Quit..." setting.
    This means it should  be AIM, Jabber or Yahoo types.
    I would start by using the option in the General Section to Unlink multiple Buddy lists if you use them.
    Under the Text Resizing slider is Buddy List stuff starting with Show All Buddy list in one List which is ticked (Enabled) by default.
    This should show you the Buddy List as separate windows.  (they are also listed in the Window Menu as separate items).
    At the top left of each Buddy List is your Name (or Handle/ID for that Account) pulled from the Contact App  > My Card.
    Below that is the Current Status.
    If you click this it shows the current Saved Status Messages (including the built in ones) and the iTunes Playing option.
    At the bottom you can set to have All Buddy List show the same Message.
    As you can see there is an Off Line option.
    It should remember any Changes you make.  If it is not it will return to the last setting.
    If this is happening you will have lost Permissions to Write to the .plist involved.
    Lets us know what is happening with this before we explain how to sort this.
    It is getting late where I am and there will be some time (and some drink) before I am bac.
    9:42 pm      Wednesday; December 31, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How can I set a specific value for a field, according to the option selected in a previous drop-down menu?

    Eg.: I have a drop down menu with the following options: "1,2,3,4,5". What I want to do is the followin: If the option selected is "1" the field "Color" must be filled with "Green", if "2" the field color must be filled with "Red", etc

    You can use something like this as the custom calculation script of the color field:
    var v = this.getField("Dropdown1").valueAsString;
    if (v=="1") event.value = "Green";
    else if (v=="2") event.value = "Red";
    // etc.
    else event.value = "";

  • How can I combine separate pdf documents into one document with several pages

    I have been using Preview to separate pdf pages into separate pdf documents. How might I do the reverse. Preview appears to have combined the documents in the thumbnail, but will not allow saving this. It just saves the highlighted page.

    Open all the documents. Choose View > Contact Sheet. All the pages will be shown as thumbnails, separated by document. Select the pages you want in the final document and drag them into the desired order, in one document space.

  • How can I set FireFox to print URLs and Dates on printed pages

    I expected this function to be listed in "Options" but....
    Or does this happen inherently?
    Thanks, Martila

    File > Page Setup > Margins & Headers/Footers tab<br />
    See: http://support.mozilla.com/kn/kb/Printing+a+web+page#Margins_and_Header_Footer
    You need to update your plug-ins. It is important to keep them updated due to continuing security fixes and improvements in those plug-ins:
    * Adobe PDF Plug-In For Firefox and Netscape 8.2.3
    * Java Plug-in 1.6.0_07 for Netscape Navigator
    #'''Check your plugin versions''': http://www.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**Use Firefox to download and SAVE the installer to your hard drive from the link in the article below
    #**On the Adobe page, un-check any extra items (i.e. Free McAfee® Security Scan Plus) then click Download button
    #**If you see message just under tabs, DO NOT click the Allow button, instead click below that where it says "click here to download".
    #**Click "Save to File"; save to your Desktop (so you can find it)
    #**After download completes, close Firefox
    #**Click the installer you just downloaded and allow the install to continue
    #***Note: Vista and Win7 users may need to right-click the installer and choose "Run as Administrator"
    #**'''<u>Download link and more information</u>''': https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox#Installing_and_updating_Adobe_Reader
    #*After the installation, start Firefox and check your version again.
    #'''Update Java:''' https://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox
    #*NOTE: Firefox 3.6 and above requires Java 1.6.0.10 or higher; see: http://support.mozilla.com/en-US/kb/Java-related+issues#Java_does_not_work_in_Firefox_3_6

  • Using the States Example how can I set Selected to Maryland Without RowNumber

    Let's use the states example for the sake of everyone having
    the code in front of them. If I am returning a value from the
    database that I am writting out to the application like this
    <%out.write("STATE_NAME"); %>
    how can I set the selected value to that without knowing what
    the row number is, here is my try but I get a few error messages:
    <option spry:if="{name} == '<%out.write("STATE_NAME");
    %>'" value="{name}" selected
    ="selected">{name}</option>
    <option spry:if="{name} != '<%out.write("STATE_NAME");
    %>'" value="{name}" >{name}</option>
    I get double the states and the following in the debug box:
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: Alabama == Exception:[object Error]
    Caught exception in Spry.Data.Region.prototype.processTokens
    while evaluating: Alabama != '' Exception:[object Error]
    This goes on for as many records as I have in the DB,
    Please let me know how it could be done if it could be done?

    I believe what you guys are looking for is the
    Set
    Default Row Based on Specific Column sample that is on the
    Spry
    Samples Page.
    The problem of using a spry:if="{name} ..." approach is that
    it only makes sure the form select widget is set to what the server
    thinks is the current row in the data set, but it doesn't actually
    set the current row in the data set to reflect this, so the cities
    select is out of sync cause it is defaulting to displaying the
    cities for the first row in the states data set.
    Checkout the sample I mentioned above, it will show you how
    to set up an observer where you can query for the correct row
    immediately after the data is loaded, and then set the current row
    so that everything is as expected.
    --== Kin ==--

  • How can I call a plsql function from an attribute?

    I have an attribute defined in an element. I want execute a PLSQL function from the attribute, and display the returne value with an HTML template.
    I've defined the attribute's type like PLSQL, and I've put the called of the function in the value of the attribute, but it doesn't work. The only value I obtain is an URL (I think that is the URL of the function or someting like this).
    How can I call to my function from the attribute and display the returnes value in the page?
    Thanks.

    Thanks, but it doesn't work. I have an attribute called ID_BOL and I want to associate a sequence to that attribute. I've created a function, with the sequence. This function return de value of the sequence. I want taht the attribute takes the value of the sequenece dinamically.
    I've tried it, creating the type attribute like PLSQL, and calling the function from the attribute, but it doesn't work.
    How can I return the sequence value to my attribute?
    Thanks.

  • I have bought an iPhone4 and to be able to use it for the first time I connected into a friends itunes. Now when I want to buy itunes stuff on the phone it asks me her password. How can I set up again my itunes account?

    I have bought an iPhone4 and to be able to use it for the first time I connected into a friends' itunes. Now when I want to buy itunes stuff on the phone it asks me her password. How can I set up again my itunes account?
    Now I also have a macbook where I can sync my iphone but it doesn't allow me

    first of all only sync it with 1 computers itune account
    second settings->general->store click the appleID box with her appleID in it and log out

  • How can I set up lightroom 5 in my macbook, so that it becomes my default editing program, so that it starts up when I insert my sd card into the mac

    How can I set up lightroom 5, so that it becomes my main / default editing program & that when I insert my sd card into the mac lightroom starts instead of iPhoto .

    Thanks.  Im new to apple, which preference?
    Sent from my iPhone

  • How can I set a value in a field before create when a New button is clicked

    Hi,
    I am using
    JDeveloper 10.1.3.1.0.3984 and
    JHeadstart 10.1.3.1 release 10.1.3.1.26
    I have one group and there is a detail group under that group.
    From main group to detail group there are 3 field relating those groups.
    field1
    field2
    fieldSEQ (auto-generated by database trigger)
    These 3 fields are PK.
    In the detail group, there is a New button. So, when the New button is clicked, it tries to create the record with those 3 fields value as those are coming from main group. As a result it's giving the duplicate error as that record already exists in the table.
    But I don't want to create the record with that SEQ as that will be created in the trigger.
    How can I set the SEQ temporarily any no. (-1) before create when the New button is clicked?
    Can anybody help?
    Thanks
    Syed Jabbar
    University of Windsor
    Windsor, ON, Canada

    Hello Syad,
    What I would suggest is setting the sequence number at the creation of the entity object (so in the create() method) by using the database sequence. This way it will always be unique.
    So something like:
    protected void create(AttributeList AttributeList) {
    super.create(AttributeList);
    SequenceImpl sequence =
    new SequenceImpl("KCP_SEQ", getDBTransaction());
    setFieldSeq( sequence.getSequenceNumber());
    If this still does not solve it: please go to the ADF Forum since this problem is an ADF problem, not a JHeadstart problem.
    Regards,
    Evert-Jan de Bruin
    JHeadstart Team.

  • How can I set a variable number of values in a SQL IN clause?

    Hi,
    How can I set a variable number of values in a SQL IN clause without having to change the text of the SQL statement each time?
    I read the link http://radio.weblogs.com/0118231/2003/06/18.html. as steve wrote.
    SELECT *
    FROM EMP
    WHERE ENAME IN (?)
    But we need the steps not to create type in the system and would there be any other solution if we would like to use variable number of values in a SQL IN clause ?
    We are using JDeveloper 10.1.3.2 with Oracle Database 10.1.3.2
    Thanks
    Raj

    Hi,
    can you please explain why the solution from steve is not the right solution for you.
    regards
    Peter

  • How can I set a value of column in SSIS by using Replace

    How can I set a value of a column in SSIS using a Replace in Derive columns. I have here NameCode and I need to Set = 1 Where NameCode like LIKE '____99____'
    eg. 1006993010... if 5th and 6th characters are 99
    Else 0
    Hope to hear from someone soon and I appreciate great help here.

    If NameCode column is integer then you have to cast it correctly to String.
    I am adding that to the expression provided by Rajen.
    SUBSTRING((DT_WSTR,20)ProductCode,5,2) == "99" ? 1 : 0
    -Vaibhav Chaudhari

Maybe you are looking for

  • Questions about photos and resizing

    Hello I have a simple question about resizing photos. When I grab one of the corners of a photo it will resize everything instead of just changing it horizontally or veritcally. Anyone know of a way to fix this?? thanks

  • SHarepoint 2013 - Document Conversion issue

    Hi All, I enabled Document conversion features in my SharePoint environment successfully and its working fine. i enabled word to html conversion option , it works fine when i try to convert the document with out any images in that document , i have s

  • Bugcheck f4 0x3 0xfffffa80074c5b30

    I installed mozilla firefox and I was asked to upgrade it because the version I had installed an outdated version. Once I installed the upgrade,my computer shut down and,after I ran start-up repair, the following root cause came up: bugcheck f4 0x3 0

  • JSP Webapp Design Issues

    Hi, I have to write a simple discussion board as part of my project. For now, I would like to keep it simple and just list all the threads on one page (unlike what we have here, where 15 threads are displayed per page). Anyway, my main question is: S

  • Closed trial box after downloading photoshop cc

    Hi I closed the box to select a trial version after downloading photoshop cc, instead of selecting it. How do I go back to this stage, to enable me to use the downloaded version?