Why won't cfselect fill the initial value?

I don't understand why the cfselect won't put in the initial value...
             <cfif #URL.form_action# EQ "update">
               <cfquery name="details">
               GET STATE QUERY
               </cfquery>
               <cfselect selected="#details.state#" name="states" bind="cfc:_kpcfc_select.get_states()" bindonload="true" required="yes" message="Please select the state."/><span class="red">*</span>
              </cfif>

Dude that is the worst response ever.  I arrived at the forums after already reading this page: http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_r-s_14.ht ml
Actually I think it's pretty good advice.  There's nothing in your post to suggest you had already read the docs, and given the docs actually explain why what you're trying to do doesn't work, it's reasonable to assume you'd not read them.
Clearly the selected attribute is what I am supposed to use, however it does not work.
Well.  Hmmm.  You see the docs also say this:
"This attribute applies only if selection list items are generated from a query."
My emphasis.  Your <cfselect> is generated from a bind attribute, not a query attribute.  So that would be why it's "not working".
FWIW, this restriction seems to have been lifted in CF9.  Not that that's much help to you, I imagine.
Please someone suggest a solution other than retracing my steps.
OK.
Suggestion 1: if someone takes the time to try to help you, don't be rude to them, even if you don't like their suggestion.  It will not endear you to the people who are trying to help you, so you might find yourself not being helped.
Suggestion 2: I guess one approach would be to knock together some JS that runs after the form has rendered which scans down the option collection until it finds the item you want selected, then select it.
Suggestion 3: maybe just populate the select with a query instead of a bind.
Adam

Similar Messages

  • What is the purpose of the Initial Value checkbox in SE11?

    Hi,
    When we create database tables using SE11, there is a Initial Value checkbox for the fields that we create. How do we make use of this checkbox?
    For example, after checking the Initial Value checkbox, how do I go about entering the intial value? There isn't a input field for me to do it. Thanks.

    "Initial values" Flag  ---> Indicator that NOT NULL is forced for this field
    Select the flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.
    Please note that fields in the database for which the this flag is not set can also be filled with initial values.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.
    Restrictions and notes:
    The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.
    If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.
    If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well.
    Hope this helps.
    Thanks,
    Balaji

  • What the Initial value for sy-tabix & sy-index

    Hi Folks
       I have a small doubt.
    What the Initial value for sy-tabix & sy-index?
    Can anyone please clarify me?
    Regards,
    Sree

    hi sree,
    both values are initialized to 0 before processing and after processing values are changed according to used scenarios.
    if helpful reward some points.
    with regards,
    suresh babu aluri.

  • What is the initial value for a numeric field ??

    Can someone tell me what the INITIAL VALUE FOR A NUMERIC FIELD is ?? Thank you
    Rod.

    Using the following...
       class MyClass
         int myvar1;  // Default initial value
         int myvar2 = 3;  // Default initial value and default value
         MyOtherClass myclass1; // Default initial value
         void doit()
           int mylocal1;  // No value
           MyOtherClass myclass2; // No value
    All number member variables, like myvar1 start off with andefault initial value which is zero. For booleans this is false. Object reference variables, like myclass1, have a null value.
    All local numeric variables are considered undefined. So mylocal1 and myclass2 are undefined. Before you can use them you must explicitly provide a value.
    Finally note that myvar2 will have two values during class instantiation. Initially it will have a value of zero. Sometime later it will have the value of 3. (When that happens is very definitely outside the scope of what this forum covers. If you want to know then ask in the advanced forum.)

  • How can I change the initial value of the field approve_or_reject?

    Hello Workflow Gurus
    We are using SRM 5.00(SRM SERVER 550) and as per the requirement, I have to make the Reject radio button as default checked on the Approver's screen.
    We are using the SAP Standard Workflow WS14500015.
    I found out the Standard task TS14508044 (SC approval per Item)which has one field in its container i.e. approve_or_reject ,based on the Initial value of this field , the radio button is behaving...
    approve_or_reject EQ 0 i.e. Approve
    approve_or_reject EQ 1 i.e. Reject
    Now my requirement is to change the initial value of this field from 0 to 1 so that Reject radio button comes as checked by default into this standard SAP workflow task TS 14508044...
    Kindly help me and let me know the procedure to change this.
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE CHANGES INTO STANDARD SAP WORKFLOW ???
    Thanks and regards
    Ankur Goyal
    09823448654

    Well Iam not much sure about how you are trying to approve the shopping cart workitem b ut last week i faced a similar issue while apporving the workitems I was able to update the contianer element Apporve_or_reject element by using the FM BBP_PDH_WFL_WI_APPROVE and BBP_PDH_WFL_WI_REJECT ... These two fm will take the responsibility of updating the element with respective value as, if you approve the it will be populated with 0 and if you reject the the element will be updated with 1....
    Please check the thread where I updated the thread in [SRM Workflows|Problem while approving SC from Blackberry !;
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE
    CHANGES INTO STANDARD SAP WORKFLOW ???
    Modifying the standard workflow is not recommended.....

  • How to change the initial value of the list.

    Hi,
    I have to change the initial value of the list.In the 'When-new-block instance' trigger, i wrote the following:
    set_item_property(list_id,initial_value,
    '2000');
    But when I run the form, it says this property is not recognised.
    I need to change the initial value.
    Please help me out.
    Thanks
    Viji.

    Do you mean the default value ?
    Set_item_property('list_item_name', default_value,2000);

  • How to set the initial value of of a poplist dynamical

    Hi,
    I've got a poplist that is populated by a recordgroup. This is done by the following pre-form trigger:
    DECLARE
         l_query_ok NUMBER;
         l_group_id RecordGroup;
         l_it_id     item;
         l_int_value VARCHAR2(2);
    BEGIN
         l_it_id := Find_item('MERGED_ISSUER.product_code');
         l_group_id := FIND_GROUP('RG_PRODUCT_CODE');
         l_query_ok := POPULATE_GROUP(l_group_id);
         -- Populate list 'Product Code'
         CLEAR_LIST (l_it_id);
         POPULATE_LIST(l_it_id,l_group_id);
    END;
    I've tried to set the initial value by adding following lines to the trigger above but I receive the frm-41084 error. This code assigns the first value of the recordgroup to a hidden text item. In the properties of the poplist the value of the hidden text field is set as initial value.
    -- Set initial value
    l_int_value := Get_Group_Char_Cell('RG_PRODUCT_CODE', 1);
    :MERGED_ISSUER.int_value := l_int_value;
    Any help?
    thx

    Hello Ken,
    you can set an initial value for a poplist with the copy command.
    You could use a procedure like this:
    PROCEDURE P_FILL_LBX
         lbx_ITEM_IN                 VARCHAR2,
         grp_DATA_GROUP_IN  VARCHAR2,
         flg_DEL_NULL              BOOLEAN,
         str_WERT_IN               VARCHAR2
    ) IS
      ERROR_ID NUMBER;
    BEGIN
      CLEAR_LIST(lbx_ITEM_IN);
      ERROR_ID := populate_group(grp_DATA_GROUP_IN);
      populate_list(lbx_ITEM_IN,grp_DATA_GROUP_IN);
      IF flg_DEL_NULL = TRUE THEN
        DELETE_LIST_ELEMENT(lbx_ITEM_IN,GET_LIST_ELEMENT_COUNT(lbx_ITEM_IN));
      END IF;
      IF str_WERT_IN IS NOT NULL THEN
        COPY(str_WERT_IN,''||lbx_ITEM_IN||'');
      END IF;
    END;Bernd

  • The validity interval has the initial value as lower limit

    Hi Friends,
    When i was executing a query on Multiprovider,
    got an error like
    "The validity interval has the initial value as lower limit"
                 Actually The multiprovder has been built on two infocubes 0CFM_C10 & 0CFM_C11, in those 0CFM_C10 contains the non-cumulative values.
                Even i've checked the query also in query designere it is saying like the query is correct, in that query we are using Key Date...
    please help me onthis, awaiting for your answers
    thanks in advance

    Hi you can try using inial at the update rules

  • How to Set The Initial Value of selectinputdate Component

    I set the the initial value by
    public void setSelectInputDate1(CoreSelectInputDate selectInputDate1) {
    this.selectInputDate1 = selectInputDate1;
    java.util.Date v_tarih = new java.util.Date();
    this.selectInputDate1.setValue(v_tarih);
    But when I change the value of selectinputdate and refresh the page it gives the warning
    2006-11-18 19:21:35.562 WARNING JBO-25009: 25.11.2006 19:17 oracle.jbo.domain.Date object cannot be created
    2006-11-18 19:21:35.562 WARNING java.lang.IllegalArgumentException.
    What is the reason?
    Thanks...

    Hi Turhan Tekin,
    this post may be helpful for you:
    Re: setting value of select input date adf component programmaticaly
    Regards,
    Luis R.

  • Out of the blue, my AppleTV went to a screen that had two icons, Computers and Settings. Why won't it go the the usual TV screen with viewing options? Help!

    Out of the blue, my AppleTV went to a screen that had two icons, Computers and Settings. Why won't it go the the usual TV screen with viewing options? Help!

    Here's what finally worked for me with Apple TV 3rd generation. Out of the box, when setup with wi-fi, it breezed through without any issue. As soon as I powered down and connected it to another tv (same wi-fi network), it got stuck at setting date/time. The remote would help in getting out of it, but the home would only have "Computers" and "Settings" and pretty much useless except for AirPlay. Here's what I did to resolve this:
    1. On your main router, temporarily disable the firewall or set it to the lowest setting allowable (a reboot of the router maybe required).
    2. Restart apple tv via the "restart" option in the "General" option in the main settings menu.
    3. It should breeze through and not show the "Setting date/time" screen.
    4. Once it loads up properly, turn on your fire wall as before  (a reboot of the router maybe required).
    I think it worked for me out of the box, but auto-update to the latest software introduced this bug. So, everytime apple tv tries to synch with the time server, this issue will come back. To disable this, I turned off the "auto time synch" option in Settings -> General.
    I am fairly confident that I'd be able to use steps 1 through 4 anytime this recurs. Possible scenarios causing recurrence of this issue:
    1. Unplugging the power to apple tv or power failures.
    2. OS updates.
    3. Restoring apple tv using "Restore" or via micro-usb and iTunes to the lastest OS.
    Hope this helps. Please post if this works for you.

  • Why won't skype activate the web cam on my kindle ...

    Why won't skype activate the web cam on my kindle fire hd?

    The question has been answered but not that you like to hear.
    You have been using an iPhone since 2011 with an iCloud ID that is not yours, how do you explain that?
    I saw a message that said your phone was lost and erased, and I was asked to activate my iPhone with my Apple ID.
    Since you know it was lost but not by you, you have an iPhone that is not legitimate. Your receipt may get you out of trouble with the police but that doesn't make the iPhone yours.
    Activation Lock cannot be bypassed and  if the your story is true then you should sort it out with Best.
    Read this: http://support.apple.com/kb/HT5818

  • Why won't Apple activate the FM receiver feature of the Broadcom  BCM4335 chip?

    Why won't Apple activate the FM receiver feature of the Broadcom  BCM4335 chip?
    I paid for it, it uses less energy, less bandwidth, during emergencies, we would have radio access & FEMA would like it activated.
    I asked an Apple tech on chat and they said there is no FM capability on the phone.  I asked if my iPhone has a Broadcom chip and they ended the chat.  I had to give them my phone number twice, but they never called back with me back to answer the question.  According to NPR the chip is activated in other countries.

    could it be because the iphone6 don't have an Broadcom  BCM4335 chip?
    http://www.chipworks.com/en/technical-competitive-analysis/resources/blog/inside -the-iphone-6-and-iphone-6-plus-part-2/
    https://www.ifixit.com/Teardown/iPhone+6+Plus+Teardown/29206

  • Why won't cloaking hide the files?

    The title pretty much says it all. Why won't cloaking hide the files?
    I don't want to se the files I am cloaking at all when I cloak them, but they still appear, just with a red line through them.
    How do I rid myself of this eye sore?
    Thanks,
    Cy

    That much I understood. I would think that there would be some option that would extend cloaking to include removing it from view.
    In my case I use a versioning software that produces a file in each directory. (.MySCMServerInfo)
    It's a file I do not need to see or edit for any reason what-so-ever. So when the term cloaking is used I naturally think of hiding something from view, not an operation.
    I don't think I am the only person that feels this way. Or am I?
    Cy

  • Why won't you unlock the bootloader​?

    Toshiba, why won't you put an APK in the downloads section to unlock the bootloader. Explaining that it will void the warrantee and that you will no longer be able to receive I updates from the service station OTA.

    They don't care. Never another Toshiba for me:
    1. I had a 750GB Toshiba Cavio external HD that died with minimum usage after 11 months...
    2. This tablet has annoying light bleed and is locked.
    3. I have  PORTAGE R700 laptop - Annoying fan noise !
    Will never recommend Toshiba to any one !

  • Why won't iMac open the cd it just created?

    My intel iMac (07 build) won't play/ open the cd I just burned on it. !
    Older cds I created DO open, just fine.  Why won't this new one open? It is a cd-r.
    Does this mean that the burn did not happen? I have burned a cd-r, cd rw, and dvd - none of them will open.
    iI need to send a cd of my artwork to a gallery to be juried. If I can't open the cd on my iMac, will the galley be able to open it?   In other words - did I burn a cd and my iMac is just acting up?  Or did I NOT burn a cd, and my iMac is acting up?
    The message I get when I try to open the new cd is...." there is a problem. The Media is not supported" 
    and the iDVD icon shows up on the desktop.
    This is day two of my trying to figure this problem out  - can anyone help me?
    Thanks,
    artdough

    Use a drive cleaner to clean your superdrive.  See if that works.  If it does, use it every 3 months or so if you do a lot of burning. 

Maybe you are looking for

  • To Progressive Pic... Re: display

    Hi, Didn't get a chance to comment on your cracked display and it's closed now so I'm trying to communicate this way. I know it has the mini-VGA port, but I'm wondering about the resolution. Depending on your model (according to Mactracker): The orig

  • How do I add a user form that a user won't be logged in to use?

    Hey, I need to produce a form to be available to idm users that allows them to register for an account but have come across a few problems. I have amended the idm user interface login page to contain a link to a jsp called Account Registration. I wan

  • Possible compiler/FB Problem?

    I just upgraded to FB 2.0.1. After having to deinstall and reimport my project due to issues with the old project, I now have a very strange issue. When FB compiles and it detects an error,the Problems tab shows a description of the problem, but does

  • Why can't I download Cs6 Extended?

    I have the subscription to CS6 extended. I started a couple months ago then my computer get a virus and it prevented me from using photoshop. I recently repaired my computer but now for some reason I seem to have regular CS6. I am not able to use the

  • Error when saving a return PO

    Hi Gurus, I have created a Return PO and my duties are paid to the agent So condition types are created as Derlivery Cost.Now it is throwing an error Delivary cost cannot be negative.Let me know what needs to be done Thanks in Advance