tag:blogger.com,1999:blog-5874979429188093780.post2218564978655283726..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Master-Detail with One IteratorAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5874979429188093780.post-262463063530383392017-07-28T08:17:23.936+02:002017-07-28T08:17:23.936+02:00 #{fn:length(item.Rewards)}
Rewards collections r... #{fn:length(item.Rewards)}<br /><br />Rewards collections returning only one record, but length function returning 100. If collections return more than one record then length function returning correct value. Issue with only collection with one record.<br />Can you please help.<br /><br />Thanks,<br />RameshRAMESHhttps://www.blogger.com/profile/15287821531273263153noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-22608236288644012312015-05-27T22:35:12.569+02:002015-05-27T22:35:12.569+02:00hi Andrejus,
i did it and it worked pretty well.
...hi Andrejus,<br /><br />i did it and it worked pretty well.<br />but now i want to select the detailed item {departmentName}<br />through the managed bean..<br />is there a way i can do that?<br /><br />Thanks.Anonymoushttps://www.blogger.com/profile/13359305013347141888noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-38869938129271440002013-05-16T20:09:59.086+02:002013-05-16T20:09:59.086+02:00Hi
I have two read only voew objects with a view ...Hi <br />I have two read only voew objects with a view link between them.<br />I have the Retain View Link Accesor option enabled for the parent VO.<br />Created a Tree binding and able to load the page and show the tree.<br /> fillingIterator =(DCIteratorBinding)contain.get("FillingBillCodeROVOIterator");<br /> fillingIteratorRoSetIterator = fillingIterator.getViewObject().createRowSetIterator(null);<br /> while(fillingIteratorRoSetIterator.hasNext()){<br /> fillingRow = (FillingBillCodeROVORowImpl)fillingIteratorRoSetIterator.next();<br /> <br /> RowIterator it = fillingRow.getFillingBlackBoxROVO();<br /> Row currRow = null;<br /> while(it.hasNext()){<br /> currRow = it.next();<br />}<br /> <br />But when I am trying to iterate through the child view link acessor, it is not able to find the child rows.<br /><br />If I remove the option it is able to find it.<br />Any help would be highly appreciated<br /><br />Thanks and Regards<br />Madhu KrishnaMadhu Krishnahttps://www.blogger.com/profile/12058361808903566733noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-2454395512828169932013-04-24T00:10:58.463+02:002013-04-24T00:10:58.463+02:00Hi Andrejus,
I've similar usecase in my curren...Hi Andrejus,<br />I've similar usecase in my current project. I've master detail scenarion at 3 levels. If I run the page normally, it shows the data at all the 3 levels. If I use af:query panel to show the page, the page displays the data for the 2 levels only.<br /><br />In simple, I added Employees as the child for the Departments and used af:iterator to show the employees for each Department in the same page (assume as LocDeptEmp page). If I run the page, the page shows the employees data along with Departments. <br /><br />Now created a Search page for the locations. The locationId in search results table is a command link when clicked navigates you to the above page (LocDeptEmp page). Now the LocDeptEmp.jspx page shows only the Departments page not the employees data.<br /><br />I can upload the testcase. <br /><br />Thanks,<br />LakshmanTesthttps://www.blogger.com/profile/08833772808114896485noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-72646473082380921622013-01-13T20:10:33.386+01:002013-01-13T20:10:33.386+01:00Yes, it should work to call createInsert for detai...Yes, it should work to call createInsert for detail data.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-65801949968035484292013-01-12T14:09:52.569+01:002013-01-12T14:09:52.569+01:00Andrejus,
Is it possible to use the datacontrol m...Andrejus,<br /><br />Is it possible to use the datacontrol methods in the child iterator? i.e. "createInsert" method.<br /><br />I'm using an table inside an iterator. I can retrieve data normally, but I'm not sure how I'd call the methods.<br /><br />Thanks in advance!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-81749487588702321262012-02-06T08:21:57.764+01:002012-02-06T08:21:57.764+01:00You can write managed bean method, where you could...You can write managed bean method, where you could convert into required type - call this method instead of accessing expression directly.<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-7738134991867895502012-02-04T22:59:38.797+01:002012-02-04T22:59:38.797+01:00Andrejus,
In this situation i can access the len...Andrejus,<br /><br /><br />In this situation i can access the length of the nested collection<br /><br />af:outputText value="total tels: #{fn:length(row.telefones)}" id="ds2" /<br /><br />but in foreach statement<br /><br />af:forEach begin="0" end="#{fn:length(row.telefones)}" ....<br /><br />i can't...<br /><br />Using the elresolver in a managed bean such as <br /><br />List l = context.getApplication().evaluateExpressionGet(context, "#{row.telefones}", List.class)); <br /><br />gives me a null object.<br /><br />I think that issue is related to the evaluation process or not ? How we can resolve this ?<br /><br />thanks,<br /><br />ClaudioAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-13441000854433738452012-02-04T16:18:31.052+01:002012-02-04T16:18:31.052+01:00i achieved this with varStatus in foreach:
af:sel...i achieved this with varStatus in foreach:<br /><br />af:selectOneChoice id="soc1"<br /> af:forEach begin="0" end="5" varStatus="tel"<br /> af:selectItem label="#{row.telefones[tel.index].ddd} #{row.telefones[tel.index].numero}" value="#{row.telefones[tel.index].numero}" id="si3"/<br /> /af:forEach<br /><br />/af:selectOneChoice<br /><br />but now i cant get the size of the nested collection. I tried row.telefones.estimateRowCout but gives me a numberformatexception. Any ideas ?<br /><br />thanks<br /><br />ClaudioAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-43415864618692151192012-02-04T15:42:25.837+01:002012-02-04T15:42:25.837+01:00How can i show a selectonechoice or other lists in...How can i show a selectonechoice or other lists instead of output labels ? af:iterator cannot be used inside of these components, and af:foreach doesnt work.<br /><br />Thanks<br /><br />ClaudioAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-13562383842977630172012-01-20T18:15:53.465+01:002012-01-20T18:15:53.465+01:00Andrejus,
This is nice article.
Can i do the sam...Andrejus, <br /><br />This is nice article.<br />Can i do the samething with JavaDataControls? Especially what is the equivalent step for the relationship step?<br /><br />Thanks<br />SriSKhttps://www.blogger.com/profile/11980259674630637194noreply@blogger.com