Requery Drop Down after new record added

Hi,
I have a form built with ADDT. There is a dropdown box tied to the buyers table (ID, Name) and a button to add new buyers. The buyers table has full contact info in it so I can't use the editable drop down. I need to be able to requery the drop down box after the user clicks the add buyer button, which opens a window with the add buyer form, so that it checks the table again and shows the new buyer in the drop down list.
At the moment I have it all working except that when the user adds a new buyer they have to refresh the page, losing any data already entered, in order to see the newly entered data in the drop down. Is there a way to requery the drop down after a new record has been entered or when the user clicks the submit button of the add buyer form? Or, maybe requery when the user clicks on the control again after entering the new buyer?
Any help is much appreciated,
Tony

Thanks again Gunter,
Sorry, I've been out for a few days. I ended up solving the problem by adding a preform search form to search for the buyers in the table before hitting the form. If the buyer isn't there it's added before going to the form. Works for me.
I do have another question about a javascript I've been trying to get working on the same form. It converts numbers in one field to words in another (http://javascript.about.com/library/bltoword.htm) and looks fairly simple, but I think the way ADDT creates the fields names I can't figure out how to make it work. I was able to get it to work on a simple html form, but not the ADDT form. Here's some code with the two fields and the button that calls the javascript. Below that is the call in the head section. The link is also there, but I don't need to post it.
I know this can work but I really could use some help.
Thanks for any help
<td class="KT_th"><label for="guarantee_<?php echo $cnt1; ?>">Guarantee:</label></td>
<td><input type="text" name="guarantee_<?php echo $cnt1; ?>" id="guarantee_<?php echo $cnt1; ?>" value="<?php echo KT_escapeAttribute($row_rscontracts['guarantee']); ?>" size="10"/>
<?php echo $tNGs->displayFieldHint("guarantee");?> <?php echo $tNGs->displayFieldError("contracts", "guarantee", $cnt1); ?>
<label>
<input type="button" onclick="form1.price_text_1.value = toWords(form1.guarantee_1.value);" value="Convert to Text" />
</label></td>
<td width="106" class="KT_th"><label for="foreign_exchange_<?php echo $cnt1; ?>">Curreny:</label></td>
<td width="150"><select name="foreign_exchange_<?php echo $cnt1; ?>" id="foreign_exchange_<?php echo $cnt1; ?>">
<option value=""><?php echo NXT_getResource("Select one..."); ?></option>
<?php
do {
?>
<tr>
<td width="109" valign="top" class="KT_th">Price Text:</td>
<td width="197" valign="top"><span class="KT_th">
<textarea name="price_text_<?php echo $cnt1; ?>" cols="32" id="price_text_<?php echo $cnt1; ?>"><?php echo KT_escapeAttribute($row_rscontracts['price_text']); ?></textarea>
</span></td>
This is in the head section:
<script language="JavaScript" type="text/javascript">
<!--
// Call num to words script
var words = toWords(num);
//-->
</script>

Similar Messages

  • My iphone 4 drop down after that it start showing apple logo i have restored it after that it shows searching on carrier signal and shows that Connect to itune... when i connect it to itune, message came that there is some problem with your iphone.

    My iphone 4 drop down after that it start showing apple logo i have restored it after that it shows searching on carrier signal and shows that Connect to itune... when i connect it to itune, message came that there is some problem with your iphone.Please help me out.

    Hi ahsanikram!
    I have an article here for you that can help you troubleshoot this issue with your iPhone:
    iOS: Troubleshooting update and restore issues
    http://support.apple.com/kb/ts1275
    If you are still having issues after attempting the troubleshooting steps in the previous article, see the following article:
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    Thanks for coming to the Apple Support Communities!
    Cheers,
    Braden

  • Unable to capture data from drop down list in custom added field in migo tcode at item level

    Hi guys,
    need bit help in resolving query related to custom added field in Tcode migo.
    i have added a field in migo at item level ,in this i have used drop down list
    to get data but unable to capture data from drop down list.gown through
    many blogs in scn but unable to resolve.
    Please help me out in this.
    Thanks,
    Umakant.

    Hi,
    U can use following code to fill the list box
    write this code in PBO
    In layout editor please select listbox in dropdown attribute of input field and put some fctcode attribute
    TYPE-POOLS vrm.
      DATA values TYPE vrm_values WITH HEADER LINE.
      TABLES: <ur custom Database table>.
      clear values, values[].
      SELECT * FROM <ur custom Database table>.
        values-text = <TABLE FIELD TO DISPLAY IN DROPDOWN> .
        values-key = <TABLE KEY FIELD TO DISPLAY IN DROPDOWN>.
        APPEND values.
      ENDSELECT.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = '<SCREEN INPUT FIELD NAME>'
          values          = values[]
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
    Also please define the following before accessing the listbox value
    data: <listbox input field name> type <table field name>,
            <inputfield name where text to display> type string  in top include
    In PAI, select the text from the table into <inputfield name where text to display>  depending on value selected which will be called when enter key is pressed or any vale is selected

  • How to select a default year in my messagechoice, after new record

    Hi,
    How can I select the year we are in now when a user creates a new record.
    The user goes to an empty UIX form, there is a year field, which is a
    messageChoice with Enumeration Mode, containing a list of years.
    I want to pre-select 2006 when the user creates a new record.
    I've added the following code to my entityImpl.java class
      public Number getYear() {
        Number year = (Number)getAttributeInternal(YEAR);
        if (year == null) {
          Calendar c = Calendar.getInstance();
          int y = c.get(Calendar.YEAR);
          year = new Number(y);
          //setYear(year);
        return year;
      }But my form complains there is a null value for year, if I select another year
    it works.
    If I enable the setYear, its starts complaining all other fields are null.
    I also tried it on database level, having a default for year, but my form doesnt
    know about it...
    TO_NUMBER(TO_CHAR(SYSDATE, 'yyyy'))
    So how Can i accomplish this?
    thanks in advance
    ido

    anyone.... ?

  • Lookup field not rendering like drop down in New Item form

    Hi
    I have been making a page to add new item to a list, for this i am using new item form.
    I am having a two lookup fields in that list of which one contains more than 20 items and other only 3.
    My first problem is that first lookup renders as a text box ONLY in IE 9 mode(nothing appears even when you click on the down arrow), but when I change the mode to IE 8, the rendering changes to a textbox + ajax + filtering list instead of the simple drop
    down list control.
    BUT FIREFOX AND OTHER BROWSERS RENDER PROPERLY AS A SIMPLE DROPDOWN.
    I have read several blogs about this, but could'nt find a simple solution.
    Anyone has any idea on this?
    thanks!
    IE rendered 1st lookup like this:
    <INPUT onkeydown="CoreInvoke('HandleKey')"
    id=ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01 onchange="CoreInvoke('HandleChange')"
    class=ms-lookuptypeintextbox
    title=Country onfocusout="CoreInvoke('HandleLoseFocus')"
    onkeypress="CoreInvoke('HandleChar')"
    name=ctl00$ctl20$g_2f56956b_9ff1_48a5_af9a_ba167804f29a$ctl00$ctl05$ctl01$ctl00$ctl00$ctl04$ctl00$ctl01
    value=(None) type=text match choices="(None)|0|Austria|1|Belgium|2|Bulgaria|3|Cyprus|4|Denmark|5|Finland|6|Germany|7|Kazakhstan|8|Liechtenstein|9|Moldavia|10|Norway|11|Poland|12|Portugal|13|Romania|14|Russia|15|Slovania|16|Spain|17|Sweden|18|Switzerland|19|The Netherlands|20|Turkey|21|Ukraine|22|United Kingdom|23" optHid="SPCountry_Hidden"
    opt="_Select">
    <IMG style="BORDER-RIGHT-WIDTH: 0px; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; VERTICAL-ALIGN: middle; BORDER-LEFT-WIDTH: 0px"
    onclick="CoreInvoke('ShowDropdown','ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01');"
    alt="Display lookup values"
    src="/_layouts/images/dropdown.gif">
    <SELECT style="Z-INDEX: 2; POSITION: absolute; DISPLAY: none; TOP: 871px; LEFT: 640px"
    onkeydown=HandleOptKeyDown()
    id=_Select
    class=ms-lookuptypeindropdown
    onfocusout=OptLoseFocus(this)
    ondblclick=HandleOptDblClick() tabIndex=-1 size=8
    name=_Select ctrl="ctl00_ctl20_g_2f56956b_9ff1_48a5_af9a_ba167804f29a_ctl00_ctl05_ctl01_ctl00_ctl00_ctl04_ctl00_ctl01">
    <OPTION selected value=0>(None)</OPTION>
    <OPTION value=1>Austria</OPTION>
    <OPTION value=2>Belgium</OPTION>
    <OPTION value=3>Bulgaria</OPTION>
    <OPTION value=4>Cyprus</OPTION>
    <OPTION value=5>Denmark</OPTION>... and so on
    </SELECT>
    Regards, Nayan

    We had the same issue in our environment and we made use of jQuery to resolve the issue. The idea has been taken from SPServices.codeplex as mentioned by Christophe, but extends it in a way with few changes to make it work in our environment for each instance
    of this drop-down in the entire web application.
    $("input[class='ms-lookuptypeintextbox']").each(function
    columnName = $(
    this).attr('title');
    OverrideDropDownList(columnName);
    // Main Function
    function OverrideDropDownList(columnName) {
    // Construct a drop down list object
    var lookupDDL =
    new DropDownList(columnName);
    // Do this only in complex mode...
    if (lookupDDL.Type ==
    "C") {
    // Hide the text box and drop down arrow
    lookupDDL.Obj.css(
    'display',
    'none');
    lookupDDL.Obj.next(
    "img").css('display',
    'none');
    // Construct the simple drop down field with change trigger
    var tempDDLName =
    "_" + columnName;
    if (lookupDDL.Obj.parent().find("select[ID='"
    + tempDDLName + "']").length == 0) {
    lookupDDL.Obj.parent().append(
    "<select name='" + tempDDLName +
    "' id='" + tempDDLName +
    "' title='" + tempDDLName +
    "'></select>");
    lookupDDL.Obj.parent().find(
    "select[ID='" + tempDDLName +
    "']").bind("change",
    function () {
    updateOriginalField(columnName, tempDDLName);
    // Get all the options
    var splittedChoices = lookupDDL.Obj.attr('choices').split("|");
    // get selected value
    var hiddenVal = $('input[name='
    + lookupDDL.Obj.attr("optHid") +
    ']').val()
    if (hiddenVal ==
    "0") {
    hiddenVal = lookupDDL.Obj.attr(
    "value")
    // Replacing the drop down object with the simple drop down list
    lookupDDL =
    new DropDownList(tempDDLName);
    // Populate the drop down list
    for (var
    i = 0; i < splittedChoices.length; i++) {
    var optionVal = splittedChoices[i];
    i++;
    var optionId = splittedChoices[i];
    var selected = (optionId == hiddenVal) ?
    " selected='selected'" :
    lookupDDL.Obj.append(
    "<option" + selected +
    " value='" + optionId +
    "'>" + optionVal +
    "</option>");
    // method to update the original and hidden field.
    function updateOriginalField(child, temp) {
    var childSelect =
    new DropDownList(child);
    var tempSelect =
    new DropDownList(temp);
    // Set the text box
    childSelect.Obj.attr(
    "value", tempSelect.Obj.find("option:selected").val());
    // Get Hidden ID
    var hiddenId = childSelect.Obj.attr("optHid");
    // Update the hidden variable
    $(
    'input[name=' + hiddenId +
    ']').val(tempSelect.Obj.find("option:selected").val());
    // just to construct a drop down box object. Idea taken from SPServces
    function DropDownList(colName) {
    if ((this.Obj
    = $("input[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "C";
    // Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
    // Simple - when they are less than 20 items
    if ((this.Obj
    = $("select[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "S";
    // Compound - when they are more than 20 items
    else
    if ((this.Obj
    = $("input[Title='" + colName +
    "']")).html() !=
    null) {
    this.Type =
    "C";
    // Multi-select: This will find the multi-select column control on English and most other languages sites where the Title looks like 'Column Name possible values'
    else
    if ((this.Obj
    = $("select[ID$='SelectCandidate'][Title^='" + colName +
    " ']")).html() !=
    null) {
    this.Type =
    "M";
    // Multi-select: This will find the multi-select column control on a Russian site (and perhaps others) where the Title looks like 'Russion stuff: Column Name'
    else
    if ((this.Obj
    = $("select[ID$='SelectCandidate'][Title$=': " + colName +
    "']")).html() !=
    null) {
    this.Type =
    "M";
    else
    this.Type =
    null;
    // End of function dropdownCtl
    - Sid

  • My Mac 10.7.5 won't shut down after new software (security update 2013-003) installation-- hangs at grey screen with "software update" at top.  It also intermittently goes to sleep without my asking.  What to do?

    My Mac 10.7.5 won't shut down after a new software installation (Security Update 2013-003).  It just hangs at a grey screen with "Software Update" at the top.  I have to force quit, then restart-- but the new software hasn't installed.
    My Mac also intermittently goes into Sleep mode, repeatedly, unprompted by me.  I suspect a connection between these two problems.
    I have tried deleting the /Library/Updates folder.  It hasn't helped.  The update still won't install, and my Mac won't shut down without my forcing the quit.
    Help please!

    Hi, I've just come accross the same problem... did you manage to get a resolution??
    Cheers, Chris.

  • Drop down menue new update

    my drop down menue not working on my banks account for security what do I do?????

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).<br />
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]<br />
    <br />
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.<br />
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    You can also try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window.

  • Matching score for new records added to existing workflow

    Hi SDNers,
    My doubt is:
    I have a 2 Workflows which are already in process. The triggering event for them is Manual, Record Import.
    Now I manually assigned 20 records  to "Workflow A" based on Condition 1
    Also, I manually assigned 20 records  to "Workflow B" based on Condition 2
    I am importing 30 new records. Based on the condition, I want to assign these records to the existing Workflow A / Workflow B.
    Note: There is a Match stencil, so the newly created records have to be matched against the existing records in the present Workflow itself.
    Is it possible to add new records o existing workflow manually?
    Also, what about the Matching score? will the records be matched?
    Thanks & Regards,
    Priti

    Hi Priti,
    I tried restricting records using Named Searhes and Masks but it includes all the records with Match step property Records Vs All. You have to perform some maunal step either by selecting records using some search criteria or you can use Named Searches i.e.
    1. Create one field say New of type boolean and by default set it to NO.
    2. Create one named search for this field value to YES.
    3. Create one assignment which sets the value for this field to YES and add this assignment in the workflow as the first step.
    4. When ever you import records, assignment will set New=YES for all the records imported. Now, when you add more records, search the previous records using Restore Named Search function which will give the list of records imported now. You can perform Matching and Merging operation.
    5. Add one more assignment to the workflow as the last step which should set New=NO so that records should not appear next time for Matching
    Regards,
    Jitesh Talreja

  • Camera Raw not in File drop-down menu new member PSCC

    Hi
    I just installed the photopshop CC with Lightroon Deal and I went to File and there is no "Camera Raw in the drop-down menu. Do I have to install this separately and if so whre and how
    thanks

    ACR is a normal fille handler that will come up with suitable files when using any of the open/ import/place commands.
    Mylenium

  • Having trouble downloading PDF file; blue arrow drops down after click on it, but goes nowhere

    I am signed in on a bank account I have used in the past; trying to download a pdf which is a copy of my accounts, but cannot find out where pdf went.

    Hello there,
    To change the download folder for Firefox only:
    1. Open a new tab to about:config (type about:config in the Awesomebar and tap the go arrow or tap Enter)
    2. In the search box, type down and tap Enter
    3. Scroll down to browser.download.folderList and tap Modify, then change the value from 1 to 2 (from default always to last used folder). The change should appear after a few seconds.
    4. Scroll back up and tap the "Add a New Setting" button
    5. String is the correct type, so OK that
    6. The name of the preference should be browser.download.dir (this stores the last used directory)
    7. The value should be /sdcard/ followed by the folder name you want to use, for example, /sdcard/FxDown
    If you switch back to your other tab and download something, it should go to the new folder.
    https://support.mozilla.org/en-US/questions/978679#answer-505258
    Hope this helps!

  • Laptop breaks down after new BIOS installation

    Hi ,
    My laptop HP 2000 - 2d11x is  nearly a year old now. My problems started last month when my laptop started overheating and shutting down randomly. Now my laptop is completely unusable. I do not know what happened to it but I suspect that the incompatible BIOS installed recently in my computer caused its break down. 
    The first problem I had with this laptop is its overheating . I bought a usb cooling fan for it but the overheating persisted. Then, one day my laptop randomly shut down. For many days the laptop shuts down every hour or so when I use it. Then one day I took the battery out and started using the laptop without the battery. It worked continously and did not shut down but the overheating problem got worse. 
    Couple of days later I inserted the battery and the whole unit shut down. I tried again and again but my laptop keeps shutting every 5 seconds after I inserted the battery which is half charged. I cannot charge it properly because the laptop shuts down. It went on till my battery was out of charge and I can not use it anymore. 
    During this time my laptop only works when I plug it without battery. 
    I thought my battery was the problem so I stopped using it and asked HP Support for replacement since my laptop is still under warranty and I have no money to buy a new one. The agents I talked with in chat support, denied my requests for battery replacement. The first one promised to call me and said he talked with his supervisor about my problem. I waited for 48 hours but he didn't call or email me. The next agent I chat with remote accessed my computer and installed BIOS. I do not remember what kind of BIOS was it but all I remember is its a BIOS. The agent asked me to try and put the battery but the laptop shut down. It restarted and I waited a long time before it started. When it was finally restarted the agent and the connection was gone. My battery problem was still not solved. The third agent I talked with again asked to remote access my computer. Then he said that HP cannot replace my battery because battery shipment is prohibited by Bureau of Customs.  My father bought this laptop abroad in the US and we are living in the Philippines. I was frustrated and thought I will just have to use the laptop without battery.  A day later something horrible happened. My laptop did not start anymore even when I plug it with the adapter! The lights blink and goes out after 10 or so seconds when I click the start button.
    Now my laptop is broken, black screen and completely unusable. 
    I researched a bit and realized that HP and overheating issues always went hand in hand.. I'm suspecting that the BIOS update was improperly done and the overeheating fried my motherboard. If this is the, then it's the HP technician's fault for making things worse. I hope they replace the laptop or atleast fix it. They're not taking imported laptops seriously and this really angers me because HP laptops by default come with the ITW (International Traveller's Warranty). I need your advice on what to do.

    Hello armela,
    Welcome to the HP Forums!
    I understand your system was overheating and shutting down, and after a BIOS update you are no longer able to start up the notebook.
    Here is a great document to walk you through restoring the BIOS to the original factory version and settings: Restoring the BIOS
    If that does not resolve the issue, here is a good place to start troubleshooting startup problems (choose which link best represents your issue):
    Computer Does Not Start and the LEDs Blink or the Computer Beeps
    Troubleshooting Black Screen Displays with No Error Messages During Startup or Boot
    Once you are able to get the system to boot, you may want to take a look at this document to troubleshoot the overheating issue, so we can prevent this from happening again: Reducing Heat Inside the PC to Prevent Overheating
    If you are still experiencing problems take a look at our Global Warranty and FAQs. You will want to contact support in the region which you are currently located, in this case, the Philippines. You can reach them by phone at this number: 1-800-88-8588 - Mon-Fri 08:30 - 17:30 (excl PH)
    I hope this helps!
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • Profile down after new modem installation

    Hi there, I had Business infinty installed recently and have had similar problems to a couple of other forumites: Had the same 2 week modem failure problem, the engineer came round yesterday and installed a new one and after a few shaky hours my connection has levelled of at 19mbs with a profile at 20mbs, upload speed dropped from 1.6mbs to .6 at the moment. A bit trying as previously my profile was set at 27mbs and had 1.6mbs upload speed.
    What can be done to raise my profile? is it a question of wait and see or should I call BT?

    Update for those with similar problems:
    it was another defective modem, third one now in place and everything is back as it should be. BT have got a major problem regarding these modems

  • Update of FAGLFLEXT after new field added

    Hello guys,
    I have added a new field from BSEG into FAGLFLEXA/T following the standard process (OXK3...).
    I now need to update the historical values recorded into FAGLFLEXT from the go live...
    Is there any tool similar to the transcaction GCU1/N for FI-SL that could allow me to update tables FAGLFLEXT/A ? If no standard solution exists, is there any specific solution that any one of you would have implemented?
    Thank you in advance
    Best regards
    Pascal.

    Hi Mamta,
    It seems that you have sound knowledge in FI-new GL and FI-SL. I think you are the only person who can help me.
    We have following currencies in our company code
    Company code Currency INR
    Hard Currency USD
    Group Currency INR
    now we want to add one more currency "Japanese Yen" (JPY) for one of our Asian company code. We are trying to achieve this through FI-SL or New GL concept. Could you please help me in this. Any help would be highly appreciable.
    Thanks in Advance
    Regards,
    Nilesh

  • Slow down after new printer

    I just hooked up a new HP C3100 printer to my Mac Mini G4 1.25, 512 RAM. The printer is working fine, but my mini now runs at about 1/4 the speed it was before. Everything has slowed down. Is it some of the extra HP software, like HP device manager and HP Photosmart studio that got loaded from the printer's install disc? Can I fix this?

    Jake Stickelmeyer-
    Those programs don't usually play nice.
    Try the uninstaller as Boece mentioned.
    Luck-
    -DaddyPaycheck

  • Slow down after new update

    How many people are experiencing a major slow down and internet loss after the latest AirPort update. I've been having a lot of trouble. Also does anyone know how to fix it?

    Ok, found a solution that may work. I found an application called appzapper. You can find it in mac os x/downloads here on the apple site. it is shareware but you get 5 free zaps, so good enough. download the program and then find the update package /library/receipts/airport20060001.pkg. drag the package onto appzapper. Bang no more update(at leat i think) I had to restart and when i did i had my full 54mb connectivity and i could again find my g5 on the network for file sharing. hope this helps.

Maybe you are looking for