Refer /applications/product/webapp/facility/WEB-INF/actions/facility/CountFacilityInventoryByProduct.groovy Here you got the code reference for creating a dynamic view getting data from it and then getting list which can be displayed on ftl/form-widget.
HTH! Rishi Solanki Enterprise Software Developer HotWax Media Pvt. Ltd. On Thu, Dec 24, 2009 at 2:42 PM, Gnanashankar Shanmugam < gn...@formativesolutions.co.in> wrote: > hi rishi, > thanks for your reply, can you send example of simple java code for dynamic > view creating to text field and one submit botton.. > > On Thu, Dec 24, 2009 at 2:35 PM, Rishi Solanki <rishisolan...@gmail.com > >wrote: > > > Hi Gnanashankar, > > After making the dynamic view in groovy/java file you can get the eli by > > applying findListIteratorByCondition method of delegator object. > > then on eli you have methods eli.getPartialList and eli.getCompleteList > > will > > gives you the list which then put into context or service result or > > request. > > On ftl you can then easly iterate that list and make display logic using > > the > > > > <#list anyList as entry> > > ${entry.key} > > </#list> > > Here key is field of that particular dynamic view prepared by you. > > > > Rishi Solanki > > Enterprise Software Developer > > HotWax Media Pvt. Ltd. > > > > > > On Thu, Dec 24, 2009 at 1:29 PM, Gnanashankar Shanmugam < > > gn...@formativesolutions.co.in> wrote: > > > > > hi friends, > > > I am new for ofbiz, I created component in hot-deploy.. in that > > component > > > i created testscreen, in that screen i am having *two text fields*, > > > one submit(*create*) *button*, i want to store value of two fields in * > > > database* through *java code*, after clicking submit button, the value > > > should display *below of screen or different screen* through > > > *.ftl*file..Given an Example code of above scenario..thanks in > > > advance.. > > > > > > -- > > > Gnanashankar Shanmugam > > > Formative Software Solutions Pvt. Ltd., > > > Chennai-61 > > > > > > > > > -- > Gnanashankar Shanmugam > Formative Software Solutions Pvt. Ltd., > Chennai-61 >