Using the application process, I need display CITY_NAME and return CITY_CODE

Hello

I have little problem .i have created an application process
BEGIN
  OWA_UTIL.mime_header ('text/xml', FALSE);
  HTP.p ('Cache-Control: no-cache');
  HTP.p ('Pragma: no-cache');
  OWA_UTIL.http_header_close;
htp.prn('<data>');
   HTP.prn ('<select>');
   HTP.prn ('<option value="' || 1 || '">' || '- Select City -'|| '</option>');
FOR c IN (select CITY_CODE ,STATE_CODE   from CITY_MAS where STATE_CODE =:SELECT9)
LOOP
  HTP.prn ('<option value="' || c.CITY_CODE || '">' || c.CITY_CODE  || '</option>');
   END LOOP;

   HTP.prn ('</select>');
htp.prn('</data>');

END;
i have two Item 

P1_STATE_NAME Select List 

select STATE_NAME D, STATE_CODE R from   STATE_MAS 

P1_CITY_NAME

select CITY_NAME D, CITY_CODE R from CITY_MAS
My Table are
Table for STATE 

CREATE TABLE  "STATE_MAS" 
   (     "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE, 
     "STATE_NAME" VARCHAR2(50) NOT NULL ENABLE 
     
   )
/


------------

Table For CITY

CREATE TABLE  "CITY_MAS" 
   (     "CITY_CODE" VARCHAR2(3) NOT NULL ENABLE, 
     "CITY_NAME" VARCHAR2(1000) NOT NULL ENABLE, 
     "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE 
     
 )
/
When I select the name state select and city name of the list has changed with CITY_CODE AS the SEA, GUJ, MOM. CITY_CODE display in the selection list.

I want Francisco in select cities list and return the value CITY_CODE

I want when I select the name of the State of list select State then CITY_NAME should be enter in list to select the city names and CITY_CODE to return in to Table.

I try this with in the last two days, but I can't.

Please tell me how I can do this.


Thank you

Published by: 805629 on January 12, 2011 06:41

Published by: 805629 on January 21, 2011 12:01 AM

This is an old blog post which explains step by step. It is for cascading selection lists and must be exactly what you are looking for
AJAX cascading select list in APEX

Tags: Database

Similar Questions

  • Redirection of the application process

    Hello

    When we try to redirect using the application process get below error.

    When the same process is tried to process Page it works fine.

    We use 5 APEX. Tried owa_util.reirect_url and apex_util.redirect_url.

    Any ideas?

    Hi Arun,

    Why don't you use a branch?

    If you cannot you must always use apex_util.redirect_url. Can you provide an example of code you used? As it seems that the browser actually receives the redirection, but it seems that it is not correct. Use the function "Check system" and tab Net of Firefox to have a look at the answer and after that is returned by the server.

    Concerning

    Patrick

  • How to set the value of the point of application using pl/sql in the application process

    Hi guys,.

    I want a global variable (application point) whose value will be set to start when a user logs on to the application. The value will be retrieved from the database by using a sql query. I don't exactly know the syntax to set the value of the point of application in the application process. Also, I want to know what type of enforcement process should I use to set the value of the point of application, when a user starts a session. The value of the point of application varies from one user to the user.

    Help, please.

    I use apex 4.2

    Kind regards

    Waqas

    You can use the application element as a link with his name. That is to say. your point of application is named G_MY_APPLICATION_ITEM, then you can / set of access using: G_MY_APPLICATION_ITEM.

    For example

    BEGIN

    -assign as a variable

    : G_MY_APPLICATION_ITEM: = 'LARRY ';

    --

    -use in a SQL statement

    SELECT WHATEVER_COLUMN

    IN: G_MY_APPLICATION_ITEM

    FROM MY_TABLE

    WHERE USERNAME =: APP_USER

    ;

    END;

    Peter

  • Sending page apex to the application process (JSON) values

    Hi all

    A page 5 apex has a value in a hidden item, P5_CLASS
    In the apex 5 page, I wrote a JavaScript to call for a process of application (PL/SQL) to retrieve the values of a table on Page 5.
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is Get_Class_Data', 0);
    and I use the JSON object to display the rows in the table.
    -----------
    Problem
    -----------
    It works pretty well. But I need to send the value of the hidden element P5_CLASS to Get_Class_Data so that I can ask P5_CLASS-basedapplication process.

    Help, please.

    Shiva says:
    Thank you Paul,.

    So I can use

    var ajaxRequest = new htmldb_Get (null, & APP_ID, 'APPLICATION_PROCESS = GET_CLASS_DATA', 0);
    ajaxRequest.add ('F15_GLOBALVAR', $v ("#P5_CLASS")) to send the value to the application process?

    (F15_GLOBALVAR is an application-level element, I created in the shared components)

    And to use this application in my sql in GET_CLASS_DATA, I can use sql... where class =: F15_GLOBALVAR?

    Yes.

    (Please zip code wrapped in \

    ...\
    

    Tags to preserve the special characters and formatting.)

  • Settings.ini, sidebar does not display - A pop-up says "settings.ini is being used by another process. Close other programs, and then click Retry. »

    My sidebar is not displayed in my administrator account. A pop-up Windows says 'settings.ini is being used by another process. Close other programs, and then click Retry. "However, no other program does run I know. I'm not able to access using Windows, the window is empty and shows that the site is under construction. Internet access seems to be hampered. This problem is not on my user account on the same computer, and I saw Windows Help on my user account. Also I tried to do a system restore and it was unsuccessful both times.

    The profile of the user of this account may be damaged. You must create two new accounts administrator and use one to copy the data from your current account to the new account on the other.

    http://Windows.Microsoft.com/en-GB/Windows-Vista/fix-a-corrupted-user-profile

    I managed to fix this time by running the Fixit http://support.microsoft.com/kb/886549

    Some of the registry keys that repairs this Fixit seemed to have been corrupted by a facility in need of elevation on behalf of administrator halfway through user account. It is interesting to try everything first to see if that fixes it. I always keep a few spare administrator accounts available now.

  • Application in VSOM report (using the Application layer in point 6.1)

    Hello

    I am producing a report for applications 6.1 VSOM (I added manually for an application levels), I tried to show the resources devoted to the application and each of the levels in a report, but I can't get the name of the Application or the bleachers is displayed in the report. I'll try to use tags, but they will not be displayed in the report. As an example would like to see:

    Name of the App or level

    Total resources of the virtual machine within the app

    CENTRAL PROCESSING UNIT

    MEMORY

    DISC

    Someone has something like this happening using the Applications section in VSOM?

    Thank you

    I was able to complete this using VSphere marking and using the functionality of the Application in VROPS.

  • adding additional drives in the application process

    Hi, how it is possible to add additional disks in the application process? Now, go in the settings of the virtual machine in vCenter client to add disks after the virtual machine has been created in LCM. We take for the applicant specify how many additional disks and what size (just not RDM VMDK)

    Thank you

    It can get quite complicated because this is certainly not the standard features of LCM and would not be supported by VMware if this customization is not performed by the team of the Orchestration Services of our Professional Services organization... However, that being said, a general approach would be as follows:

    • Duplicate the workflow application for Virtual Machine to the category of workflow custom under user and give a custom name like ask VM

    • Add new entries to the custom workflow that are something like: additionalDiskCount (number) and additionalDiskSize (number) (which implies that all the additional disks would be the same size)

    • Update the workflow to store these values by using a standard LCM Action such as:

    System.getModule("com.vmware.lcm").addDataToTokenKeyAsString (provisioningToken, additionalDiskCount, "additionalDiskCount");

    System.getModule("com.vmware.lcm").addDataToTokenKeyAsString (provisioningToken, additionalDiskSize, "additionalDiskSize");

    The two lines above will store the specified user to other values that the token of data in the database of LCM and you will be able to get it back later because it is related to this particular request token.

    • Hide the initial request button of the tab requests and create a new button that points to your custom workflow

    • Create a new workflow that takes an object of lcm:ProvisioningToken as an entry called "token".

    • Inside of this workflow (let's call it 'Add disks to ask'), you will need to retrieve the additionalDiskCount and additionalDiskSize values that have been stored with the token:

    additionalDiskCount = System.getModule("com.vmware.lcm").getDataFromTokenKeyAsString (token, "additionalDiskCount");

    additionalDiskSize = System.getModule("com.vmware.lcm").getDataFromTokenKeyAsString (token, "additionalDiskSize");

    • You then get the object of VMware3:VirtualMachine of your token:

    VM = System.getModule("com.vmware.lcm.vim3").getVmFromToken (token);

    • Then, using those extracted values and the virtual computer object, use a loop to pass these parameters and some other default values you want in the workflow 'Add drive' (it's in the category library/VIM 3/Virtual Machine management/Device Management workflow.)

    • Once you have confirmed that this new workflow 'Add disks to ask' is working properly by passing only an object token with these entries of additional data stored with them, you can add this workflow for the reminder 'onCreate '.

    The above process is a general approach that could be taken. The specifics of real workflows that you create are up to you and the support of this customization

    Good luck!

    Visit me on http://www.vcoteam.info for vCenter Orchestrator tips and tutorials

  • Question of the application process

    +(First OFF, we're using ApEx 4.0 through IE8) +.
    I have a report that serves as a "shopping bag" of sorts, with a "Delete" button to cancel the Articles of him. But the button 'Delete' is not to go to the page, it leaves just a blank white page. (Fortunately, the process works in the removal of the element)

    The link to the column in the report Page 11 goes back to Page 11. (I tried to change to a new Page 12, including a few branches immediately back to the 11 Page, but it does not solve the problem) The link name is APPLICATION_PROCESS = REMOVECART, clears the cache on Page 11 and sets the value of a hidden element (P11_ITEMCODE) to be referenced in the App.Process.
    The REMOVECART process is a SQL/PL block running On-Demand"that says:

    DELETE FROM INFO_CART WHERE ITEMCODE =: P11_ITEMCODE;
    UPDATE the STATUS value INFO_INDEX = 'In', ORDEREDBYUSERID = '0' where ITEMCODE =: P11_ITEMCODE;

    There is no Conditions, permissions or authentication on the process or the link in the column. Ideas, why the process is not back to the Page based on its execution?

    It appears when you run the application process of the URL which deal with the application will run and that's it. You will need to provide a code in the process of redirection request to the url of the page you want to go.

    Another option is to create a process to run the application process and make it conditional to a certain request value that you can set in your link. Look at the page 4 ("basket 2") for an example.

  • .exe white screen after you have used the application on a programme of work Builder.

    Hello

    I am new to Labview development and I have a problem.

    I changed an application to fit my needs and when I run it there is no problem (Labview 7 Express) in debugging.

    After using the application builder to build my new soft, I have a white screen at launch.

    I tried before using the application generator and succeed with this same software (when my changes were in progress), and it worked.

    Do anyone have an idea? You need more info?

    Thank you.


  • Error: Failed to create the application process: operation not permitted - deployment of ripple to Dev Alpha

    Hey people,

    I was puzzled on this the last bit of time and can't seem to find a solution. (The closest thing I could find is here: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Webapp-not-starting-on-device-VM... but there does appear to be a response [UPDATE: Adam Stanley mentioned that it was due to a missing Debug token, and this isn't the case for me.])

    When I try to "Package & launch" of the ripple, the project is created correctly and even installs the application on the device (is the application icon on the home screen). However, when he tries to run the application, the console of the ripple spit:

    "Error: cannot create the application process: operation not permitted".

    Any later attempt to open the application from the icon on the screen will result in an immediate fall.

    As an attempt to circumvent, I use "Package & sign" and then run the blackberry-deploy with installApp - launchApp - tool options and... it generates the same error as described above.

    I'm working on OS X, and I successfully installed the Webworks SDK as well as the undulation on Chrome Plugin. I have a project together upward with a running python web server and can view the content properly on the ripple. I have my signature correctly registered keys and I generated the file debugtoken.bar. I downloaded the debugtoken on the alpha dev successfully device and placed a copy of the debugtoken.bar file in the root folder of the SDK Webworks. The unit is in developer mode.

    Someone at-troubleshooting suggestions?

    [Edited for format (original post deleted line breaks) and also to highlight a number of things]

    So after getting back to the question, I loaded build with the SDK 1675 Webworks (1.0.4.5) published today, and I was able to go beyond the permission error that plagued me previously.

    Thanks again for the help Adam.

  • 4.2 DOC BUG: all about the application process

    "There is an error in Oracle Application Express Application Builder User Guide version 4.2 §8.8.1 " "on the implementation of the application process":

    A process On Demand is a special type of procedure of demand that has a Point of On Demand process and executes when it is called from a process On demand page level or a browser AJAX call. On-demand processes are useful when you have logic of PL/SQL that you want to run different execution points on several pages.

    At the request of the process generally must be created on a page and not at the level of the application. On request, process created at the application level are created with an initial authorization scheme of must not be Public user. This prohibits the process invoked with users in authenticated sessions.

    As it is perfectly possible (and desirable) at the request of the application process to be invoked, [that] by authenticated users, this should probably read:

    A process On Demand is a special type of procedure of demand that has a Point of On Demand process and executes when it is called from a process On demand page level or a browser AJAX call. On-demand processes are useful when you have logic of PL/SQL that you want to run different execution points on several pages.

    At the request of the process generally must be created on a page and not at the level of the application. On request, process created at the application level are created with an initial authorization scheme of must not be Public user. This forbidden process be invoked from users not authenticated sessions.

    In addition, the second paragraph is a new addition to the documentation for APEX 4.2. What is the reasoning for not creating processes on request at the application level? I've used them for a few years as a way to provide reusable, application- wide (for example, the file downloads and the AJAX content) only items authenticated Apex sessions.

    Hello

    Thanks again. I added a note to the 5.0 docs.

    It is certainly very good create processes at the level of applications On Demand. However, if a process is tied to a single page, only, it is immediately obvious that the process belongs to the interface of this page. It's good from a maintenance point of view, because if you only use application-level processes, it may be more difficult to determine if the process is still in use and where it is called from.

    Kind regards

    Christian

  • Show/hide a Div so that the application process will be executed

    Hi all

    I have the following problem:
    I'm on APEX 3 and I have the page with 2 elements. When the user, enter the value in the first element on the page and navigate out of the element, in the second article should be the SYSDATE.
    This must be done as:
    1. set the fovus in the Item1.
    2. navigate off the Item1 (with TAB or the mouse).
    3 JavaScript function will be executed:
    3.1 icon "Please wait...". "will be displayed.
    3.2 application of getDbDate process will be executed.
    3.3 the value returned by the getDbDate of application process is allowed in the Field2.
    3.4 icon "Please wait...". "disappears.

    Here ist the sample application: http://apex.oracle.com/pls/otn/f?p=MISCELLANEOUS:108

    In Firefox, I have no problems to show the "Please wait...". "Icon, but the Explorer Intener shows me nothing. But the application process will be executed.

    Any ideas?

    Best regards

    Hello

    See the example of CARL
    http://HTMLDB.Oracle.com/pls/OTN/f?p=11933:62

    Kind regards
    Jari
    -----
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • How to make a visible object in the application process?

    Hello

    I have a resource that is self down and the shape of the object have a few specified additional fields (the fields are marked as required and are made in research). I want to allow (or even force) user to complete a form during the application process. How to do this? Is is possible?
    In fact, the user cannot see the form requesting a resource, it can be seen and filled by approver or administrator...

    Thanks in advance!

    Hi Magnan,

    If your resources form is not available, consider the following configurations:

    -Make sure that the form is active.
    -For the definition of the record resource, ensure that you have set the form as the object Type and define the purpose of your resource in the object name field.
    -For the definition of the resource object, make sure the resource card is defined in the name of the Table field.

    That's all you need to do to have the shape of resources when the user creates a request

    Renato.

  • I downloaded an app from a worker ID mobile shop and I am still registered my ID and I am using the application normally but I wonder if he could access this application and see my pictures and conversations!

    I downloaded an app from a worker ID mobile shop and I am still registered my ID and I am using the application normally but I wonder if he could access this application and see my pictures and conversations!

    Any help please?

    N ° unless you have given him your Apple ID and password, in which case he would have access to your entire account.

    You must download the application using your Apple ID. Otherwise, you will have questions the next time the app must replace or update. Strictly speaking, what you were doing was not quite legal, oven if it was a free app.

  • my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    my iPhone 6s has problems with the GPS when I use some applications, it does not work well and give especially the bad road. Can someone help me?

    My iphone 6 has started having the same problem. Its literally the GPS. Saying that it does not find me at all. Ive seen say location for more than an hour in the suburbs of chicago. It started to happen to me after I downloaded the latest update for the iphone. I hope they react and let you know what is happening because I'm dying to know as well.

Maybe you are looking for

  • Tecra 9100 is locked

    My Tecra 9100 has started to freeze often enough. It crashes and displays a black screen. Turn the power off is the only way I can get it to restart. Once it reboots it says chkdisk wants to check one of my disks for consistency. Is a hard drive prob

  • The executable value to run on 3 monitor

    I am trying to set up a series of executable to run on a full-screen especially several system monitor. I need to be able to tell LabVIEW that monitor to run, even if my development PC has only a single monitor. I * have * to be able to make that cho

  • Optical mouse NSB worked later Unknow device

    Well I bought my mouse about two weeks ago and it works but now all of a sudden I was playing a game when he stops working, so I tried to connect it to my mother commputer but same cana nyone help me it's optical mouse NSB is the company that makes i

  • P6 2475 ea no audio device after update

    Hello, my desktop PC HP Pavilion P6-2475EA, AMD A8, 3.2 GHz running Win8 lost its audio after an IDT High Definition Audio Codec update failure. Look in the Control Panel, the IDT device is considered taken ok, if I check the audio devices - there is

  • Gray shading on text, images, and icons.

    After having it on my computer, I noticed that everything has a shadow gray behind it, such as text, images, icons, even in programs. can I disable this somehow, or is my monitor has just been shot?