Change textfield to textfield (disabled, saves state) programmatically

How can a normal textfield be changed programmatically to a textfield (disabled, save state).
I do not want to use the HTMLDB "Read Only" implementation.
Thanks in advance

How can a normal textfield be changed programmatically to a textfield (disabled, save state).
I do not want to use the HTMLDB "Read Only" implementation.
Thanks in advance

Similar Messages

  • Disable Save State

    Hi :
    i have created a lov and i have included a item on the page names pop up lov
    here i am able to populate the value but user can edit them how to make is disabled
    as i fetch the value from lov this value is used as input to another so i need to disable the this item
    please sugget how to do this
    thanks
    Sudhir

    I just want to confirm this popup lov will be input for another table will i be able to insert please suggest
    since this is disable will i be able to make this item as insert item
    thanks
    sudhir

  • Change programmatically textfield to textfield(disabled) , no Read Only

    By pressing on a edit link of a report column I enter a page with a form
    and would like to disable some of the textfields
    I do not like to make them READ-ONLY , but to switch from
    Text Field --> Text Field(disabled, saves state).
    Maybe this is possible by using javascript ?
    Any ideas ??

    Hello,
    you were right this is a solution.
    Only the textfield(disabled,save state) has not a database column as source but
    the source is the normal textfield. Or else there is a conflict because two textfields
    address the same database column...
    I wonder if it is possible to change the html properties of a textfield (input) conditionally, caus there exists the html property "disabled".

  • Unable to disable Save and Cancel button on change user answer form

    Hi,
    I am not able to disable Save and Cancel button on change user answer form depending on a condition. Any kind of help will be appreciated.
    Thanks

    save and cancel are the default buttons
    check the disable default buttons...
    Nsankar

  • Javascript not working with 'Display as Text (does not saves state)'

    Hi,
    We have these following items in P3 of our application,
    P3_EDIT_ACCOUNT Display as Text (saves state)
    P3_USEFUL_LINKS Display as Text (saves state)
    P3_LAST_APPROVED Display as Text (saves state)
    P3_ARCHIVES Display as Text (saves state)
    And we are initializing these items in a pl/sql process under 'Page Rendering'
    For example,
    :P3_ARCHIVES := '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> ';
    When our environment was upgraded from HTMLDB1.5 to HTMLDB2.0,
    instead of displaying the proper value of :P3_ARCHIVES,
    it was displaying the tags,
    i.e. instead of displaying 'Archives', it was displaying the whole
    '<font face="Arial, Helvetica, sans-serif" size="-1">Archives</font></a><td> '
    So, when we changed all items to 'Display as Text (does not saves state)' and it was working.
    But then we have another problem,
    We render the rest of the same page with another pl/sql block,
    Here is a portion from that pl/sql for your reference,
    htp.p('
    <script>
    //Script to check the status change.
    //The script source is rendered through PL/SQL.
    function checkStatus()
    var promptStr = someString;
    if(ans.toUpperCase() == "AMBER" || ans.toUpperCase() == "RED")
              var cnfm = confirm(promptStr);
              if(cnfm)
              do something....
    </script>
    htp.print('
    <td width="5%" bgcolor="#ebebc5" height="19" align="middle" >
    <input TYPE="radio" name="'||l_g_fnumber||'" value="GREEN"');
    IF l_allow_update THEN
         htp.print(' onClick="checkStatus()"');
    ELSE
    htp.print(' disabled onmousedown="return false;"');
                        do something....
    Now the issue is , when we changed all items to 'Display as Text (does not saves state)', the checkStatus() function is not getting called in the onClick
    event of the radio button and hence the confirm window for the call to
    confirm(promptStr) is not coming up.
    But if we revert back the items to 'Display as Text (saves state)',
    the checkStatus() javascript function is getting called properly but html tags are displayed against the items instead of the proper value (as mentioned in ********)
    Please do let us know a possible solution to this issue.
    Thanks & Regards-
    Rupak

    Thanks Varad for your response.
    This is the error i am getting.
    1 error has occurred
    PLSQL anonymous block source type can be used ONLY with Display Text (based on PLSQL) item type.
    yes i am using in the source..
    I also tried with the PL/SQL Expression of FUNCTION in this case it is executing the query but once i run the page ora- 06550 error occured.
    Thanks
    AT
    Edited by: ranu on Jan 8, 2009 2:51 PM

  • Display As Text (Does Not Save State) Render Behaviour

    I suppose this is directed more at the Oracle team members (as most of my posts are...) than anyone else, but others might find this interesting.
    It would seem when an item has a type of "Display As Text (Does Not Save State)" the item's value is output as pure text which shows up as text nodes under the TD cell. However if there is anything in the "HTML Form Element Attribute" text field on the "Edit Page Item" page, the APEX rendering engine will output a span tag with those attributes around the value of the item. If the attribute is left null, no span tag is output.
    Further more, the span tag does not have an ID attribute. One can also not set the "HTML Form Element" text box to contain the text 'id="" ' as APEX will throw an error stating that you can not specify the id attribute. So if someone would happen to want to access/change the value via JavaScript (say after an Ajax request of a hidden id change), it requires a hack (setting the TD cell's ID to the page item's name), DOM inspecting/sniffing, outputting an ugly disabled text element, altering the flows user's tables, or altering the render cache.
    Is there any reason, why this span tag is not always output with the ID attribute set?

    Hello Andrew,
    You are, of course, correct. The APEX engine does not use the item ID for the "Display as Text (does not save state)". However, if you need to manipulate the item, using JS, you can use the "Display as Text (save state)", which does use the item ID. The on-screen effect is the same, but the JS use is easier.
    Your original question though, remains open.
    Regards,
    Arie.

  • Display as text (based on LOV saves state) : possible border ?

    Hi,
    Like mentioned in the subject, I have many Display as text (based on LOV saves state). I would like to have a frame or a border around this field eventhough it's read only, like a regular field. How can I do that ?
    thank you.

    Depending on your visual requirements, you could change the items to Text Fields (disabled or not) then simply make the Read-Only atttribute set to "always" or something that would equate to "always". It would look just like a text field (since it would in fact be one), but would be read-only.
    Sadly, this would require you to change all your items to the new type which would take time.

  • How to disable Save and SaveAs Button in Adobe Reader ??

    I am having Dynamic XML Form (XFA based) designed on LC Designer ES2
    I Want to disable Save and SaveAs button  whenever it would be opened in Adobe Reader only.
    Other way around, i want to provide only facility to save form programmatically through Javascript to apply validation.
    Plz help
    Thnx in advance..!!

    I can apply folder level java script ...But How to handle this way on CLIENT SIDE..???

  • How to disable Save & Print functionality in PDF form?

    Hi,
    This is the requrement, client need to disable Save & Print functionality in PDF form. (They not allow employee save & print the hrforms payslip)
    May I know how to do it. Thank you.
    What is the parameter value in structure SFPOUTPUTPARAMS  that I need to set in order to  disable Save & Print functionality ?
    call function 'FP_JOB_OPEN'
        changing
          ie_outputparams = SFPOUTPUTPARAMS
        exceptions
          others          = 1.

    Hi Nayan,
    I'm the person who did the WD as well, using IFrame to contain the PDF binary. WD site didn't contro the binary source.
    I pre-define the 'FP_JOB_OPEN' before calling the PDF generation.
    Optional: Set output parameters
      gs_outputparams-nodialog  = ''.
      gs_outputparams-preview   = ''.
      gs_outputparams-getpdf    = 'X'.
      gs_outputparams-nopreview = 'X'.
      gs_outputparams-noprint   = 'X'.
      gs_outputparams-noarchive = 'X'.
      gs_outputparams-nopributt = 'X'.
      gs_outputparams-arcmode = '1'.
      gs_outputparams-noarchive = 'X'.
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = gs_outputparams
        EXCEPTIONS
          OTHERS          = 1.
    Regards,
    Eric

  • Disp+ work process changes from green to disabled

    Hi all,
    I want to install the SAP Netweaver 2004 server(ABAP + Java ) on windows box with MSSQL 2000 as backend.
    I wanted to know the sequnce that needs to be followed to install the component.
    I went in the following:
    a)I installed the MSSQL Server 2004 SP4
    b)I installed the ABAP part.
    Now when i tried to start the server from the SAP Console ,the process
    (disp + work) changes from green to disable.
    If i check the logs i get the following
    Thu Jun 28 16:26:07 2007
    ERROR => W0 (pid 2912) died [dpxxdisp.c 12170]
    ERROR => W1 (pid 2600) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xbf --> 0xbe
    ERROR => W2 (pid 2392) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xbe --> 0xbc
    ERROR => W3 (pid 156) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xbc --> 0xb8
    ERROR => W4 (pid 2188) died [dpxxdisp.c 12170]
    ERROR => W5 (pid 2684) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xb8 --> 0xb0
    ERROR => W6 (pid 796) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xb0 --> 0xa0
    ERROR => W7 (pid 1888) died [dpxxdisp.c 12170]
    my types changed after wp death/restart 0xa0 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    killing W0-2912 (SIGUSR2)
    ERROR => DpWpKill(2912, SIGUSR2) failed [dpxxtool.c 2468]
    killing W1-2600 (SIGUSR2)
    ERROR => DpWpKill(2600, SIGUSR2) failed [dpxxtool.c 2468]
    killing W2-2392 (SIGUSR2)
    ERROR => DpWpKill(2392, SIGUSR2) failed [dpxxtool.c 2468]
    killing W3-156 (SIGUSR2)
    ERROR => DpWpKill(156, SIGUSR2) failed [dpxxtool.c 2468]
    killing W4-2188 (SIGUSR2)
    ERROR => DpWpKill(2188, SIGUSR2) failed [dpxxtool.c 2468]
    killing W5-2684 (SIGUSR2)
    ERROR => DpWpKill(2684, SIGUSR2) failed [dpxxtool.c 2468]
    killing W6-796 (SIGUSR2)
    ERROR => DpWpKill(796, SIGUSR2) failed [dpxxtool.c 2468]
    killing W7-1888 (SIGUSR2)
    ERROR => DpWpKill(1888, SIGUSR2) failed [dpxxtool.c 2468]
    NiWait: sleep (10000 msecs) ...
    NiISelect: timeout 10000 ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Jun 28 16:26:17 2007
    NiISelect: TIMEOUT occured (10000 ms)
    dump system status
    Workprocess Table (long) Thu Jun 28 10:56:17 2007
    ========================
    No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
    0 DIA 2912 Ended no 1 0 0
    1 DIA 2600 Ended no 1 0 0
    2 UPD 2392 Ended no 1 0 0
    3 ENQ 156 Ended no 1 0 0
    4 BTC 2188 Ended no 1 0 0
    5 BTC 2684 Ended no 1 0 0
    6 SPO 796 Ended no 1 0 0
    7 UP2 1888 Ended no 1 0 0
    Dispatcher Queue Statistics Thu Jun 28 10:56:17 2007
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    3
    2000
    10
    10
    --------++++--
    +
    DIA
    5
    5
    2000
    5
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id 13
    wake_evt_udp_now 0
    wake events total 9, udp 7 ( 77%), shm 2 ( 22%)
    since last update total 9, udp 7 ( 77%), shm 2 ( 22%)
    Dump of tm_adm structure: Thu Jun 28 10:56:17 2007
    =========================
    Term uid man user term lastop mod wp ta a/i (modes)
    Workprocess Comm. Area Blocks Thu Jun 28 10:56:17 2007
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    NiWait: sleep (5000 msecs) ...
    NiISelect: timeout 5000 ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Jun 28 16:26:22 2007
    NiISelect: TIMEOUT occured (5000 ms)
    Shutdown server ...
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes...
    Stop gateway
    killing process (432) (SOFT_KILL)
    Stop icman
    killing process (2124) (SOFT_KILL)
    Terminate gui connections
    [DpProcDied] Process lives (PID:432 HANDLE:1600)
    waiting for termination of gateway
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Jun 28 16:26:23 2007
    NiISelect: TIMEOUT occured (1000 ms)
    Thu Jun 28 16:26:24 2007
    [DpProcDied] Process died (PID:432 HANDLE:1600)
    [DpProcDied] Process lives (PID:2124 HANDLE:1588)
    waiting for termination of icman
    NiWait: sleep (1000 msecs) ...
    NiISelect: timeout 1000 ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu Jun 28 16:26:25 2007
    NiISelect: TIMEOUT occured (1000 ms)
    [DpProcDied] Process died (PID:2124 HANDLE:1588)
    DpHalt: cancel all lcom connections
    MPI CancelAll 2 -> 0
    MPI DeleteAll 2 -> 0
    NiIMyHostName: hostname = 'pun-idmqa-vm1'
    AdGetSelfIdentRecord: > <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 163 bytes
    NiBufSend starting
    NiIWrite: write 562, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name -, type 4, key -
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c 9945]
    NiBufSend starting
    NiIWrite: write 110, 1 packs, MESG_IO, hdl 3, data complete
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiSelClear: removed hdl 3 from selectset
    MBUF state OFF
    AdGetSelfIdentRecord: > <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/8
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 19)
    MBUF component DOWN
    NiBufClose: clear extensions for hdl 3
    NiBufSetStat: bufstat of hdl 3 changed from OK to OFF
    NiICloseHandle: shutdown and close hdl 3 / socket 1608
    MsIDetach: detach MS-system
    EsCleanup ....
    ***LOG Q05=> DpHalt, DPStop ( 3520) [dpxxdisp.c 8478]
    Good Bye .....
    What can be the problem.
    Best Regards
    Manoj

    what is the name of your hostname? 'pun-idmqa-vm1'?
    Try changing the hostname for another one with 8 characters...
    good luck,

  • Where is "Display as Text (based on LOV, saves state)"

    I am developing an application using the version of HTMLDB that comes with OracleXE.
    I have a tabular form, in which the default column for a particular item is sourced from a previously entered item on another page. This is a lookup item and needs to be non-changeable by the user. So I want to use the "Display As" option "Display as Text (based on LOV, saves state)". However, this option is not available in the pull-down for "Display As". The option "Display as Text (based on LOV, does not save state)" is available, but using this option means that the item is not saved to the database.
    Does anyone know why the stateful display as option is not available.
    Thanks in advance,
    Rob

    Scott, thanks for the feedback. The problem is that although the value is displayed correctly, it is NOT saved to the database. Effectively, header information is entered in a previous screen, and one of the entered fields is written to each of the detail lines associated with the header. We are re-platforming an existing application (written in an obscure form of basic), and at this stage changing the schema is not an option. So this header item (which is a foreign key to a "store" table), is meant to be written down to each line, on the screen displayed as the store name, and written to the inserted lines as the lookup id. If I use the dispaly as text save state option teh database is updated correctly, but displays the id rather than name on the screen. The only display as lov option i can see is the one that does not save state. If I use this option the screen displays as I want but the database is not updated. I need to use the display as lov saves state option. but i do not see it.
    Any ideas?
    Thanks for your time.
    Rob

  • Annoying [ ] with "Display as Text (based on LOV, saves state)"

    Hi all,
    I've got a form where some items are shown as “Display as Text”. These values are displayed normally.
    But I also have some items which are shown as “Display as Text (based on LOV, saves state)”. When I run the page and these items don't return a value (because it isn't filled in in another page), we get the annoying []-sings.
    Is there anyone who knows how to fix this, I just want to display nothing when there is no value.

    I've tried this one already.
    I tried to leave it blank, & nbsp ; , text,... but the problem is that our lov is build by a function and it always returns a query, so the LOV is never null.
    I figured something out: made a process after header that has some cursors to get the values from the database and changed the item to a simple display as text-field. There were only 4 that were wrong, so it wasn't to much work.

  • Display As Text (based on LOV, saves state)  "p_t03" was assigned by APEX

    Hi All,
    I have an ITEM
    Name: P36_INT
    Display As: Display As Text (based on LOV, saves state)
    Output in my HTML:
    [input type="hidden" name="p_t03" value="YES" />[span id="P36_INT">Interior[/span>
      'p_t03' was assigned by APEX
      In my Javascript I have to access it as the following to get the "YES" value:
      var lintObj = html_GetElement('p_t03');
      Originally it was 'p_t01' but it changed from 'p_t01' to 'p_t03' somehow.. out of my control.
      How do I assign an ID or assign my own name to the "hidden" item?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Scott, thanks for the feedback. The problem is that although the value is displayed correctly, it is NOT saved to the database. Effectively, header information is entered in a previous screen, and one of the entered fields is written to each of the detail lines associated with the header. We are re-platforming an existing application (written in an obscure form of basic), and at this stage changing the schema is not an option. So this header item (which is a foreign key to a "store" table), is meant to be written down to each line, on the screen displayed as the store name, and written to the inserted lines as the lookup id. If I use the dispaly as text save state option teh database is updated correctly, but displays the id rather than name on the screen. The only display as lov option i can see is the one that does not save state. If I use this option the screen displays as I want but the database is not updated. I need to use the display as lov saves state option. but i do not see it.
    Any ideas?
    Thanks for your time.
    Rob

  • Save State Form - dirty when bar codes added on print.

    Hi All,
    I have a form that is in a saved state. When it is printed bar codes are added on the preprint and removed on the post print. This "dirtys" the form. I have tried many ways to reset the dirty flag so that the form is still in a save state but nothing has worked.
    Has anyone ever been successful in doing this using "event.target.dirty" or any other way?
    I can get app.execMenuItem("SaveAs"); to work but not app.execMenuItem("Save");
    Thank you,
    Barry

    Hi,
    I have an sample form for a similar case.
    It uses a fuction to reset the dirty flag eveytime a 'animated' button changes it's color.
    Have a look, it may be helpful for you
    http://thelivecycle.blogspot.com/2009/11/control-appearance-of-save-changes.html
    Nachricht geändert durch radzmar

  • Open PDF with disable save as and Print option

    Hello,
    I want a pdf viewer to use it in my website with disabling save as and print ,i mean user only can see my books online.I need something like "books.google.com" viewer. It is possible thru java programming or with the help of any open source. Please provide me some solution i am in deep trouble.
    Thanks for any reply.
    Shambhu Mitra

    You cna do this with the security options in the PDF file itself, which you can set with Adobe Acrobat, assuming you have access to the security options in the first place.

Maybe you are looking for

  • 30 M rows in SQL Server 2008 R2- View or Table for faster performance

    Hello, I am creating a SSRS 2008 report that currently is using a view. It's a view made out of one table and is not indexed. There are 70 some columns that I am displaying in the report with 10 or so parameters that I am passing through a procedure

  • Operating System change from Windows 7 to windows 8.1 pro 64 bit

    I have HP Pavilion Dv6-6196ex with Windows 7 64 bit as original OS. I change my hard drive to 256 mb SSD and installed new OS windows 8.1 Pro 64 bit. Is there any suitable software coming from HP that is compatible to my new OS and can i get a recove

  • Display data and iframe side by side

    Hi Experts, I have a requirement like to display the header and item details on left side of the page and another webpage using iframe tag on right side. How is it possible? I should not use the tabstrips. Can anybody please help me out how can I dis

  • Duplicate  messages on multiple phones

    all of my text messages are showing up duplicted on my daughters phone.  this has just started happening in the past 2 days.  Yes we use only 1 Apple ID, this is not happening on the other iphones, ipods that also use the same Apple ID.   Any suggest

  • Use of structure in handling repetitve structure

    Hi!, I have a problem with read/modify the repetitve structure. I feel that to read/modify the repetitve structure I cant use just a new structure as the structure will hold only one record. To hold more than one record I will have to use a stru/tabl