Second Level Caching
I am new to flex. I created one app which has some views. Which calls a web service to get data from my database. When I run this app, as its waiting for the data, a timer icon comes up indicating its waiting. I also implemented a Gantt Chart which was written for the most part with Actionscript. I noticed it never gives me that timer and if the data is not loaded, it just does not load it. My real question is what settings did the gantt chart set so it no longer waits.
Here is the issue. I have class A which contains a list of Class B objects. If in my app, I instantiate a new Class B object and persist it, I noticed that when I reload the app the new Class B object is no longer listed in my Class A object. I did some reading and learned this had something to do with Second Level Cache. Because I updated the Class B, the Class A was not updated and so when I reloaded the App, the App just got what was in Cache which was the old Class A object containing the old list of Class B objects. Well, I turned off Second Level Cache and walla, my problem went away. Cool. Oh, wait, when I loaded the Gantt Chart, it no longer would load the data. It didnt wait for it. So, when I turned the Second Level Cache back on, now my Gantt Chart loaded the data on the second refresh because now the data was in L2 Cache. So, now I am wondering how to solve my problem. One idea was to turn off or no whatever is turned off or on in my Gantt chart so it does wait for the data. But I didnt write the Gantt Chart code and I am too new to know how to do this. Would Someone help me with this?
No, it was not the backend. And I still do not have a good answer. I ended up turning off 2nd Level Caching so my backend updates were available instantly. However, as stated before, my gantt Chart did not wait for the data to be available and so when it rendered the chart, it rendered it with no data. Since the chart extended UIComponent and updateDisplayList which was what was being called to render the chart to begin with, I added a public function which called updateDisplayList and then added a event on the callresult so when the data was done loading, I called the new function which called the updateDisplayList which rendered the chart a second time but this time with the data. Its not graceful because it actually renders the chart twice at startup. But it did get the job done. Maybe one day when I am better at Action Script, I will understand how to get this component to wait til the data is loaded before it renders it. But I am not there now. Of course, maybe someone will understand my question and help me. that would be nice too.
Similar Messages
-
Problem with open in new window for second level tab
Hi Friends,
I am using 2 level tabs in my application. In my second level tab when i right click and select *open in new
window* it is giving Page not found error. But for the first level tabs it is working correctly. How can i fix this so
that either i can show the page when right click the tab and select open in new window or disable the right clicking
for the second level tabs. Please help,
Thanks
JeevHi,
I don't think its exactly possible, as tabs use javascript:doSubmit('somevalue'); and you can not open javascript in a new window, as javascript usually references the current page you are on, and since you open the javascript in a new window, it doesn't know what to reference. The most helpful thread I found was : Re: Open other tab in a new window (ATD reply, third from the bottom).
Ta,
Trent
Edited by: tr3nton on Dec 3, 2009 4:19 PM; Hari beat me to linking to the correct thread, my bad. -
Linked report from second level drill-down level
Hi,
I have a report with two drill-down levels, Dept Id and Job Id.
The requirement is when I am on Job Id drill level; I have to call another report when I click on any of the Job Id. This Job Id is passed to another report and the report is filtered based on that Job Id.
I created a hyperlink on Job Id drill down level successfully. But the problem is I am unable to go to the first level i.e Dept Id. Actually the hyperlink is displayed and the up arrow is not visible to go to the first level.
Is there any way where after creating a link on second level and opening the report in a new window, the drill up functionality can be maintained?
I am using Business Objects XI 3.1 version.
Thank you.hi
there is another way to drill down the report of web intelligence.for that we have to customize in the universe level create a folder in custom hierarchy and add your two objects to that folder, i.e empid. and deptid. the order of these objects should be in the way the drilling happens that means if you want to drill down from empid. to deptid. then empid. should be the first object of the folder,save and export the universe to the CMS.Then it ready to use for webi report.Build the query for the report and enable the drill option in the report.Now the report is ready for your requirement.
thanks & regards
Sreekanth K -
Problems with Second level drop downs
Hi, I'm having problems with the second level of my drop down
menu. It's showing up when you hit the first level. Any ideas what
I'm doing wrong?
http://www.graphicvisionsinc.com/test/Solved it!
For info, updating from FCS 1.1 to FCS 1.1.1 solved this problem! -
[SOLVED] ADF BC : View Object "second level" Entity reference issue
hi
If I insert a row in a View Object that uses "two levels" of Entity references, the attributes of the Entity on the "second level" don't get a value.
Consider these tables:
MY_ROW (MY_ROW_ID, MY_ROW_STUFF, MY_ROW_LU1_ID)
MY_ROW_LU1 (MY_ROW_LU1_ID, MY_ROW_LU1_STUFF, MY_ROW_LU1_LU1_ID)
MY_ROW_LU1_LU1 (MY_ROW_LU1_LU1_ID, MY_ROW_LU1_LU1_STUFF)
Where MY_ROW.MY_ROW_LU1_ID is a "look-up" in MY_ROW_LU1 and MY_ROW_LU1.MY_ROW_LU1_LU1_ID is a "second level look-up" in MY_ROW_LU1_LU1.
I created default Entities and Associations on these tables and a View Object that uses all 3 Entities (MyRow as Updatable, MyRowLu1 and MyRowLu1Lu1 as Reference).
See example code in
http://verveja.footsteps.be/~verveja/files/oracle/ViewObjectEntityReferenceIssue-v0.03.zip
(contains no Java code, all out-of-the-box ADF BC)
problem scenario:
If run the MyRowService Application Module in the Oracle Business Component Browser and "open" the MyRowViewAll View Object instance, I get the rows and their related "look-up values".
If I click the "Insert a new record" button and fill out values for MyRowId, MyRowStuf and MyRowLu1IdEntity, I only get "look-up" values for the "first level". While the "second level" stays empty.
For example, a MyRowLu1IdEntity of "2003" gives a MyRowLu1Stuff value of "2003 stuff", but no value in MyRowLu1Lu1Stuff.
What am I doing wrong? What should I change to also get a value in the "second level" MyRowLu1Lu1Stuff attribute?
many thanks
Jan VerveckenJan,
If you create a view object on Emp and Dept, with Dept as a reference entity, you might choose to build the view object to only include the:
Emp.Empno (required, since it's the PK of Emp entity usage)
Emp.Ename (included since you want to show the ename)
Dept.Deptno (required, since it's the PK of the Dept entity usage)
Dept.Dname (included since you want to show the dname)
The wizard enforces the inclusion of the required attributes above.
When you run this view object, a join is performed and you see the reference data.
Now, if you want to allow the user to UPDATE the reference data, you need to add one more attribute to the list of attributes:
Emp.Empno
Emp.Ename
Emp.Deptno (To allow user to change Deptno employee belongs to)Dept.Deptno
Dept.Dname
At this point, not only is the join performed for you, but the ADF BC reference mechanism reacts to any modification of the Emp.Deptno attribute, correctly showing the reference information for that new foreign-key-referenced department (even before commiting and requerying, at which time the SQL join would pickup that correct, related information).
The "second level" problem you describe in this thread is simply the same issue described here as a master/first-level-detail situation, taken to its logical next step. If you want the end-user to be able to change the second-level detail to which the first-level-detail is associated, you need to include the first-level-detail's foreign key attributes in the view object's select list. Otherwise, there is no foreign key attribute whose value-change event the framework can react to in order to coordinate the related reference data in the row.
I've blogged a link to a working example of a four-level reference information view object here:
http://radio.weblogs.com/0118231/2007/05/09.html#a818
based on the HR schema. -
Tree View Second level is not displaying bind parameter
Studio Edition Version 11.1.2.2.0appears this problem is addressed in
http://dailydevfixes.blogspot.com/2011/07/setting-bind-parameters-on-hierarchy-of.html
unfortunately I must be missing something.
as a test using the hr schema
I was doing a tree view with hire date as the first level then the employee id, last name and first name as the second level.
I hard coded employee id of 187 on a bean called by a button.
the first level is updated unfortunately the second level is not (employee id 107 should not show up)
--1999-02-07
----- 187 Cabrio Anthony
----- 107 Lorentz Dianahere is my bean the first level is updated but the second level is not not quite sure what I am missing
public void ButtonClick(ActionEvent actionEvent) {
BindingContext bindingctx = BindingContext.getCurrent();
BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("ParentVO1Iterator");
ViewObject Parentvo =dciter.getViewObject();
Parentvo.setNamedWhereClauseParam("empid",187);
Parentvo.executeQuery();
AttributeDef attrDef = Parentvo.findAttributeDef("ChildVO");
ViewObject childvo = attrDef.getAccessorVO(Parentvo);
childvo.setNamedWhereClauseParam("empid",187);
childvo.executeQuery();
AdfFacesContext adfFCtx = AdfFacesContext.getCurrentInstance();
adfFCtx.addPartialTarget(treeupdate);
}here is the query for the parent view object.
select trunc(hire_date) hire_dt
from employees
where :empid is null or employee_id = :empid
group by trunc(hire_date)here is the query for the child view object
select trunc(hire_date) hire_dt, employee_id, employee_id||' '||last_name||' '||first_name nm
from employees
where :empid is null or employee_id = :empid
order by trunc(hire_date)here is the view link
<?xml version="1.0" encoding="windows-1252" ?>
<!DOCTYPE ViewLink SYSTEM "jbo_03_01.dtd">
<!---->
<ViewLink
xmlns="http://xmlns.oracle.com/bc4j"
Name="ParentToChildViewLink"
Version="11.1.2.61.83">
<Properties>
<SchemaBasedProperties>
<LABEL
ResId="model.view.link.ParentToChildViewLink_LABEL"/>
</SchemaBasedProperties>
</Properties>
<ViewLinkDefEnd
Name="ParentVO"
Cardinality="1"
Source="true"
Owner="model.view.ParentVO">
<DesignTime>
<Attr Name="_accessor" Value="true"/>
<Attr Name="_finderName" Value="ParentVO"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.view.ParentVO.HireDt"/>
</AttrArray>
</ViewLinkDefEnd>
<ViewLinkDefEnd
Name="ChildVO"
Cardinality="-1"
Owner="model.view.ChildVO">
<DesignTime>
<Attr Name="_finderName" Value="ChildVO"/>
<Attr Name="_isUpdateable" Value="true"/>
</DesignTime>
<AttrArray Name="Attributes">
<Item Value="model.view.ChildVO.HireDt"/>
</AttrArray>
</ViewLinkDefEnd>
<ResourceBundle>
<PropertiesBundle
PropertiesFile="model.ModelBundle"/>
</ResourceBundle>
</ViewLink>and here is the tree
<af:tree value="#{bindings.ParentVO1.treeModel}" var="node"
selectionListener="#{bindings.ParentVO1.treeModel.makeCurrent}" rowSelection="single"
id="t1" binding="#{myBean.treeupdate}">
<f:facet name="nodeStamp">
<af:outputText value="#{node}" id="ot1"/>
</f:facet>
</af:tree>thanks I am working through that example unfortunately I ran into a problem
previously (in my real application) I was using bind parameters and my query had the following where clause.
( I did this to turn a comma separated list into an in statement)
WHERE :Bind_Batch_NM_Comma_Sep_List IS NULL
OR batch_nm IN
( SELECT REGEXP_SUBSTR (:Bind_Batch_NM_Comma_Sep_List,
'[^,]+',
1,
LEVEL)
batch_nm
FROM DUAL
CONNECT BY LEVEL <=
REGEXP_COUNT (:Bind_Batch_NM_Comma_Sep_List,
+ 1)however in the example presented you are to create view criteria and there is a panel on the right called view object where clause but I can not figure out how to type into it directly
and I find it unlikely I can recreate this where clause using the add item button.
is there a way to manually type the where clause in the view object where clause box? -
Report on second level WBS structure
Hi,
Could some one help on this,we need a report which should show second level WBS structure like user fields.There is one std. report CN41 which gives this information but it is showing whole project instead of only second level WBS and that too is not giving by which i could download and segregate.
Could some one suggest other report please?
Thanks,
Abdul Rehman.Try CN43N. You will be able to download it to Excel.
-
Second level Manager Unable to view the leave request
Hello Experts
We are using three levels approval leave request, first level manager able to approve successfully, when second level manager approving the leave request is unable to see any contents inside the request, its showing blank.
Kindly help me on this.
Thanks
Neelima.Hi,
I have a requirement in which I have to sent Leave Workflow to three approvers. For that I maintain the approvers in a customising table. What I did is, I took a copy of the standard Leave WF and added a step in loop (to read the table maintained, through a bor method). For the last approver, he has to get the standard leave approval task and for that reason i looped my custom bor for 2 times and put the standard leave approval task outside the loop.
Now the issue is that, eventhough the first approver gets the workitem and approves that, the next approver is not getting the workitem for him. Workflow is going into an error state stating that the successor node is not found.
Please tell me whether my approach for customising leave workflow is correct. And if correct, what could be the reason for the error that I get.
Regards, -
Determining second level approver for travel expense claim workflow
Hi Experts...
In Travel Expense claim workflow,we are using two level Approval.The employee has to enter his data for expense claim through ESS..Then expense claim is submitted and sent via workflow to the Travel department. Travel Dept verifies the expenses against the bill and approves the claim by selecting the next level approver and attaching the scanned copies of the bill.
I made copy from the standard workflow WS20000040.
How can i select the next level appover in first level approval step???
Is there any FM or BAPI or BADI???
Please help me ...
Thanks in Advance
Regards,
Hemalatha.Hi Hemalatha,
I have small tricky workaround to find out the second level of approver.The Standard Rule available can reused again by passing manager's Position.i.e
After first level completed , store manager position in container variable and pass it to the same task rule so the task is sent to the manager's approver .
Message me if needed more details.
**Award Points if useful -
Hi,
I have a header material A-MRP type -PD. independent requirements maintined in MD61 for 25 qty.
I have a bom compoennet B directly below A -MRP type -M1.
Now when multilevel MRP is run for A using MD02 , i see no dependent requirements are generated for B.
when single level MPs is run for B using MD42, no requirements are genrated for B.
How do we plan MPS items used as a BOM component. Is maintining separated PIR for B the only option to plan second level MPS bom items.Dear Santosh
I v tested your scinario.My setup was like this : PIR -FG -M6-10, M7-200,M8-1000 (Monthly )
FG : TEST234 MRP TYPE : PD Planning Strategy : 10 Indi/Coll : Blank Stock : 0
ROH : TEST MRP Type : M1 Planning Strategy : 40 Indi/Coll : 2 PTF : 30 Stock : 0
ROH: TEST6 MRP Type : PD Plng St : 40 Indi/Coll : 2 Stock : 0
It is running perfectly with this set up .I am getting Two PR for TEST /TEST6 and Planned Order for FG.I run MRP with NETCH, 2,1,3,3,2 with diplay material before save marked .
Observation : As PTF -30 days for TEST , I have seen a firmed PR generated as per the BOM qty with the PTF -Check in MD04.
I hope this combination should work .Check if you are missing something .
Regards
JH
Edited by: Jiaul Haque on Jun 23, 2010 9:28 AM -
Second level detail in master-detail via VL does not return rows
Sorry, I did not want to repost the entire thread. Please see the last entry in the following thread for my urgent question.
second level detail in master-detail-detail does not return rows
"second level detail in master-detail-detail does not return rows"
Thanks so much!
TeriAhhh ... that explains everything!
You wrote:
ListView1
-> ListRowView2 (via ListRowFkLink1)
-> ListValueView2 (via ListValueFkLink2)
That's why I thought it's a master and two details.
But it's more like:
ListView1
-> ListRowView2 (via ListRowFkLink1)
-> ListValueView2 (via ListValueFkLink2)Is that correct?
That's the explanation.
A ViewLink is basically a RowSetIterator controlling a detail RowSet. When the iterator navigates, the detail RS is refreshed.
When you create a hierarchy in the wizard, the controlling master iterator is always the default iterator! But you used a new iterator (listRowIter) to iterate over your first detail. The default iterator of that first detail didn't move, hence the RowSet of your second detail was not refreshed.
When you navigate in the tester, the tester always uses the default iterator. That's why it worked there.
Sascha -
Content of second level TAB's not visible
Hi All,
I have designed a page have nested TAB's. When we click to on any first level tab, then the contents on the first second level tab is not visible. Neither there a Hyperlink to the title of that tab. How can the contents be made visible.
I am using oracle portal version 3.0.6.6.5
thanksHi,
unfortunately the behaviour got even worse in 3089. The behaviour Girish is describing is still there in 307. By the way, the content can be made visible by click the second subtab and then clicking the first subtab again (nice workaround huh..) Another way is to add a subtab and display it as the first subtab and give it a label like 'Make your choice..'
So I was anxiously waiting for 3089 because I too was told everthing would be fixed but to my astonishment in 3089 (upgraded and fresh install) the subtabs (displayed as a page portlet that is) do not work at all!!!!!!!!! Got TAR 1542074 logged for this. The only thing at this moment which gives an acceptable appearance is creating subtabs on the page itself (so without a subpage displayed as a portlet) and assign active/inactive images to the tabs. But this way you are spending more time working with Paintshop than with Portal. Please tell me that I am wrong about this (I hope I am...), but otherwise this really goes beyond my bug/new product tolerance level.
Tony -
Show Portal Sub-Role on Second Level Navigation
Hi Experts,
We have a requirement, to embed some of our portal roles within some master roles.
Issue
I have a role called Parent_Role on the portal
Then I have two other child roles:
Child1_Role
Child2_Role
Now if I add Child1_Role and Child2_Role as sub roles to the Parent_Role, and then assign the Parent_Role to my User ID, I see both Child1_Role and Child2_Role on the first level of Top Level Navigation. However, I don't see Parent_Role on TLN.
What I need to do is, have Child1_Role and Child2_Role show up on the second level of navigation, and have Parent_Role show up on the first level of navigation.
Is this possible?
Thanks!
MaxHI Max,
Ideally this is what happens what you have requested for , Can you check whether the entry point is yes for you Parent Role.
1.) Create a Parent Role and make entry point "yes".
2) Assign the child roles to the Parent Role.
3) Assign the Parent role to the User.
This should work fine.
Thanks
Pankaj -
Second level Hierarchy Manager
I have a hierarchy like this
A has child B,C
B has child D,E,F
C has child P,Q
D has Child G,H
E has child I,J,K
F has Child L,M
G has child N,O
I need the second level manager from top most node for any child
1st level top most node in the above example is A
2nd level top most node in the above example is B and C
I will give any child as parameter.But it has to return its 2nd level manager.
For eg if my parameter is J it has to return B
if my parameter is Q it has to return C
if my parameter is N it has to return B
ThanksHi,
One way is to use a Yo-Yo Query , where you do two CONNECT BYs: one from the bottome up, the next from the top down, like this:
WITH ancestors AS
SELECT child
, parent
, CONNECT_BY_ISLEAF AS is_root
FROM table_x
START WITH child = 'J'
CONNECT BY child = PRIOR parent
SELECT child
FROM ancestors
WHERE LEVEL = 3 -- or 4, or whatever
START WITH is_root = 1
CONNECT BY parent = PRIOR child
;Another way is to use a single CONNECT BY, and get the desired results from SYS_CONNECT_BY_PATH and REGEXP_SUBSTR. -
Second level navigation menu not highlighted
Hello Experts,
We have a par file which is redirecting to a third party website from portal using Response.sendRedirect.Here the issue is when the third party website opens in the same window in portal,second level navigation menu is not getting highlighted,its still highlighting the previously selected menu.We are on EP6 SP16.
Thanks in advance,
SureshHi Suresh,
I guess that's because you are just redirecting the page & this doesn't refresh the Navigation nodes.
Hence just try adding the below code before redirection.
refreshPage() ;
function refreshPage() {
try {
frameworkSupport.refreshContentArea();
} catch(e) {
document.location.reload()
Redeploy and check. I think it should work.
Regards,
Santhosh
Maybe you are looking for
-
How to delete mail saved in profiles from imap accounts no longer in use.
I have been trying to transfer old e-mail from a closed G-mail account to a new one. The messages from the closed account are downloaded on my computer (MacBook Pro w/ Mavericks 10.9.4). I need to move them to an on-line account; i.e., a new G-mail a
-
Does it really back up the whole new drive or does it only back up what's been added? It seemed like it was doing the whole thing when I tried it. I stopped it. Don't want to use up all the space on my external. Is there something else I need to do o
-
Backflush Components With Movement Type 101 When Confirm Production Order
Hi PP Gurus, I found that we have a backflushing material (procurement type: F) in 'Good Movement' with movement type 101 instead of 261. The movement type of this material (procurement type: F) in reservation is 261. How did system determine the mov
-
hello, i have just recently deployed qos on some of our rotuers and wanted to monitor them in solarwinds (which we use for network monitoring). So the problem i have run into is that when i poll the mib provided by cisco (cbqos) i get a graph with ob
-
TS3297 my iphone is stuck with the itunes logo only
hello friends my iphone is displaying itunes logo only. i cn emergency calls only,plz help