You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "joelfradkin@gmail.com" <jo...@gmail.com> on 2014/11/05 21:52:07 UTC

findorders.groovy

Silly question, but how does this get the data for the list?
I can see 
orderList = request.getAttribute("orderList");
context.orderList = orderList;
So obviously this is where it sets the context, but I never see an actual
see where it gets the data.
Sorry for the dumb questions, but I am still learning.

I wanted to add a date range. I know I saw a list reference to using jquery
calander in ftl I even copied it, but cant find it now on list or where I
copied it. I did find some google.

If I get it working can I just load it in find orders where it is setting
the dates? 
context.thruDateStr = toStr; Where toStr is from a entry rather than the
embedded min and max calcs.

I am going to do a PDF with a Total, unless there is already a P.O. report I
missed one of you guys can mention?

I want to do something like this for receiving as well. Not sure there is
any interface for just looking at what has been received? I know where I can
go to enter a receipt, I use the quick receive from the P.O.



-----
Joel Fradkin
--
View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findorders.groovy

Posted by "joelfradkin@gmail.com" <jo...@gmail.com>.
Now I am even more confused.
I can see the date fields I uncommented on the find order ftl is named 
minDate
but minDate is not in the findorders.groovy.
Obviously I am missing something. I was just getting comfortable with groovy
and ftl.



-----
Joel Fradkin
--
View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879p4657883.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findorders.groovy

Posted by "joelfradkin@gmail.com" <jo...@gmail.com>.
Ok I am just plain dumb.
Sorry I had commented out the date in the find.
So it was there and working.
Still would like to understand how orderlist is generated.
but I got what I needed (was there all the time, I had just removed it).



-----
Joel Fradkin
--
View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879p4657882.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findorders.groovy

Posted by "joelfradkin@gmail.com" <jo...@gmail.com>.
I did find 
                  <@htmlTemplate.renderDateTimeField name="fromDate"
event="" action="" className="" alert="" title="Format: yyyy-MM-dd
HH:mm:ss.SSS" value="" size="25" maxlength="30" id="fromDate1"
dateType="date" shortDateInput=false timeDropdownParamName=""
defaultDateTimeString="" localizedIconTitle="" timeDropdown=""
timeHourName="" classString="" hour1="" hour2="" timeMinutesName=""
minutes="" isTwelveHour="" ampmName="" amSelected="" pmSelected=""
compositeType="" formName=""/>

for entering date in a ftl, like it better than what I had from google.
It used

<input type='text' name='ThruDate' id='ThruDate' 
value='${requestParameters.ThruDate?if_exists}'/>
and




-----
Joel Fradkin
--
View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879p4657880.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: findorders.groovy

Posted by Jacques Le Roux <ja...@les7arts.com>.
You can propose a Jira if you think it fits and have a patch, then we will see there

Jacques

Le 06/11/2014 16:09, joelfradkin@gmail.com a écrit :
> I found my answer thanks to grep.
> There is a java service findorders that sets the list.
> For some reason it does not have createdBy, so I am adding that, also it
> does not work when userLoginId is populated (at least with my users who have
> a comma in the ID like last, first.
> In any case looking in controller I found
> searchorders
> And that calls the service and the groovy gets it using the request.
> I was confused because I did not catch the switch from findorders to
> searchorders.
> Maybe it will help someone be less confused.
> Not sure if any one else has the same issue with the search using
> userloginid.
> If they confirm it is an issue should be put in a Jirra, I am going to try
> and fix it for my use, as I figured clients would want to know who ordered
> what.
>
>
>
> -----
> Joel Fradkin
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879p4657925.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Re: findorders.groovy

Posted by "joelfradkin@gmail.com" <jo...@gmail.com>.
I found my answer thanks to grep.
There is a java service findorders that sets the list.
For some reason it does not have createdBy, so I am adding that, also it
does not work when userLoginId is populated (at least with my users who have
a comma in the ID like last, first.
In any case looking in controller I found 
searchorders
And that calls the service and the groovy gets it using the request.
I was confused because I did not catch the switch from findorders to
searchorders.
Maybe it will help someone be less confused.
Not sure if any one else has the same issue with the search using
userloginid.
If they confirm it is an issue should be put in a Jirra, I am going to try
and fix it for my use, as I figured clients would want to know who ordered
what.



-----
Joel Fradkin
--
View this message in context: http://ofbiz.135035.n4.nabble.com/findorders-groovy-tp4657879p4657925.html
Sent from the OFBiz - User mailing list archive at Nabble.com.