Thanks for the advice, but I can't figure out how to use this.  Below is the 
tag that I am using.  I see Concept ID number show up as a label, but there is 
nothing to click on to bring up the concept search widget.  I have looked 
around for other uses of openmrs_tag:conceptField but they haven't helped me 
understand how to use it.

<openmrs_tag:conceptField formFieldName="concept" 
searchLabel="draftforms.conceptIdNum" showAnswers="true" showOther="true"/>

Also, I looked in the Firefox error console as you suggested.  Using the 
conceptField tag, I get the error "dojo is not defined".  I do not get that 
error when using the fieldGen tag.  In that case, I get:  disabledZone.style is 
undefined.

Thanks again,
  Barbara

On Aug 11, 2011, at 7:35 AM, Ben Wolfe wrote:

> Check the Error Console in Firefox, but most likely its because a DWR import 
> is missing.
> 
> You should <openmrs_tag:conceptField... instead of fieldGen directly.  The 
> tag file will do the dwr imports for you.  See the conceptField.tag file for 
> examples of whats around the fieldgen tag.
> 
> Ben
> 
> On Wed, Aug 10, 2011 at 11:19 PM, Barbara Lerner <[email protected]> 
> wrote:
> I am trying to use fieldgen to display a concept id widget.  The following 
> code exists on one page and works:
> 
> <spring:bind path="item.concept">
>     <openmrs:fieldGen type="org.openmrs.Concept" formFieldName="concept" 
> val="${status.editor.value}" />
>     <c:if test="${status.errorMessage != ''}"><span 
> class="error">${status.errorMessage}</span></c:if>
> </spring:bind>
> 
> What is initially displayed to the user is a box that says "Select" in it.  
> When the user clicks on this box, a popup shows up where the user can type a 
> concept to search.  For example, typing "blo" results in the following:
> 
> <PastedGraphic-1.tiff>
> 
> I would like to do something similar on another page but the identical code 
> does not work there.  Instead, I see the select button.  When I click on it, 
> the window comes up, but when I enter a term, no results appear:
> 
> <PastedGraphic-2.tiff>
> 
> There is a variable on this page named item and it has a concept field.  The 
> class of the item has an initBinder method that is identical to the one for 
> the class on the page where this works.  What am I missing?
> 
> Thanks for your help.
>   Barbara
> 
> ------------------
> 
> Barbara Lerner
> Associate Professor
> Computer Science Dept.
> Mt. Holyoke College
> 
> 
> 
> 
> 
> 
> Click here to unsubscribe from OpenMRS Developers' mailing list
> 
> Click here to unsubscribe from OpenMRS Developers' mailing list

------------------

Barbara Lerner
Associate Professor
Computer Science Dept.
Mt. Holyoke College







_________________________________________

To unsubscribe from OpenMRS Developers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-devel-l" in the  body (not 
the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-devel-l]

Reply via email to