Dynamic List for Country and City

I want to create two drop down list for Country and City. So if the user selects a country from dropdown list the other drop down list should automatically be refreshed tos how its corresponding cities.
I tried using JCOMBOBOX but there is no method in this class there i can pass the data at run time.
Can any one pls send me a sample code?
Thanks

Note: This thread was originally posted in the [Java Programming|http://forums.sun.com/forum.jspa?forumID=31] forum, but moved to this forum for closer topic alignment.
edit
pinto_g, please post your questions to an appropriate forum in future.
Edited by: DarrylBurke

Similar Messages

  • Dynamic Dropdown for Country can Phone Code

    Hi,
    Can anyone show me how to create a Dynamic List for Country and Phone Code. Select a country from dropdown menu and it reloads the page to show the coutry phone code in a text field.
    Example:
    -- It shows a list of country
    -- When a country is selected, it populate the selected country phone code to a text box on the same page.
    Let say, Choose UK country and it auto populate the Phone Code "44" to the text field box on the same page.
    Please advice.
    Thank you

    I exactly know the solution you need.
    But please dont forget to award me the 4 duke dollars if you are satisfied with my solution.
    The solution:
    <select size="1" name="country" onChange="myFunc()">
    <option value="">Please select ..</option>
    <option value="0001$91">India</option>
    <option value="0002$81">Japan</option>
    <option value="0003$44">UK</option>
    </select>
    <p><input type="text" name="myTextField" size="5"></p>
    <script>
    function myFunc()
    var ind =document.forms[0].country.selectedIndex;
    if(ind!= -1)
    var phoneCd = document.forms[0].country[ind].value.substring(5);
    alert(phoneCd );
         document.forms[0].myTextField.value=phoneCd
    else
    document.forms[0].myTextField.value="";
    //alert("my 4 duke dollars pls ;-)");
    </script>
    As you can see in the above dropdown menu "country" that I have defined the phone code in the value after the "$" symbol.
    Simply substring the portion after the $ symbol and you get the phone code.
    Lemme know if this helps ..
    -Rohit
    Message was edited by:
    RohitKumar

  • Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Sales Group then add to Distribution list based on Region

    Hey Scripting Guys,
    I have been in and out of Powershell last few years, not that great at it tbh !!! I'm looking for advice on how I can as in Title, Create a Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Group then add to Distribution
    list based on Region/Country
    I was thinking along the lines of get-aduser -LDAPFilter "(department=SALES France) and adding a where clause for country.
    Any help would be great.
    Dec

    So I have tried a few variations but get errors on both 
    get-aduser -LDAPFilter "(&(department=SALES)(c=us))" | Add-ADPrincipalGroupMembership -MemberOf "testgroup"
    get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADGroupMember -identity "testgroup"
    Add-ADPrincipalGroupMembership : Object reference not set to an instance of an
    object.
    At line:1 char:86
    + get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADPrincipalGroupMe
    mbership <<<< -MemberOf "testgroup"
    + CategoryInfo : NotSpecified: (:) [Add-ADPrincipalGroupMembershi
    p], NullReferenceException
    + FullyQualifiedErrorId : Object reference not set to an instance of an ob
    ject.,Microsoft.ActiveDirectory.Management.Commands.AddADPrincipalGroupMem
    bership

  • My country is Kuwait not listed for FaceTime and iMessage for activation?

    my country is Kuwait not listed for FaceTime and iMessage for activation so how can i use it ??

    Sorry... But... This cannot be changed
    https://discussions.apple.com/message/15858866

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • Dynamic Selection for FBL1N and FBL5N reports

    Dear all,
    is it possible to show more fields in Dynamic Selection for FBL1N and FBL5N reports?
    Thanks in advance
    Alberto

    Dear Alberto,
    Please refer to the SAP note 310886. In the note you should be able
    to see how to add fields in to the dynamic selection , and the fields,
    which are available for this.
    I hope this can help You.
    Mauri

  • [svn] 2773: Update excludes list for JBoss and WebSphere.

    Revision: 2773
    Author: [email protected]
    Date: 2008-08-07 04:35:10 -0700 (Thu, 07 Aug 2008)
    Log Message:
    Update excludes list for JBoss and WebSphere.
    Modified Paths:
    blazeds/trunk/qa/features/excludes.properties

    JGroups is an open source project that allows processes to send messages to one another. LiveCycle data services uses it for its messaging implementation (basically it configures the server to multicast messages to all the listening clients...even in a clustered environment across different LAN/WAN).
    In most cases the default configuration will work fine, the problem is that if you are running a firewall on the server (or your local machine...i.e. windows firewall) the ports that JGroups uses for its communications can be blocked. In a local environment its easy enough to disable windows firewall and bounce your server to get things working.
    In a production environment you need to open the ports that JGroups is using. These settings are in the Global Administration settings (as mentioned by WorkspaceUser above). If you export it and look at the JChannelConnectionProperties you'll see the ports its using and you can set your firewall to allow communication to those ports.
    Bryan

  • Data missing for Region and City in PSA

    Dear Experts,
    I have a generic datasource, which shows data for Region and City when i extract the data through RSA3 (Extractor Checker).
    When I extract the data to BW, in PSA i dont see data for Region and City. I have no idea what went wrong.
    The data for Region and City are not available in the datatarget also.
    Please through some lighte on this if you have come accross this.
    Thanks in advance... Hoping to see some solutions.
    Saravanan Payani.

    Hi Amit,
    Nice to see your reply. The objects to which data was not available in PSA are 0COUNTRY and 0REGION. These two are mapped with fileds CITY and REGION respectively in the transfer structure.
    I am not loading it as an attribute of some other. I believe that if these fields (CITY and REGION ) are hiden in datasource then during replication we will not be having it in transfer structure for mapping. As these fields are available in transfer structure, so these are not hidden at datasource.
    Please suggest me if something else i can check.
    Thanks for your time.
    Saravanan Payani

  • ASR 5000 access list for ssh and telnet

    Dears,
    how can we  apply an access list for telnet and ssh on asr 5k ?
    please advise if this is feasible.
    thx.

    Hello Joseph,
    Sorry for the delay in response.
    To control access to ASR5000 via telnet, other than configuring an ACL, there is a way to disable telnetd by configuring local context.
    For example:
    config
    context local
    no server telnetd
    #exit
    System Administration Guide of the relevant version will give you detailed information in this regard.
    Here is the latest system admin guide (for SW version 17): http://www.cisco.com/c/dam/en/us/td/docs/wireless/asr_5000/17-0/PDF/17-ASR5000-Sys-Admin.pdf
    You can find other guides here:  http://www.cisco.com/c/en/us/support/wireless/asr-5000-series/products-installation-and-configuration-guides-list.html
    Hope this helps..
    Regards
    Aneesh

  • Dynamic List for IC accounts with attrribute of R

    Hi,
    I'm trying to create a dynamic account list for all IC equity accounts. When using HS.Account.IsICP =True, the list does not include a couple of accounts that are set as "R" in the metadata? Does anyone know how to handle this?
    I am working in HFM v 11.1.2.
    Thanks

    Thanks for the suggestion. I got a suggestion from tech support to replace "If HS.Account.IsICP(AcctLi(i)) = True Then" with "if (strcomp(Hs.Account.isICP(AcctLi(i)),"True",vbTextCompare)=0) then" and this seems to have solved the issue. I'm not sure why the first statement would not have picked up the "R" but I'm not going to argue with success. Here is the text for the dynamic list to pick up all intercompany balance sheet accounts used in the equity classification for cash flow analysis in case it helps anyone:
    AcctLi=HS.Account.List("BalanceSheet","[Base]")
                   For i = Lbound(AcctLi) to Ubound(AcctLi)
                   C2Acct = HS.Account.C2Top(AcctLi(i))
                   If UCase(Left(C2Acct, 6)) = "EQUITY" Then
                   if (strcomp(Hs.Account.isICP(AcctLi(i)),"True",vbTextCompare)=0) then
                        HS.AddMemberToList AcctLi(i)
                   End if 'Hs.account.ISICP
                   End if 'UCase
                   Next

  • Can we create a dynamic action for Training and Event Management???

    Hi All
    i need to configure automatic email generation for an employee when he gets booked for a training program in the training and event management module. can we use a dynamic action for it? and how to configure it?? I also guess that i have to use the Feature MAILS for it. but i am not sure abt it and also not sure how to configure it. I will really appreciate if someone can provide me with a step to step configuration for the same. Its urgently sought.
    Thanks and Regards

    Notifications in T&E are done through Workflow.Dynamic Actions are only for PA Infotypes.
    ~Suresh

  • My phone does not show contact names for country and area code while having in coming calls. Although, I have endorsed the name with numbers. How do I the problem. My one is a iphone 3s device with updated os. Please text to help

    My iphone does not recognize saved contact number while having incoming calls due to country and area code as auto prefix. How do i fix the problem. How do i ensure that the phone recognize calls with and without the country and area code. Please text to help.

    1) Open the Phone and dial *228. This is a Verizon over-the-air programming number.
    2) When the system answer press 1 for "Program or activate your phone"
    3) Wait for the call to disconnect. You should get a prompt stating something like, "Settings updated."
    4) Open the Task Manager and kill the Phone, Message, and Contacts Applications
    5) Wait a few minutes (I waited 3 just to be extra safe)
    6) Open the Message App to verify the fix

  • Source List for Standard and Subcontracting Info Record

    Dear Sir and Madam,
    We have scenario where nart A could purchase with Standard PO or Subcontract PO.
    We  have following 2 Standard Info Record and 2 Subcontract Info Record.
    Standard InfoRec 1 for Nart A to Vendor 001 --Fixed Vendor
    Standard InfoRec 2 for Nart A to Vendor 002
    Subcontract InfoRec 1 for nart A to Vendor 003 - Fixed Vendor
    Subcontract InfoRec 2 for nart A to Vendor 004
    We have the problem here, how can we set the fixed vendor in Source List, for Standard PO using vendor 001 and Subcon using Vendor 003?
    Thank you very much,
    Regards,
    CW

    In source list only one vendor can be assigned.
    If u want to assign 2 or more vendor, try using Quota Arragement.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/f4/7d267944af11d182b40000e829fbfe/frameset.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/ee115f55c811d189900000e8322d00/frameset.htm

  • Dynamic List of Checkboxes and their Default Values

    Hello,
    I have spent more than five hours feebly attempting to figure out how to make a dynamic list of checkboxes (using an LOV) adhere to the values in the database which those checkboxes represent. The LOV itself works; I can get a nice list of checkboxes with the appropriate names, but I can't get HTML DB to check the boxes that have a value of 'Y' in the database. The code for my LOV follows:
    SELECT mesg_name n, mesg_id r
    FROM notifications
    WHERE mesg_id = (SELECT mesg_id
                      FROM subscriptions
                      WHERE upper(network_id) = upper(:APP_USER))Since this is a dynamic list of checkboxes, I obviously cannot use the "Label" property to set the labels of each checkbox. That is what n is in the query above. r is the unique ID of the message (a varchar2) that I will need to pass back to the program after the page is submitted by the user for processing. I cannot take up the value field of the checkbox with a "Y" or something as equally vague. The ID of the subscription that the user is subscribing to or unsubscribing to must be passed back to the program so the appropriate modifications to the database table can be made.
    I would most appreciate it if anyone could lend assistance.
    Thank you,
    Marc Weil

    Marc,
    I think I see what you're trying to do. You'll have to separate process that renders the LOV as a series of check boxes from the process that sets the checked values for each user.
    Before the LOV is rendered on a page, make sure you set the session state value of the LOV item to a colon separated set of IDs based on your query:
    SELECT mesg_id
    FROM subscriptions
    WHERE upper(network_id) = upper(:APP_USER)
    If you have trouble, let me know, I'll try to come up with an example.
    Sergio

  • How to create a content list for sections and chapters etc

    just started with Pages on iPad 2 and really like is BUT where is the control for creating a content list for a long document for chapetrs etc?
    thanks guys

    Hi,
    Thank you for posting the screen shots I have been unsuccessful in determining exactly where the problem is coming from. Would it be possible for you to post the actual VI so that I can work with it so see if I can reproduce this issue using your code? In regard to your questions:
    1.    You are correct 1000 samples read should write 1000 samples to the table
    2.    I believe the discrepancy is due to amount of manipulation done between the read and the file write but I cannot be certain, without the code to work with.
    3.     I am unclear as to exactly what is happening. If you are reading empty channels then you may receive erroneous readings this is to be expected. When you connected your accelerometer did you connect in RSE or differential? You can also manipulate the signal range with will affect the gain setting, how off are the readings?
    JaceD
    Signal Sources Product Support Engineer
    National Instruments

Maybe you are looking for

  • RFC fetching data from table which is not commited

    Hi Experts,                I have a query regarding commit work.Below is the RFC that i have written FUNCTION ZBAPI_CREATE. *"*"Local Interface: *"  TABLES *"      IT_ZABAP_RFC STRUCTURE  ZBAPI_RFC_STR OPTIONAL *"      RETURN STRUCTURE  BAPIRET2 OPTI

  • I would like to know how to use Skype on my TV to ...

    What I'm finding out in the millions of Skype users is that there isn't anyone (so far) that knows how to use the Skype (which is installed on my SMART TV) to make a phone call or video phone call.  So, if there is anyone out there who knows how to u

  • Sudden stop in hotsync from Z22 to Mac OS 10.5.4

    I have a palm z22 that I connect to my Mac (OS 10.5.4) with a USB chord. It has suddenly stopped connecting when I try to use hotsync. I've tried rebooting the palm, and using am alternative USB chord for the palm z22 known to work. Any ideas on what

  • Turn off the annoying OCR scan in Acrobat 9.

    Please provide a way to turn of the annoying OCR scan in Acrobat 9. It is un-needed and really slows things down.  I want to read the file not edit it.

  • SAP LSO : Error Checking in Content

    Hi All, I am trying to check in the content from Authoring Tool to Content Management Repository of Portal.And I am getting the following error. Address already in use: connect java.net.BindException: Address already in use: connect     at java.net.P