CFSELECT With XML Forms

I'm using cfselect with a "Please select..." option before
the query is displayed. This all works fine except my option as a
value="" which get translated in the rendered HTML as option
value="""" when what I want is a CF [empty
string].
Any thoughts how to return a empty string?
TIA

The following code returns an empty string as you can see
from the struct output:
<!--- Get the employee names from the database. --->
<!--- Use SQL to create a Name field with first and last
names. --->
<cfquery name = "GetAllEmployees" dataSource =
"cfdocexamples">
SELECT Emp_ID, EMail, Phone, Department, FirstName,
LastName, FirstName +' '
+lastName as Name
FROM Employees
GROUP BY Department, Emp_ID, EMail, Phone, FirstName,
LastName, FirstName
</cfquery>
<h2>cfselect Example</h2>
<!-- The cfif statement is true if the form was submitted.
Show the selected names. --->
<cfif IsDefined("form.employeeid")>
<!--- The form was submitted. --->
<h4>You Selected the following employees</h3>
<cfif form.employeeid IS "">
<!--- Select All option was selected. Show all employees.
--->
<cfoutput query="GetAllEmployees">
#name#<br>
Email: #email#<br><br>
</cfoutput>
<cfdump var="#form#">
<cfelse>
<!--- Use a query of queries to get the data for the
selected users.
Form.employeeid is a comma-delimited list of selected
employee IDs. --->
<cfquery name = "GetSelectedEmployees" dbtype="query">
SELECT Emp_ID, EMail, Phone, Department, FirstName,
LastName, FirstName
+' ' +lastName as Name
FROM GetAllEmployees
WHERE Emp_ID in (#form.employeeid#)
</cfquery>
<!--- Display the names and e-mail addresses from the
query. --->
<cfoutput query="GetSelectedEmployees">
#firstName# #lastName#<br>
Email: #email#<br>
<br>
</cfoutput>
</cfif>
</cfif>
<!--- The cfform tag posts back to the current page.
--->
<h3>Select one or more employees</h3>
<cfform action = "#CGI.SCRIPT_NAME#" format="xml">
<!--- Use cfselect to present the query's LastName
column, grouped by department.
Allow Multiple selections.--->
<cfselect
name = "employeeid"
size = "1"
multiple="yes"
required = "No"
query = "GetAllEmployees"
group="Department"
display ="name"
value ="emp_id"
queryPosition="Below" width="100">
<!--- Add an option to select all employees. --->
<option value = "">Select All</option>
</cfselect>
<cfinput type="submit" name="submit" label="Go"
value="Go">
</cfform>
struct (cfdump) output
EMPLOYEEID [empty string]
FIELDNAMES EMPLOYEEID,SUBMIT
SUBMIT Go

Similar Messages

  • Populating dynamic values in the combobox with XML form Builder.

    I am trying to  populate dynamic value in the combobox with xml form builder. I  see the document saying create property group and document property Id with respecitive values.  I am able to create the property group with system admin -> System config
    -> KM -> CM -> Global services  -> property Metadata -> groups  with new button. and I  am trying to create document property Id with value. I am not able to find the way to give  value in the property.   I am using  EP 7.0 Sp 14.  Please let me know how to sovel it

    Hi
    You can create new property metadata with System Admin > System Config > KM > CM > Global services > Property Metadata > Properties > New. Specify the values for this metadata as the ones you need to have in the combo box. Use allowed values parameter of the matadata to sepcify the values. Each metadata property will have unique property ID and you can map this property ID to your combo box in xml forms.
    Give it a try.
    Regards,
    Yoga

  • Problem with XML Forms

    Hello,
    We have EP6 SP2 with the latest patch.
    we are building a XML Form that the target url of it is to a page inside the portal and want to open it at the same brwser window.
    Thanks
    Asher Benbenisty

    Asher ,
    Take My redererShow.xsl file
    Yoav

  • Issue with XML form builder

    Hi All,
    1 ) My XML form builder is hanging up very very frequently (other than this, my portal is very fast).
    when I save the project its hangs up at "50% saving internal model". then I have to close the xml form builder and reopen it and save it again (when i do it repeatedly, some time it saves).
    when I click on "open Project" many times its not popup the project list, I have to close the xml form builder, logout from my portal and then login back.
    Its horrible to work on this, keeps on hanging every time. Any idea why its behaving like this? as I said, my portal is very fast except XML form builder.
    My Java version is 1.4.2_16... XML form builder verison is 6.xx
    2) when clicked on "preview" button, can we open a pcd iview??? my requirement is, when user clicks on preview button I need to open my application built in PDK java (created iview out of it, which shows xml form in a better way)?
    3) Can I show "Edit" form first other than "Renderer" form in News application? Presently it shows renderer form-> user has to click edit link -> then it will open Edit form. I want "Edit" form to be visible to the user in the first step itslef. is it possible?
    Thanks
    Pradeep
    Edited by: pradeep bondla on Nov 19, 2009 3:08 AM

    Hi.
    I suppose changing of the JDK, because 1.4.2_16 is not recommended version (see SAP  Note 716604). Refer to note 718901 - How to Change the JDK of the J2EE Engine.
    Also check what version of client JRE in use. (see Note 1341069 - XML Forms Builder not supported if client JRE is 1.6).
    Best regards,
    Aliaksandr Zhukau

  • Problem in XML Form Builder  development

    I am developing some KM Navigation iView template with XML Form Builder . I create a label , when it be clicked , relative files will be download to local PC. But the caption of the label is the complete path of the file, not "file down" which I expected.
    I need help, Regards.

    Sonal,
    You can check
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/fe743c74fa6449e10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ee639033-0801-0010-0883-b2c76b18583a
    James

  • Background image for XML Forms- RenderList Item

    Hi Everybody,
    We are working with XML Forms for creating News, and in this process the requirement is to set a<b> background image</b> for the form. It's working in Show Form but in <b>RenderListItem</b> it doesn't (as mnetioned by SAP in the documentation).
    Is there a work around for acheiving this?.
    Helpful answers will be rewarded with points.
    Thanks,
    Vasu.

    Hi vasu,
    Have u referred to the above document.......
    <b> u can set the background image in show form of xml.u can set in also that renderlistitem.
    change the background image property  & specify the image
    u want to display with.....</b>
    It is the place where u ve to display the news....
    Have u checked the path settings while creating ur News Explorer & News Browser Iviews....
    check one time the path settings also.This path helps u to navigate actually to the folder u want to refer with.
    Regards
    Bhargava

  • Display XML forms in a single window-URGENT!!!!!!!

    Hi,
    I created a project with XML forms Builder. It is working but the thing is that now i just want to display all the forms in the same window. Means that when i want to edit a new item instead of a new window i want to work in the same browser.
    Is that possible by configuring a resource renderer(NewsRenderer for example)?
    Otherwise do u know another solution?
    Please i need help.
    I found a topic in the forum (thread below) https://forums.sdn.sap.com/thread.jspa?threadID=46122&messageID=466382
    But i didn't understand all the points.
    So if someone know something please answer.
    Thx in advance.
    MJ

    Hi Robert,
    I did as u said: I downloaded the file <u>YOUR_PROJECT_NewsRenderListItem.xsl</u> but i didn't find any <b>_blank</b> in the text. Let's say i have exactly the same problem than in the previous thread, i don't know where to add the URL and where to replace _blank.
    I don't know where to find the method <u>CreateXSLDocument</u>(Detlev thread) and what is its interest?
    Can u please explain where i can find "xinfo=window.open(url,'_blank',params)"? It should be (according to Detlev) in <u>com.sapportals.wcm.app.xfbuilder.server.generator.xsldocs.CreateXSLDocument</u> but i really don't know how to reach this address.
    Thx a lot!!!
    best regards
    MJ

  • Show user´s name and lastname using XML Form Builder

    Hello
    I created a XML project with XML Form Builder and i have to show user´s name an lastname in RenderListItem form.Can anybody help me,please? Thanks

    Hi Unai,
    check out the description by Patricio in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=78716&messageID=1616027
    Hope this helps,
    Robert

  • Urgent - XML Form Builder - lnode

    Hi,
    Strange behaviour, i created a new XML Form Project and have defined a schema with some nodes (day, month, year, lead, body, link under root node), for data schema.
    I build the Edit form and run it, everything works fine until push save button, when i do this, i get an error message saying that "..star-tag link different from end-tag root...".
    I made some changes until i find that by simple removing the node link from data schema, everythings works fine, if put it again, gives the same error message.
    Is there any limitation of using a node link, under root node of data schema? Any one tried?
    EP6 SP11.
    Thanks and Regards,
    John

    Hi Darin,
    Changing the node name link to another think, was my first thought, but there are 2 issues:
    - What's the reason why a node named link doesn't work?(Looks like a "bug")
    - I have upgraded the portal from SR1 SP09 to SP11, and in SP09 i have already created some items with XML Form with this structure, and because of the upgrade, i have already to change all the XML Forms, because listShow and listEdit doesn't work anymore, and now, for some strange reason i can't see my old news, because doesn't accept de node named link and i can't rename the node named link, because this means that i have to re-save all old news items.
    Other think is, all XML Forms, incluind the standards ones, HTML editor are not working, clicking on any option available(Bold, Italic, ...), gives a message saying "[Object required]".
    If you get another thought on this, please tell me.
    Thanks and Regards,
    John

  • Multivalue XML Forms field

    Hello.
    we will need multiple values in user dialogs, mostly KM File references. We dont now on beforehand how many there will be per entry.
    And we want to do it with XML Forms.
    From what I read so far, I cannot tell whether this is possible at all, so please post your suggestions.
    regards
    Carsten

    Hi Carsten,
    you cannot create a form with a dynamic number of input fields or something similar. Anyhow, you can offer for example 20 input possibilities within the edit form and only those fields filled in will be presented in the show form, when mapping the content to labels, for example.
    Hope it helps
    Detlev

  • Display Xml forms

    Hi.
    I have next problem:
    In my application, user can create xml documents by xml forms. This generated xml files are stored in the KM.
    My application has another page in order to view/manage these documents.
    Clicking on the Context Menu, it appears a menu with an option called Edit. If Edit is clicked, a popup is displayed with the document in "xml forms" format.
    But if the link of the document is clicked, it is displayed a popup with the xml embedded, I mean document with the tag format,etc
    Does it exist the posibility that the same behavour occurs? I want that when link is clicked, popup is displayed with the document in "xml forms" format.
    Thanks in advance

    The document which you have created is of type XML but not using XML form builder. Hence you will get only XML tag format. In order to get XML edit format, it needs to be associated with some edit form in one of the XML projects.
    If you look into XML projects, you will find that there are style sheets been created for each of the forms i.e. edit, renderlist and show form.
    What you can try is .. define an XML form project with the data you want to store and in your application try to create XML schema simillar to what the form builder would have produced. So when you click on edit, it will able to associate with XML forms project which you had created.
    Regards,
    Mahesh

  • Accessing xml forms for anonymous user

    Hi all,
    Is it possible in any way to use the "news" made with XML-Forms on an External Facing Portal?
    I have created one page in XML form builder and assigned that page for anonymous user. Initially that page is visible to anonymous user. If i click any rendered list item it's asking Authentication-Information. Isn't it possible to let them read the News without authentification?
    i have set all permissionsm for anonymous users?
    How can i solve that problem.
    Thanks& Regards
    Hemalatha J

    Hi,
    this is possible. Please have a look at note 837898 first. But this note doesn't solve it completly.
    By default the xmlformpreview-servlet which is used to display the news is not accessible for anonymous users. Try this:
    - Create an iview in the pcd (any locaation) from par com.sap.km.cm.par and component xmlformpreview
    - set the authentication scheme to anonymous
    - give anonymous users permissions in the permission configuration of the iView
    - open the iView in Preview Mode and copy the url of the iview from /irj on (something like /irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fxmlformpreview)
    - Go to System Administration --> System Configuration --> Knowledge Management --> Content Mangagement --> Global Services (switch to advanced mode here) --> URL Generator service: set the iView-URL as the value of the "Preview Servlet" --> save
    - test it
    Regards,
    Norbert

  • Xml forms not rendered in default layout set - urgent

    Hi guys,
    I've to display several properties and to provide the rating and feedback service in conjunction with xml forms because a "NewsRenderer" doesn't support the display of additional properties.
    So I tried to use one of the default layout sets (e.g. "Consumer Explorer") but the <b>xml forms are not rendered after selecting the "contentLink"</b> (displays raw content of xml document). I'm looking quite a long for a command that opens and renders the xml forms in a new window - without any success...
    Please help! TIA
    Regards
    Joerg

    hi,
    you have to create a XMLForms Repository Filter. Check this link:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/21/8df33eef091f39e10000000a114084/frameset.htm">XMLForms Repository Filter</a>

  • XML forms: attachment size

    Hello,
    we are working with XML forms to create news. Also we have the possibility to attach km document to this news. The attachments are displayed as a link on the end of the news.
    No my question. Is it possible to show the size of this attachment? Has anyone experience with this? If I use the properties I get only values from the xml file but not from the attached document.
    Regards,
    Philipp

    You say you have troubles but, what kind of troubles?
    An exception is thrown?
    The read ends prematurely?

  • XML forms - send email

    Dear friends,
       Using xml forms editor, is it possible to create a button which, when clicked, will send emails to selected recepients? Does xml forms provide this functionality?
    Any help is appreciated,
    Thanks,
      Mandar

    Hi Patricio,
    Thanks for your prompt response. I am not trying to show documents using xml forms. What I want to achieve is
    Create a form which will have send button, which when clicked sends out emails to selected recepients. I was thinking of creating a workflow template using xml forms. Is this something possible?
    I am too familiar with xml forms so any input from your side is valuable to me.
    Thanks and Regards,
      Mandar

Maybe you are looking for

  • Is there a way to connect my ipad 2 directly to the apple TV?

    Is there any kind of cable that will connect my iPad2 directly to the apple TV and stream what is going on on my ipad onto the TV screen? Or its done wirelessly only?  Thank you in advance!

  • BlackBerry Desktop Software Is their a download for Mac desktop Os 10.5.8

    Hi I was wondering if their is an archive within Blackberry where I could download a BlackBerry Desktop Software for my mac. I am useing 10.5.8, the new version is for 10.6 or higher. Regards Vintage Tec head 8088

  • Problem with Editing a Table

    Hi All,      I am working with normal tables with one column as editable using inputfield in the context binding for that field..When i update one field of  that column depending on the lead selection all the records of the table corresponding to fie

  • No Display, just blank screen in itunes store ver. 10.7

    Hi All, so when i log into itunes Store i get a blank screen in the middle.  the side bar shows, but the middle is blank and the little tool bar with home, music, appstore etc also not there. i am using windows 7 and upgraded to latest itunes 10.7 it

  • TECHNO FUNCTIONAL (SD-ABAP)

    Q: hI FRIENDS... IAM HAVING GOOD WORKING EXPERIANCE ACROSS ALL THE ABAP TOOLS.     ANY BODY SEND ME THE REQUIRED SKILL SETS AND THE AREAS (DOCUMENTATION IF ANY) WHERE I HAVE TO CONCENTRATE AS SD AN ABAP CONSULTANT...?