My memory is pretty vague on this but the parameters from the initial add to
cart call are stashed in the session while the survey is sent to the user.
Once the user completes the survey and submits it then the parameters are
pulled back out of the session and the add to cart call proceeds as n
In FTL:
${context}
In screen widget:
-Adrian
On 5/4/2011 10:23 AM, Justin Robinson wrote:
Now I have another problem also related to the context and what's avaiable
at times in between requests.
When a survey is encountered attached to the product being added to the cart
in, addOrderItem in
Now I have another problem also related to the context and what's avaiable
at times in between requests.
When a survey is encountered attached to the product being added to the cart
in, addOrderItem in OrderEvents, the addorderItem service returns "survey"
which then calls the ftl & groovy script t
There hasn't been a lot of interest in that feature, so it isn't totally
implemented.
Basically don't use the entity-alias attribute on the condition-expr element,
and make sure the field-name matches an alias on the view-entity (ie to do a
condition on a field it must be aliased for now).
-D
I agree with Mr leRoux because there is many problems when you use other data
base, i used postgresql and i didn't find this problem, so i you need a
help about how to change the database to the prostgresql, i can send you a
document wich you will find all the details
--
View this message in co
Brilliant thanks...for saving me some time... been reading the freemarker
manual & looking at the the ofbiz freemarker framework all afternoon.
*That code was on OrderEvents but I moved it to a groovy script, were all
the parameters gotten from the request seem to be available anyway.*
On Wed, May
You need to put it in the screen context and not in the request attributes, if
you're using groovy then it's just:
context.surveyWrapper = surveyWrapper
Reason being that the request attributes (and session attributes and
parameters) have already been placed in the context at the start of the sc
surveyWrapper?has_content always returns false no matter that the
debug shows that it's not null when it's set.
Have tried setting it as a session attribute, with no effect.
Am really stumped on this one no idea what to tryAny ideas?
the ftl:
<#-- Render the survey -->
<
Le 04/05/2011 05:18, Leon2 a écrit :
The exception throwed in backend is something like:
RROR: parsing file: ERROR parsing Entity Xml file:
org.ofbiz.entity.GenericEntityException: Error while inserting:
[GenericEntity:Person][createdStamp,2011-04-28
11:09:55.29(java.sql.Timestamp)][createdTxStam
OK, it seems that FF4 has some problem with javascript on certain sites. At least another one than Jira.
Better strategy: keep cool and wait a new release, alternative: spend a lot of hours to find a temporary solution :/
Jacques
From: "Jacques Le Roux"
Using Firefox 4 w/out any addons activ
Could you try with Postgres or Derby 10.5?
Jacques
From: "Leon2"
The exception throwed in backend is something like:
RROR: parsing file: ERROR parsing Entity Xml file:
org.ofbiz.entity.GenericEntityException: Error while inserting:
[GenericEntity:Person][createdStamp,2011-04-28
11:09:55.29(jav
11 matches
Mail list logo