Changing content in a region

Hi,
I have a requirement which I am trying to do it using Javascript in APEx
Requirement is I need to change the content of the PL/SQL (Anonymous Block) region in apex when a button is pressed
This would be generated when the page is loaded. It will check whether the user is validated before or not by using a flag stored in the database. When the user press the validate button I wrote an AJAX coding which will change the flag to validated without refreshing the page. Content of the Region before pressing the button.
User is not Validated
No of files Attached : 0
Content of the Region after pressing the button should be
No of files Attached : 0
but as of now it is remaining same as before.
The page should not get refreshed or loaded again when I press the button. I have assigned a static ID to the region and tried different options in javascript like innerHTML, innerText but nothing worked.
Below is the different options of javascript code I used where VALS is the static ID of the region
document.getElementByID("VALS").innerHTML = "No of Files Attached : 0";
$v('VALS').innerHTML = "No of Files Attached : 0";
$v('VALS').innerText = "No of Files Attached : 0";
Can anyone please help me in solving this issue..
Thanks,
Dev

Hi Dev,
I would suggest creating a DIV within your region's Source:
<div id="VALS">
</div>Neither of these would work:
$v('VALS').innerHTML = "No of Files Attached : 0";
$v('VALS').innerText = "No of Files Attached : 0";
as $v() returns the value of the object not a reference to it. Try:
$x("VALS").innerHTML = "..."
Andy

Similar Messages

  • How to change content of audio region

    Dear Logic Pro Discussion
    Is there any way you can swap the audio file in a region with that of another one but keeping the audio start position, for example if you had two or three takes that you wanted to choose from but keeping the audio on the same track. ~I know i Pro Tools LE you can open up a little drop down menu and swap the file easily.
    Anyone know how to do this
    Thanks
    Jonny

    There isn't a practical way to do what you're wanting, at least that I'm aware of.
    Have you tried doing this? I think you'll find that it's a great way to record multiple takes. And, I find it much more intuitive than PT's playlists.
    For starters, if you have recorded 4 tracks of a lead vocal, you can then easily color code the phrases, or even words, that you want to use in a comped track. This is all visible in front of you. And you can, for instance, mute all the various sections of the vocal, except those that you have color coded as good, to quickly see how the comp will sound.
    When finished, you can grab all the same colored regions, and use the "Move selected Regions to Track" command, and all the regions that you have selected as "keepers" will jump to the newly created and selected track.
    You can than make use of the track hide feature, to tuck away all the duplicate track instances. They'll all be out of sight, yet you can get them back instantly should you decide to try different takes as options later.
    Definitely spend some time checking this out. It's one of the often overlooked features of Logic. It sounds to me like you have "But PT does it like this- itis".
    Give this a go... I think you'll see what I mean.

  • I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    I live in Australia but when I upgraded to IOS6 it changed my App Store region to the US. How can I change it back? I have been trying to find the answer.

    Contact iTunes support & request they clear the balance:
    http://www.apple.com/support/itunes/

  • How many times can I change my country or region on my ipad2 or I pod touch 5

    How many times can I change my country or region on my ipad 2 or iPod touch 5

    Lfc89 wrote:
    How many times can I change my country or region on my ipad 2 or iPod touch 5
    Not sure what you are asking... but...
    See  >  Change your iTunes Store country
    Here  >  http://support.apple.com/kb/HT1311
    Settings > iTunes & App Stores > Apple ID: > View Apple ID > Country/Region = Change Country / Region

  • How to display the content of a region on a different page

    Hello,
    Does anyone knows how to display the content of a region on an other page. I try to make page that displays content that resides somewhere else in my portal, so I can give a summarization of some hot topics. I really want to display the whole content of some regions (not a display with custom search).
    Thanks a lot,
    Hans

    Set that page as portlet, include it in a region in another page and in the edit defaults decide which regions you want to display.
    Mere.

  • HT2736 How do you remove any remaining gift certificate credit from your itunes account as one is prompted to do this if you want to change your country or region?

    How do you remove any remaining gift certificate credit from your itunes account as one is prompted to do this if you want to change your country or region?

    Please supply answers that do not refer me to contacting support.

  • Changing content in an array

    can someone help me with changing content in an array. The index will be specified by the user entering the index number.
    eg
    Enter the item number to Change
    1
    Then I need to replace the data in this index with new data.
    I am very new to java so I am sorry if this seems like a stupid questions. Your help is much appreciated.
    thanks

    public void modifyIt(String[] myArray){
      System.out.println("Which index?");
        int index = readResponse() //read in response somehow
      System.out.println("Whats the new data?");
      String data = readResponse() // read in response
      myArray[index] = data;
    }

  • How to change content-type in receiver mail adapter

    Hi,
    I have receiver mail adapter for sending XML file as attachment in the mail. My partner expects to receive mail with content-type: text/xml, but XI sends Content-Type: application/xml. Please advise how I can change content-type to text/xml.
    Thank you
    Lev

    hi,
    try MessageTransformBean
    Transform.ContentType
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    also shown in my blog:
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Change content-disposition in email attachment

    I am using apex_mail (in Apex 4.1) to send emails with an attachment.
    v_mail_id := apex_mail.send(
             p_to  => '[email protected]'
             ...etc...
    apex_mail.add_attachment( p_mail_id    => v_mail_id
                             ,p_attachment => v_image
                             ,p_filename   => 'signature.jpg'
                             ,p_mime_type  => 'image/jpeg');
    Apex creates this as an attachment:
    Content-Disposition: attachment;
    I would like to change it to inline:
    Content-Disposition: inline;
    so I can reference it in my email body with <img src="cid:signature.jpg"/>. Well... I hope it is going to be shown inline anyway if I change Content-Disposition.
    Currently (with Content-Disposition: attachment;) it works for Outlook, but, for instance, not in Gmail in the browser. Gmail shows the image separately as an attachment.
    Is there a way to change the content-disposition with Apex?
    I know it is possible to do it with utl_mail, but this is currently not installed in our databases. I need to involve our DBA to set this up, and I don't know if he is willing to do that.

    Hi Joel,
    I thought so. I will put this in the Apex feature request database.
    Ino
    BTW, for other people it might be interesting to know that there is another option I tried that doesn't work in many situations either. You can put this in the email body:
    <img src="data:image/jpeg;base64,'||v_image_base64||'"/>
    where v_image_base64 is the base64 encoded jpg image.
    From my experiments the inline attachment with a cid reference seems to work best.

  • How to change Content-Transfer-Encoding for mail sending

    Hello Experts,
    I need to send some documents through mail which i am doing with the help of cl_output_service=>document_output method. Mail is been send succesfully.
    But in the payload content which got from Exchange server:
       X-Mailer: SAP Web Application Server 7.10
       Content-Type: text/plain;
        charset="us-ascii"
       Content-Transfer-Encoding: quoted-printable
    Can any one help me, how i can change Content-Transfer-Encoding field to some other format which is not  'quoted-printable'.
    Thanks & Regards,
    Dheeraj

    Do you documents contain an XML Declaration like this at the top?
    <?xml version="1.0" encoding="ISO-8859-2"?>
    If not, then they need to. The XML 1.0 specification says that if an XML declaration is not present, the processor must default to assume its in UTF-8 encoding.

  • How to change content type from Document set to Item

    While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.

    Hi,
    From your description, I know you want to change content type’s parent after creating it.
    There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
    http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
    This article may help you understand the relationship of Content type inheritance:
    https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
    Best Regards
    Vincent Han
    TechNet Community Support

  • How to change contents of PDF

    Hello,
    I want to know is there any way by which i can change content of pdf.
    please tell me

    thanks..
    I have done that. using iText it is helpfull.
    Still there is a bit of problem.
    When I open the file adobe pdf is unable to open the file .
    where are foxyplayer can view it correctly with edited content so please can you
    show me possible changes to do so.

  • Loosing changed contents when used FM REUSE_ALV_GRID_DISPLAY

    Hi,
    I have used FM REUSE_ALV_GRID_DISPLAY in my program as below.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = g_repid
          i_callback_pf_status_set = c_pf
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = ist_layout      "I_CALLBACK_TOP_OF_PAGE = C_TOP
          it_fieldcat              = ist_fieldcat
        TABLES
          t_outtab                 = ist_outtab.
    and kept one column editable by setting EDIT = 'X' and INPUT = 'X' for one column in ist_fieldcat.
    Now if user changes contents of a cell in this editable column and clicks on any toolbar button, then changed contetns are not received in USER_COMMAND routine.
    But if user changes the contents of a cell in this editable column and then double-clicks anywhere inside the ALV grid, then changed contents are received in USER_COMMAND routine.
    I dont want to loose the changed contents of ALV grid, can anybody help in this.
    Thanks in advance.
    Regards,
    Dhiraj

    In your USER_COMMAND form check the SY-UCOMM  for button which you have pressed may be you have used '&IC1'  (for double click)
    provide your Form USER_COMMAND code here.
    Kanagaraja L

  • Unable to change content types for pptx, xslx and docx files

    I'm running into an issue where I cannot change the content type of any xml-based Office documents. Here's what I've done:
    1 - Create a custom content (A) type based off the Document content type
    2 - Enable the custom content type in a document library
    3 - Add a document or select an existing document and edit the content type to the custom content type
    4 - The custom content type will save for documents such as .ppt, .doc, etc. The custom content type will now save for .docx, .pptx or .xlsx files. The properties window will save without displaying any errors but the content type will not change
    I ran several tests including creating another custom content type (B) based off of the Document content type. I proved that:
    The custom content type (B) can be saved to .docx, .pptx or .xlsx files IF no additional columns are added to the custom content type
    As soon as I add a column to the custom content type the aforementioned documents cannot be saved as that custom content type 
    Documents created through the File option in a document library also fail to change content type to the custom content type when saved. Most of my files are .docx, .pptx, or .xlsx files, and this issue poses a significant roadblock in our SharePoint roll-out.
    I appreciate any advise you can provide.

    Hi,
    According to your post, my understanding is that the custom content type could not save with .docx, pptx and xlsx files when with a additional column.
    I tested with your issue as the steps below, the custom content type worked well.
    Create a custom column Doc1
    Create a custom content type Doc1, the parent content type from chose the Document Content Types, Parent Content Type chose Document.
    Add the custom Doc1 to the custom content type Doc1.
    Add the custom content type into the library LIbA.
    Upload the files with .docx, .pptx and .xlsx files into the library with the custom content type, they all save well with the custom content type.
    I also create other content type with other Parent Content Type, they all worked.
    Did the issue occur in other library? You can create a new library then use the custom content type to check whether it works.
    You can also use the other browsers to check whether it works, such as Chrome, Firefox.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to change content of DataGrid cell on mouse over

    I am trying to change content of a datagrid cell when the mouse is over it. Changing the dataProvider does not provide immediate feedback because update is performed by renderer. I am trying to directly update content of a cell onMouseOver and restore it onMouseOut.
    I am thinking of leaving the column empty and insert content onMouseOver, cleanup onMouseOut. Alternative, may be I can populate the column and mask out all but the cell the mouse is over.
    Any suggestion on how this may be done?
    Thanks!

    I would override updateDisplayList, call isItemHighlighted and set the content of the cell accordingly
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for