The setvar doesn't override the old empty value.

The setvar doesn’t override the old empty value.
Hello I am trying to mak a query with two variables.
Crew and the Section.
Crew might have an empty value.
If I run query with both values entered everything is OK.
When I leave Crew empty and run query it works correct for the first time.
But after running Crew with an empty value for once it doesnt have another value.
Once you leave Crew empty it is always recognized as empty and the values you enter dont change the result.
Does anybody have any idea?







xapp:form

<xapp:edit select=“valCrewSelected”/>
<xapp:setvar name=“filterCrew” scope=“session” value=“[ID/CrewName=‘${valCrewSelected$}’]” default=“” />
<xapp:edit select=“valSection”/>
<xapp:action type=“query” arg=“/Patient${filterCrew$}[Case/Inpatient[Section=‘${valSection$}’ and Date!=‘’ and DischargeDate=‘’]] sortby [ID/Name asc)” document=“patientList” form=“dform”>

Yatanlar

</xapp:action>
</xapp:form>



X-Application Version: 3.1.3
Tamino Version : 3.1.1
Platform : Win2k,
WebContainer : Tomcat 3.3a
JDK Version : 1.3.1

[This message was edited by Christian Freytag on 21 Mar 2003 at 12:35.]

Hi,

you have stumbled over an old bug … :slight_smile:

An other used had a different problem with variables and solving his problem
also solves your problem.

I will attached these bug fix and for installition instruction I would like
to refer you to the former post:
http://tamino.forums.softwareag.com/viewtopic.php?p=13250

I have one question to your post: Are your really use xapp:edit- tags for the input. Usually I would expect normal tags on the search page?

e.g.: <xapp:edit select=“valSection”/> ?
I would expect sumething like :

O.K. I hope this will solve your problem.

Bye
Thorsten
xapplication_313_variables.zip (5.91 KB)

Hello,

this bug is fixed with X-Application 4.1.1.

Bye,
Christian.