Empty Select In Form

This select is working fine except when the value coming back
from the DB is empty then nothing displays.
I am sure my syntax is just wrong or in the wrong place
var name_suffix = new
Spry.Data.XMLDataSet("includes/name_suffix.xml",
"Name_Suffix/suf/@name");
div spry:region="name_suffix" >
<select name="suffix" spry:repeatchildren="name_suffix"
spry:choose="choose">
<option spry:when="{name_suffix::ds_RowNumber} ==
{name_suffix::ds_CurrentRowNumber}" value="<?php echo
$edit_profile_row->getField('suffix'); ?>"
selected="selected"><?php echo
$edit_profile_row->getField('suffix'); ?></option>
<option spry:default="default"
value="{name_suffix::@name}">{name_prefix::@name}</option>
</select>
</div>
You can see this at
http://alephdev.pointinspace.com/
login in as
[email protected]
password: 123456
Then edit profile
Thanks

Hello,
This is normal to behave the way it does. Right now in the
dropdown I see a list of options, everyone having a correct value.
The value is extracted from the suffix @name attribute. However I
see that you want to display for each option the @name from the
prefix dataset. The name will be the same in this situation for all
the options equal with the value in the current row for the prefix
dataset. By default the current value is set to 0 which means that
all the options will display an empty entry, the first entry in
your dataset.
I'm not sure what is the result you try to achieve here and
what is the relationship between an suffix and a prefix. Isn't it
normal to display the same thing you have put as value for the
option tags?
Cristian

Similar Messages

  • Printer selection in Forms 10g

    Hello,
    I am looking for a suggestion, to realize a printer selection in Forms 10g.
    For a migration I have to replace the command
    win_api_dialog.select_printer with something similar.
    Some threads suggest to implement a java class.
    Under
    How i select printer in Forms9i
    exist an example.
    The implementation there is based on the JDK 1.4.
    I need an implementation based on JDK 1.3.
    Inside of the JDK 1.3 exist only a simple printer dialog.
    (compare http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4645377 )
    Probably exist the option to use the C-API of WebUtil. The C-API could be used to start a printer dialog of a dll. I like to avoid this option, but if you an example for that option, I appreciate to see an example for that.
    In all other respects, I hope on your suggestions.

    I invest some more time on that topic, but did not found a solution to display a printer selection on the client.
    The only thing that i found in forum was that you can read the standard printer out the registry. But I would need all local installed printers.
    I hope on your help.

  • Can we selectively flatten form fields in a PDF file?

    I have a PDF with some form fields in it. I want to selectively flatten a few form fields in the PDF using a java API. I have checked the documentation and found a method transformPDF in the OutputServiceService. But this method flattens all the form fields in the PDF document.
    Can we selectively flatten form fields in a PDF file? If yes how?
    This was possible in Adobe Document Server V6.
    Regards,
    Ragha

    You will need an event in the form that will indicate that you want the flattening done. Once you determine what that is it is simply a single statement for each field:
    fieldname.access = "readOnly";
    Now when the form is rendered, the user will not be able to get access to these fields.

  • BPS: Setting empty Selections in Variables

    Im Using Variables for the Selections of my Planninglevel. These Variables are filled by a User Exit.
    What do I have to do when I want to Leave the selections for a Variabel empty?
    By not using a Variable I would Type in # in the Slections of my Planninglevel, but how can I set it via ABAP-Coding.

    Hello Tobias,
    in BPS there's a difference between an empty selection (= all values) and # (= unassigned value only).
    If you want to set the exit variable to all values then return one range entry in eto_charsel (for example: I, BT, "0000", "9999"). If you need the unassigned value only then return an entry with I,EQ and leave low and high empty.
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Ignoring empty select-option inputs

    Hi all,
    Have 3 input select options as follows:
    select-options: so_retnr for vbak-vbeln.
    select-options: so_matnr for mara-matnr.
    select-options: so_bstnr for vbak-bstnk.
    Iam using the above 3 select options in the following select.
    Now the user can fill-in all the above select inputs or any 1 or 2 of them.
    In my select statement I want to use only those select-options filled in by the user so that it wont make a full table search for the empty select-option input.
    Is there any easy way to check that in the select statement.
      select vbakvbeln vbakbstnk vbakihrez vbakaudat vbak~auart
           vbapmatnr vbaparktx vbap~kwmeng into corresponding fields
           of table gt_zrritab from vbak inner join vbap on
            vbakvbeln = vbapvbeln
            where  vbak~vbeln in so_retnr and
                   vbap~matnr in so_matnr and
                    vbak~bstnk in so_bstnr and
                    vbak~auart = 'ZRR'.
    Regards
    P

    data: t_string type string.
    if not so_retnr[] is initial and not so_matnr[] is initial and not so_bstnr[] is initial.
      t_string = 'vbakvbeln IN so_retnr AND vbapmatnr IN so_matnr AND vbak~bstnk IN so_bstnr'.
    elseif not so_retnr[] is initial and not so_matnr[] is initial and so_bstnr[] is initial
    t_string = 'vbakvbeln IN so_retnr AND vbapmatnr IN so_matnr.
    elseif not so_retnr[] is initial and so_matnr[] is initial and not so_bstnr[] is initial
      t_string = 'vbakvbeln IN so_retnr AND vbakbstnk IN so_bstnr'.
    elseif.
    etc....
    endif.
      SELECT vbakvbeln vbakbstnk vbakihrez vbakaudat vbak~auart
      vbapmatnr vbaparktx vbap~kwmeng INTO CORRESPONDING FIELDS
      OF TABLE gt_zrritab FROM vbak INNER JOIN vbap ON
      vbakvbeln = vbapvbeln
      WHERE (t_string)
       AND vbak~auart = 'ZRR'.
    zashok

  • Multiple Selects on Form

    Several questions about multiple selects on Forms.
    I want to create a form with a multiple select list. I know I can do this if I based the form off a table, correct? I mean, I try but the form does not allow me to put multiple selects on a form based off a table
    So what I did was create a procedure that has a parameter of type owa_text.vc_arr, but the form freaks out. It just hangs at "Retrieving Form Data".
    So, what gives? Can I use multiple select lists on forms? If not, why have them in Portal?
    Rich

    Hi Richard,
    In Portal it's not possible to create a form with a multiselect.
    Oracle has remove this feature from Webdb. Don't ask me why.
    The Multiselect is now only available for the parameter forms or reports. You can use them in a where clause like WHERE DEPTNO in :v_dept.
    Regards
    Arnoud

  • Payload empty in creating form (wizard)

    Hi I have a proces that uses objects from the business catalog in order to build a human task worklist screen.
    After generated the taskform the first time successfully I updated some fields in the used data objects.
    After the update I tried to re-generate the task form but there is no payload to select anymore...help?
    The difficult thing is that there are no fault messages shown...
    jaime conejo

    Hi Jaime,
    Not completely sure what happened, but first off, if all you changed was an underlying business object - something that we've all had trouble with is how to refresh the payload in the Data Controls panel. If you regenerated the ADF form because you did not see the payload refreshed in this panel, here's how you could have done this. In the Data Controls panel, right click the data control that corresponds to your page (you have another issue if you do not see this) -> click "Edit Definition" -> click the "Refresh Data Control" button in the popup.
    What I think you might be saying is that you didn't see any fields on your form once you deployed the ADF project. If this is the case, open empty the jspx file in JDeveloper. In the Data Controls tab, expand the data control that corresponds to your autogenerated form (again - you have another issue if you don't see this) -> expand "getTaskDetails" -> expand "Return". Drag "Task" into your empty form -> click "Human Task" -> click "Complete Task with Payload".
    I'm sure to have missed what your issue is, but hopefully this is a start.
    Dan

  • SharePoint 2013 July 2014 CU - People Picker fields empty in Edit forms

    After applying the July 2014 CU for SharePoint server, I discovered that Person or Group (People Picker) fields are not populated with server values in list item Edit forms.  However, the field values can be viewed in list views
    and in Display forms.  I examined the client side code and determined that field data is not being returned from the server for Edit forms. 
    In a test environment, I uninstalled SharePoint 2013, reinstalled SP 2013 with SP1 and the issue went away.  I then applied the May 2014, June 2014, and July 2014 CUs.  The issue did not exist after applying the May and June CUs.  It
    did exist after applying the July 2014 CU.

    There is a workaround for this issue.  It's a little convoluted, but hey, it's SharePoint.  First, you must have a list that has at least one entry in it.
     To begin with, you must first
    have a list with at least one item in the list.
    Next you edit the item with a role that has at least Design privilege, but don't save your changes.
    Instead you Edit the page so you can then edit that web part.  You can edit the page by clicking on the cog icon and selecting Edit Page
    Edit the web part itself
    Under “Miscellaneous” section on the just exposed web part window, select "Server Render (Server Render)" in the drop down labeled “CSR Render Mode
    Click on “Apply” button within the web part
    Save
    I was told also the Sept CU would fix the issue but it is under review and to wait until the first of October.  Incidentally we found that if you put the entire list into Quick Edit mode, the issue does
    not appear.
    I hope this helps someone.

  • Data in dropdown list field are empty in PDF form

    Hi all.
    Viewing a pdf form created with SAP interactive Forms offline method, the data in the dropdown list field are empty.
    The data in the dropdown list field are generated by xml file produced by an abap report.
    The problem occurs opening the form with Adobe Reader 8.1 or higher. Using Adobe Reader release 7.0.9 everything is ok.
    Do you have any suggestion?
    Thanks in advanced.
    Best Regards.
    Moreno

    Hi Otto,
    the only release of Adobe Reader that work is 7.0.9. Release 8.1 and 9 have the same problem where the data in the dropdown list field are empty.
    At the end of the trace file in Adobe Reader 9.0.3 I find this error message:
    "Invalid version: The current version of the XFA template model exceeds the capability of Acrobat / Adobe Reader 7.0.5."
    The form has been created using Adobe Lifecycle Design 7.1.
    Any idea?
    Thanks
    Moreno

  • Upload/Select Menu Form

    I'm a rookie with a complex issue:
    I'm having trouble working through an upload/select option
    within my form. I have successfully created a form for a
    client to select from a variety of photos to create a new
    record in the database. Problem is, they want me to combine
    the menu selection with an option to upload a file to the
    server and record the filename within the database. I'm
    familiar with creating upload forms, but not in combination
    with a menu selection as an option and processing it. I told
    you I was a rookie.
    My db table 'staff' has several fields with one being
    'staff_photo' for the filename. I'm not sure how to combine
    the processing script with the current one I have. I've been
    piecing together bits to try to make this work, but I'm
    coming across some snags:
    #1 The record is not recording in the database, nor is the
    filename copying to the server.
    #2 None of my error messages are coming up if something is
    working incorrectly
    #3 After the script is successful, it should load up the
    page 'staff_list.php'.
    I was hoping to have had this figured out by now,
    considering I've been on this for over a week and still
    haven't found the solution. I hope someone can help me out
    with this.
    My form is as follows:
    [HTML]<form method="post" name="form1"
    enctype="multipart/form-data" action="<?php echo
    $editFormAction; ?>">
    <table width="80%" align="center" cellspacing="0"
    border="0">
    <tr valign="baseline">
    <td nowrap align="right">Select Photo:</td>
    <td><select name="staff_photo">
    <option value="">No photo</option>
    <?php buildImageList('../../photos/staff/'); ?>
    </select>
    <span class="small">   (If
    there is no photo
    available, please choose 'No-Phot-Available.jpg' or 'No
    photo')</span></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right">Upload Photo: </td>
    <td><input name="staff_photo" type="file" />
    </td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right">Name:</td>
    <td><input name="staff_name" type="text"
    class="widebox"
    value="" size="32" maxlength="150"></td>
    </tr>
    <tr valign="baseline">
    <td nowrap align="right"> </td>
    <td><input type="submit" value="Insert
    record"></td>
    </tr>
    </table>
    <input type="hidden" name="MM_insert" value="form1">
    <input name="staff_photo" type="hidden" id="staff_photo"
    />
    </form>[/HTML]
    And here's the process:
    [PHP]$editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
    $editFormAction .= "?" .
    htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) &&
    ($_POST["MM_insert"] ==
    "form1")) {
    define('UPLOAD_DIR', '../../photos/staff/');
    $file = str_replace(' ', '_',
    $_FILES['staff_photo']['name']);
    $permitted = array('image/gif', 'image/jpeg',
    'image/pjpeg', 'image/png');
    $typeOK = false;
    foreach ($permitted as $type) {
    if ($type == $_FILES['staff_photo']['type']) {
    $typeOK = true;
    break;
    if ($typeOK) {
    switch($_FILES['staff_photo']['error']) {
    case 0:
    if (!file_exists(UPLOAD_DIR.$file)) {
    $success =
    move_uploaded_file($_FILES['staff_photo']['name'],
    UPLOAD_DIR.$file);
    if ($success) {
    $insertSQL = sprintf("INSERT INTO staff (staff_name,
    staff_position, staff_subposition, staff_desc, staff_photo,
    staff_spec_1, staff_spec_2, staff_spec_3, staff_spec_4,
    staff_spec_5) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s,
    %s)",
    GetSQLValueString($_POST['staff_name'], "text"),
    GetSQLValueString($_POST['staff_position'], "text"),
    GetSQLValueString($_POST['staff_subposition'], "text"),
    GetSQLValueString($_POST['staff_desc'], "text"),
    GetSQLValueString($_POST['staff_photo'], "text"),
    GetSQLValueString($_POST['staff_spec_1'], "text"),
    GetSQLValueString($_POST['staff_spec_2'], "text"),
    GetSQLValueString($_POST['staff_spec_3'], "text"),
    GetSQLValueString($_POST['staff_spec_4'], "text"),
    GetSQLValueString($_POST['staff_spec_5'], "text"));
    mysql_select_db($database_wvgsadmin, $wvgsadmin);
    $Result1 = mysql_query($insertSQL, $wvgsadmin) or
    die(mysql_error());
    if ($Result1) {
    $insertGoTo = "staff_list.php";
    if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
    header(sprintf("Location: %s", $insertGoTo));
    } else {
    $result = "Error uploading $file. Please try again.";
    break;
    case 3:
    $result = "Error uploading $file. Please try again.";
    default:
    $result = "System error uploading $file. Contact
    webmaster.";
    } else {
    $result = "$file cannot be uploaded. Acceptable file
    type: .gif, .jpf, .png";
    ?>[/PHP]
    Thank you for your time!
    toad78

    Try this forum:
    PDF Forms

  • Surprise behaviour of select in forms 4.5

    Hi All,
    I am working on modification of a few old forms by some other programmer. a specific select statement is selecting null values
    SELECT max(DOCNO), max(UNIT_CODE) INTO STKSAL_DOCNO,:GROUP_COMP_CODE FROM DOHEAD WHERE DEFACNO = :BLOCK1.DOCNO;
    when I run the query in plsql it gives proper result but in forms its giving null values. it is finding the record as it is not going to exception but the values selected are null. seems to be a simple problem but i am not finding any solution. I've tries trim functions and all I could think of.
    Can anybody please suggest something??
    Thanks a lot in advance.
    Warm Regards
    Vivek Bajaj

    Hi,
    I'd check if the where clause really is what it needs to be
    Frank

  • Sub-selects in forms causing ora-24333

    We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of code
    exec_sql.parse(oracle_handle, oracle_cursor,
    'update vendor a
    set (status, vendor_type) =
    (select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
    '||'''I'''||','||'''INACTIVE'''||',
    '||'''D'''||','||'''DELETE'''||',
    '||'''F'''||','||'''FOREIGN'''||',
    '||'''N'''||','||'''RENUMBERED'''||',
    '||'''K'''||','||'''KEEPER'''||',
    rec_sttus),
    vndr_type
    from prch_vndr b
    where a.vendor_no = b.vndr_num)
    where vendor_no in
    (select vndr_num
    from prch_vndr)');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?
    Edited by: kwalker on Dec 26, 2012 2:00 PM
    Edited by: kwalker on Dec 26, 2012 2:00 PM

    Hi Kelly,
    We are running in a new 11g environment and are receiving an ora-24333 from forms with sub-selects. The same form works in 10g and the sql statement, itself, works in sqlplus. The following is an example of codeAlways post code snippets in &#123;code&#125; tags as explained in FAQ.
    >
    exec_sql.parse(oracle_handle, oracle_cursor,
    'update vendor a
    set (status, vendor_type) =
    (select decode(rec_sttus,'||''' '''||','||'''ACTIVE'''||',
    '||'''I'''||','||'''INACTIVE'''||',
    '||'''D'''||','||'''DELETE'''||',
    '||'''F'''||','||'''FOREIGN'''||',
    '||'''N'''||','||'''RENUMBERED'''||',
    '||'''K'''||','||'''KEEPER'''||',
    rec_sttus),
    vndr_type
    from prch_vndr b
    where a.vendor_no = b.vndr_num)
    where vendor_no in
    (select vndr_num
    from prch_vndr)');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);
    exec_sql.parse(oracle_handle, oracle_cursor, 'commit');
    t_temp := exec_sql.execute(oracle_handle, oracle_cursor);Any ideas where we might have a configuration setting missing or what has changed with 11g forms of which we are unaware?>
    a. EXEC_SQL package for simple updates looks like an overkill. EXECUTE IMMEDIATE will meet the requirement.
    b. The ORA-24333 error is related to data. Is the database and schema for 10g, SQLDeveloper and 11g the same? If they are different then check data in the database/schema used with Forms 11g.
    Cheers,

  • How to set default database selection in forms 11g

    Hello,
    In the past (Forms 10g), we could set the default database by setting userid=@dbname in formsweb.cfg.
    We have migrated to Forms 11g.
    When we set this parameter, we have the message ORA-01017 Invalid Username but the dbname is well set in the connection windows.
    Unfortunately, it generates an error message.
    How can we set the default database setting in forms 11g?
    Thanks in advance for your answer.

    If the middle tier platform is Windows set LOCAL to the db name in the Forms default.env. If the platform is Unix based, set TWO_TASK to the db name in the default.env. This will not prefill the db name field, but with this in place that field can be left empty. Alternatively, you need to create your own custom logon dialog.
    Example:
    LOCAL=dbname
    Or on Unix
    TWO_TASK=dbname
    Edited by: Michael Ferrante (Oracle) on Aug 7, 2012 12:05 PM

  • Empty row i forms mode

    If I set up a page in Table mode I can specify that I wish to have one or more empty rows when I open the page.
    In forms mode you don't have the same option. I would like to open the page and in case of no rows would like to have a new row added without having to push the Add Row button.
    Can this be done?

    The technique Ibrahim describes is in itself correct for general ADF apps. However, in this specific situation you should not use an invokeAction binding because that does not fire the JHeadstart-specific JhsPageLifecycle.onCreate method which truly sets the page in "createMode"ensuring the correct buttons and titles are displayed/hidden.
    See this thread for the correct technique:
    Re: Insert Mode
    Steven Davelaar,
    JHeadstart Team.

  • "Empty" Select Community screen in Nokia Social 1....

    Hi everyone,
    Recently I obtained N8 and am trying to use Nokia Social (I tried both 1.1 and 1.2).
    In "Select Community" screen, I guess Twitter and Facebook icons or such are supposed to be shown.  However in my case, no icons are displayed(only the title "Select community" and "Cancel" button are shown), so I can't choose / set up any social network services at all. 
    "Add social network" brings me the same empty screen.  I tried several uninstall / re-install and hard reset, but the problem won't go away.
    Of course I have Twitter / Facebook account, and Nokia account as well.
    Do you have any clue?
    Thanks in advance,
    MH

    I've post this also on other discussions threads!
    Have the same problem...
    Traced it back to the operator SIM.
    With my operator SIM the Community list stays empty.
    I tried a SIM I've purchased while on vacation in the Netherlands and upon starting Social I finally got the option to select either Facebook or Twitter.
    The dutch SIM is more than a year inactive, it didn't roam with my local operator and thus I had no GPRS connection. Social was working over WiFi.
    After configuring my facebook account and twitter and successfully using it, I tried it again with my Operator SIM but got the message "Your access to the service has expired. To upgrade your service, please contact your operator." when I try to access my facebook account via the Social application!
    Either now I have to bark at my GSM Operator to have them upgrade my SIM or enable something in their network or Nokia have to change the Social application so it can work regardless the Operator you may be using!
    Hopefully this sheds some light on how to fuurther proceed with this problem!
     Regards...

Maybe you are looking for

  • Enter 24 hour times in iCal.

    I use 24 hour time and I cannot figure out how to get iCal to allow me to enter times correctly. How does one do this? I can customize times in systems preferences so they display correctly but I cannot get a iCal to let me type them in.

  • Itunes 9.0 Am I screwed?

    First post. My Daughters I-pod touch locked up with a picture of the itunes logo and a USB cord on the screen. When i plugged it into my computer it took me right into my itunes library and said that I need to update to 9.0. I started the down load a

  • How to sync Nokia phone on macbook pro with OS 10.7

    I already use an iPhone 4 but sometimes like to use a simple phone next to it just for making calls and stuff. Now I think to buy a simple candybar Nokia phone (like C2-00 or C5 etc) which runs on Nokia OS. Hw can I sync my Address book and Calendar

  • Re: Refund on credit

    support.skype.com/en/faq/FA297/How-do-I-request-a-refund I needed to send a refund request ongoing year $40.68. Charged on 6/27/14. Please help. Thank you.

  • What is unique about online streaming of pbs video that causes it to stop to load the buffer every 40 seconds

    What is unique about PBS videos that results in the play stopping every 40 seconds to refill the buffer (ie the round circle appears) I have no trouble viewing hulu movies or ytube videos.  Is there a way of correcting this problem ? I have a ATT DSL