affecting values to display only point during the AJAX request

Hello

Hello!

In a master form / detailed in the report in detail, I'm filling two columns SERVICE_TAX_PCT and SERVICE_TAX_AMOUNT by an AJAX request after selection of the ACCOUNT_CODE.  The values are filled out with any problem.

However, whenever I do these two fields in view-only mode, the values are not get defined.  Is there a way to set the values of a field at the same time, it should be limited to the user to modify?

(APEX 4.2.6)

img-1.png

Thank you

-Anand

Hi Anand,

anand_gp wrote:

It works and makes the column read-only.  But in this case only for the line of action.  How do these two columns 'read only' permanent for all folders and all the time?

(1) not remove the code from line 18 of your javascript that is function

   $("#f05_" + row_id).attr("readonly", true).addClass('row_item_disabled');

(2) then create after updating dynamic action and put this code

Event: after refresh

Selection point: region

Region: you select the region

Action: Run Javascript

Fire on charge: checked

Code:

$('input[name="f05"]').attr("readonly", true).addClass('row_item_disabled');
$('input[name="f06"]').attr("readonly", true).addClass('row_item_disabled');

Here replace f05, f06 with your markup of column

Hope this helps you,

Kind regards

Jitendra

Tags: Database

Similar Questions

  • The pc seems to have gone to a previous set point during the boot, but now she can not install software and doesn't seem to have Norton AV more

    My daughter's office got fried during the last storm, even though she had a surge protector.  Obviously the power company line was bad.  The pc seems to have gone to a previous set point during the boot, but now she can not install software and doesn't seem to have Norton AV more.  When she tries to run a system restore it gets "extended attributes are incompatible."..: thank you for your help.  Debbie

    Hello

    I would suggest trying the following methods and check if it helps.

    Method 1:

    Run the scan tool (SFC) System File Checker and check if it helps.

    This problem may occur if a system file is missing or damaged.

    You can refer to the method-the System File Checker tool in the following article:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7: http://support.Microsoft.com/kb/929833

    Method 2:

    Try to clean boot, and then check to see if this helps you.

    How to solve the problem by running the clean boot in Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: Once you have completed troubleshooting, perform the steps in the step 7: to reset the computer as usual.

    Method 3:

    Try the steps in the following Microsoft article and check if it helps.

    Problems installing and uninstalling programs on Windows computers:

    http://support.Microsoft.com/kb/2438651

    Hope the helps of information. Please post back and we do know.

  • Communication error has occurred during the last request please check connection.

    I get this error, Communication error occurred during the last request please check connection.

    Request failed with the following error message:

    301 moved permanently

    301 moved permanently

    Nginx

    --.

    You want to start the last request?

    Original title: Communication Error Message

  • APEX 5.0.3 display only point color

    Hello

    I use APEX 5.0.3. I have an element display only and I want to change the color of the font to dynamic red based on a condition.

    I created a dynamic action on page load, Action Set Style, Style name = red color.

    This dynamic action does not show only the elements. He works on the text elements.

    I created the same APEX 4.2 dynamic action and he works there.

    Thank you

    Chandra.

    Hi Chandra

    Yes you are right. The id value is P1_CHANGEMYCOLOR_DISPLAY.

    $("#P1_CHANGEMYCOLOR_DISPLAY").css('color', $v("P1_NEWCOLOR"));
    



    Now, please give it a try.

    If your problem is solved, please mark the right answer and close the thread as answered to help others with the same case.

    Concerning

    Mahmoud

  • Entry list to display only 5 in the region from the list

    Dear friend

    I want to limit the entry of the list area of the list.

    I created an html region and create another part of list as a child of the HTML area.

    I created the dynamic list ABC. There are 30 entry in list in list ABC.

    I want to display only 5 ABC list entry in the list area and to know all the entered list user can click opton more at the bottom of the region.

    How can I restrict the list entry in the list area.

    Thank you

    query like this

    Select ename, empno from emp r d where ROWNUM<=>

    Leave.

  • Is it possible to display only icons on the personal bar?

    I want to show only icons on the toolbar bookmarks... in order to keep more items bookmarked that I often open.

    In the "Customize toolbar" dialog, I chose 'Icons' in the drop down list of 'Show', but still see the text in the bookmarks toolbar.

    Another way?

    Try:

  • Windows that display only half of the disk capacity

    I have a new laptop HP EliteBook with Windows 7 SP1 is installed. SSD has 500 GB, but the system is only half of the disk capacity show.

    What can we do?  Thank you.

    CHKDSK discovered...  0 KB in bad sectors. 719099 KB in use by the system. 65536 KB occupied by the log file. 89854676 KB available on disk. 4 096 bytes in each allocation units total 60636159 the disk allocation unit. 22463669 allocation units available on disk.

    Coincidentally reduce then extend the volume again?

    CHKDSK is essentially a tool of file system and the capacity of the disc that you see in the Explorer disc property is actually the size of the file system rather than the physical size of the volume, the physical size of the volume is based on the head of sector, while the size of the file system is based on the number of clusters (allocation units).  The file system has a total of clusters 60636159 x 4096 bytes = 248,365,707,264 bytes.

    Different size according to the different tools are both correct, but the file system is not using the entire partition, you need to extend the file system with the Diskpart tool.

    At a command prompt, enter the following commands:

    C:\ > DISKPART
    DISKPART > list Volume
    DISKPART > select volume c (here, you can use the figures given by the Volume of the order list or use the actual letter of the volume, in your case 'c')

    DISKPART > extend filesystem
    DISKPART > exit (exit Diskpart)

    Here is a screenshot of the procedure:

    The file system extension is relatively safe, but as always you should ensure that you have a good backup of your files before doing any kind of work of system disk/partition or file.

    John

  • Error when painting during the AJAX call page fault

    Hi all

    I do a simple AJAX call test with the emp table. In my page, I have a report, a search box and a button. You put in a text and click search and you will get the result that all the works.

    I have a requirement where if you click on the button and there is no search match you will be redirected to another page, just reload the report to display the result as usual.

    So, I took the road to AJAX where I perform a simultaneous when the user enters a text search and click on the button. If the search count (*) > 0 then return return County else returns 0.

    The code for the application process is:
    DECLARE
    begin
    CCOUNT number;
    
    
    
    begin
    Select count(*) into ccount 
    from emp
    WHERE 
    UPPER(:F_SEARCH_RESULT) like '%'||upper(ename)||'%';
    
    exception when no_data_found then
    htp.p(0);
    end;
    
    htp.p(ccount);
    
    
    END;
    My (still working on that) Java script code is:
    <script language="JavaScript" type="text/javascript">
    
    
         function search_count()
    
         var get = new htmldb_Get(null,null,'APPLICATION_PROCESS=SEARCH',0);
         get.add('F_SEARCH_RESULT', $v('P1_ENAME'));
         var gReturn = get.get();     
         console.log(gReturn);
    
         var gReturn_sanitised = praseFloat(gReturn);
              if (gReturn_sanitised == 1)
              doSubmit('SUBMIT');
         
              
    </script>
    I tested this code in Firebug, and when I do a console.log (gReturn) on the release of the AJax call I get this error that prevents me from dealing with the result of gReturn and be done with the code. The error looks like:
    <html><body>
    <h1>Error occurred while painting error page: ORA-01403: no data found</h1>
    </body></html>
    I tried adding exception when no_data_found but without success. Still get the same error. My version of the APEX is 4.2, any suggestion welcome. See you soon.

    Xrc xarg wrote:
    Still no luck, even if I'm doing a simple:

    begin
    htp.p('0');
    end;
    

    in the process of the page, I get the same error as before.

    I've done much AJAX call like this before elsewhere and can't for the life of find me whats wrong here.

    I have reproduced the issue in apex.oracle.com

    WORKSPACE: AIWORSKSPACE
    USER: TEST
    PASSWORD: test
    APP #: 69721
    Page: 1

    The point of application of F_SEARCH_RESULT had the security setting of default Session State Protection of Restricted - can not be set to the browser. Change this Unrestricted.

  • How to use the wait flag integrated at the level of the element during the AJAX call

    Hello
    I would like to use the integrated waiting indicator that appears next to the selection in cascade and textfields autocomplete lists in my own AJAX call. But I don't know how to attach to the question that I'm updating.
    Can someone help me in the right direction?

    In my case, I'm running the database to update the value of an elements to the screen. My Javascript looks like this
    function MY_FUNCTION
     (p_get_item1
     ,p_get_item2
     ,p_get_item3)
    {
      //create the AJAX call refering to the APEX application process
      var ajaxRequest = new htmldb_Get(null, $v('pFlowId'), 'APPLICATION_PROCESS=AP_NAME', $v('pFlowStepId'));    
      
      //put values on screen into APEX PL/SQL variables
      ajaxRequest.addParam('x01',$v(p_get_item1));
      ajaxRequest.addParam('x02',$v(p_get_item2));    
      ajaxRequest.addParam('x03',$v(p_get_item3));    
    
      //do the actual AJAX call 
      var ajaxResponse = ajaxRequest.get();   
      //and set the items on screen based on the JSON text returning  
      json_SetItems(ajaxResponse);  
    }
    Thanks in advance

    You must use jquery instead of htmldb_get to make real asynchronous, and then add the rotation like this icon

    I used the jquery post method to call the process of request here

    function MY_FUNCTION
    (p_get_item1, p_get_item2, p_get_item3) {
         //show indicator
         $('#YOUR_ITEM_NAME').after('');
    
         $.post('wwv_flow.show', {
              "p_request" : 'APPLICATION_PROCESS=AP_NAME',
              "p_flow_id" : $v('pFlowId'),
              "p_flow_step_id" : $v('pFlowStepId'),
              "p_instance" : $v('pInstance'),
              "x01" : $v(p_get_item1),
              "x02" : $v(p_get_item2),
              "x03" : $v(p_get_item3)
         },
              function (data) {
              //and set the items on screen based on the JSON text returning
              json_SetItems(ajaxResponse);
              //remove indicator
              $('#YOUR_ITEM_NAME').next(".loading-indicator").remove();
         });
    }
     
    
  • Problem using the structure returned by the ajax request

    I'll send an ajax request that calls a method in a CFC.  The method executes a query and returns data.  I want to use the option of 'success' of the ajax call to display the return value "myString" in an empty div.  But nothing appears.  Everything else works.  Shouldn't the ajax call back for me "myString" and values "myNumber" which I can then use?  Or do I have the wrong syntax?

    <script src="//code.jquery.com/jquery-1.10.2.js"></script>
        <script>
      function getMyData()  
      { 
      $.ajax({
      type: "post",
      url: "test.cfc",
      dataType: "json",
      data: {
      method: "getMyData",
      city: 'Hartford'
      }
      , success: function(data) {$('#result').html(myString);}
      , error: function(data) {$('#result').html('That failed');}
      });
      $('#anotherDiv').html('Goodbye');
      }
      </script>
    </head>
    <body>
    
    <a href="javascript:()" onclick="getMyData();">
       <div>Click here</div>
    </a> 
    
    <div id="result"></div>
    <div id="anotherDiv"></div>
    

    <cfcomponent>
      <cffunction name="getMyData" access="remote" returntype="struct" returnformat="json">
        <cfset var stcRetVal = StructNew()>
            <cfset stcRetVal.myString = "Hello">
            <cfset stcRetVal.myNumber = 75>
        
            <cfquery datasource="#application.mainDS#">
      insert into test 
                (city) 
                values 
                (<cfqueryparam value="#arguments.city#" cfsqltype="cf_sql_varchar">)
      </cfquery>
    
    
      <cfreturn stcRetVal>
      </cffunction>
    </cfcomponent>
    

    If your function should return you structure JSON like:

    {

    'myString': 'Hello,'

    "myNumber": 75

    }

    When you succeed, you do:

    success: {function (data)}

    $('#result').html (myString);

    }

    whence "myString"?  All that gets you back is in this object 'data '.  So, you might be able to do it instead.  Try to console.log (data) inside your success Manager.

    success: {function (data)}

    $('#result').html (.myString data);

    }

  • Content workflow presenter - only point - crawl the content

    There is this small region which contains a box of drop-down selection menu and some content in my Web site target.  This region will appear in a few pages.  The contents of combo box selection can change between two pages, in which the region can be displayed.

    My approach was to use a content Presenter task Flow-> datasource for a particular content of UCM-> create a view model that would be to analyze the contents of the UCM file-> create an Option button with the contents parsed University Complutense of MADRID.

    I was able to get the content of my page.  But I'm unable to crawl the content.  Can someone ' a please guide me on how I can get the contents of the data source to a variable so I can analyze the content?

    Hello.

    Are you try create a with the value of metadata? With values from a data file?.

    values in the data file.

    It's the XML content is it not a definition of the region (asset Web, data file)? If set to true, using XSTL (XML parsing of JSTL).

    N ° this is the CSV file.

    These responses are opposed as Datafile = region definition = active Web.

    In any case, I understand what the problem is, (you want to analyze files such as CSV or TXT in the Presenter content model).

    My steps so that there are at.

    (1) build a process/analysis RegionController a current selected node and store information in a limited range variable analysis. This means that whenever you use a content presenter workflow you must register this class in the associated page definition.

    (it is a Phase for regions listener, run your code before the process of rendering)

    For me, is not a good practice approach.

    Reference: understand the lifecycle Page Fusion


    (2) build your own workflow with an entry in the file picker parameter (you can use the same as OOTB task runs). For me, this is the best way

    In your own Job Flow follow the following ideas:

    • A method call to generate a variable scope with analysis information on the entry point file.
    • Fragment view showing your select field

    I do not know what you go with, select the option when draw it. But I think that if you build your own task Flow for your condition, it will be give you more freedom.

    I hope this information help you.

    Kind regards.

  • Display/video pointer rub the white screen

    Im having problems with the display of things like video clips on BBC Web page or other graphics 'on the move '.  Fragments of the photo and I can not see and the mouse pointer appears to "scrub" the white area of the ideas of what I can do to fix it please?  See you soon

    Hello MZ_52,

    Most likely, you are referring to a Google Chrome installation option that comes in their installation of Adobe Flash Player. This will have no impact on the performance of Flash Player.
    If it was working fine before the update, I would advise you make a restore system before this happened:
  • InDesign display only part of the image

    I do work for a client in InDesign CS5. I haven't worked in before CS5, so don't know if this is a bug or if I'm doing something wrong.

    It seems to happen randomly and I checked the preferences and tried using different settings for display performance. I even tried the work of viewing with preview of overprinting on.

    Where to place the images that a part of the image shows. When I convert them to PDF or print the file, and then displays the entire image. This makes it very difficult to make the layouts, especially in cases where I need to crop an image.

    In InDesign, it looks like this:

    Screen shot 2010-09-15 at 2.19.37 PM.png

    When I convert them to PDF format (it is a low resolution output, just to demonstrate my point) the entire picture shows:

    Screen shot 2010-09-15 at 2.28.51 PM.png

    In InDesign, it looks like this:

    Screen shot 2010-09-15 at 2.19.49 PM.png

    When I convert them to PDF:

    Screen shot 2010-09-15 at 2.29.00 PM.png

    The machine I'm ding this work on is an iMac, 2.66 GHz Intel Core 2 Duo with 4 GB 800 MHZ DDR2 SDRAM. It runs Mac OS x 10.6.4. And InDesign version 7.0.2.

    This is definitely not normal and not a bug, but something on your system or configuration. If Eugene'ssuggestion does not work, try http://forums.adobe.com/thread/526990

  • I can't get the bookmarks toolbar to display only icons, not the words.

    Before I updated to the new firefox I saw all my favorites because they were only small icons, now he wants to show that and the name of the site. I tried to 'customize' and everything all about but I can not understand how to change it back.

    If you were using Firefox 3.6 with the add-on of Smart Bookmarks Bar ( https://addons.mozilla.org/en-US/firefox/addon/smart-bookmarks-bar/ ), that the module has not been updated by its developer past Firefox 3.6.

    Take a look at what follows as a replacement:

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • Lenovo K900 - displaying only and not the contacts when I call

    Hello, I bought my K900 phone a few days ago in the shop in India. When I dial a contact or a contact trying to call me, only numbers and not the name of the contact on the phone. Help, please

    Hello, the issue of the sorted mate. I did return the contacts, remove the phone and them even once, Voila - restored to work like a jewel

Maybe you are looking for

  • Firewall left for weeks, should I worry?

    I forgot to turn on my firewall weeks, should I worry? I have a password manager (1password) on the mac, which 275 passwords in it. I'm just worried for nothing or I should change each password just in case my mac has been compromised? (no account se

  • Satellite 230CX: optional CD-ROM available?

    Hi all I have just become the owner of a Toshiba Satellite 230CX, this happened only with a floppy disk and I want to swap diskettes to a CD. problem is, I'm not sure about the model number of the CD, I need, I just bought a mini dvd player, but can'

  • Not getting not recovered...

    My os got corrupted I made a recovery when I inserted the 3rd cd after some time, he got the exit ramp... once again I pressed the power button / stop he got... but do not have started at the operating system, what happens if the problem

  • Determine which cluster and the array index element was clicked on table clusters

    Hello I'm overload of brain with dynamic events and references and nodes of property etc. I am trying to identify the cluster and the array index element that was clicked on table clusters This gives me the name of the element: Is this reasonable?  H

  • M127fn ACM: ACM M127fn

    The M127fn of the ACM has worked several months ago.  After 15 minutes of inactivity the printer would 'sleep' and 'wake up' when a work of LAN was sent to her.  "Standby mode", the screen touchscreen printer would go dark and the power light should