Tuning Tree View Object (10g)
Hi all,
Description:
I have a tree/form layout which is based on two view objects: one for the parent level and the other for children. These two view objects based on database table with more than 1000 records.
For tuning I did the following:
As the number of parent nodes was about 15 nodes, I set the number of retrieved rows per patch to 15 in the parent view object and 1000 to the children view object
Problem:
The performance of this page is very slow:
1- It takes about 8 seconds to expand all tree nodes
2- It takes about 20 seconds to collapse all tree nodes
3- It takes about 8 seconds to select a node while the tree is collapsed
4- It takes about 12 seconds to select a node while the tree is expanded
Any suggestions?
Best Regards,
Mahmoud
Hi,
the tree binding in ADF Faces 10.1.3 doesn't support pageranging, which is what would make it faster. However, I am surprised that closing the folder takes long as well. I suggest to contact customer support (metalink.oracle.com) wit a testcase
Frank
Similar Messages
-
Hi,
I am reading the article of which the topic is Tuning Your View Objects
http://www.oracle.com/technology/oramag/oracle/06-may/o36frame.html
Does it mean that if I display the data to user 10 records per page, then
in the View->Edit View->Tunning ->Retrieve from the Database,
I have to set 10 in the 'All Rows in Batches of ' ?
Many thanks.
IvanHi,
It's means that the records will be got in "blocks" of 10 to 10.
What do you need is change "Range Size" of Iterator . The default value is 10.
Bye
I have to set 10 in the 'All Rows in Batches of
No,
Hi,
I am reading the article of which the topic is
Tuning Your View Objects
ttp://www.oracle.com/technology/oramag/oracle/06-may/o
36frame.html
Does it mean that if I display the data to user
10 records per page, then
in the View->Edit View->Tunning ->Retrieve from
the Database,
I have to set 10 in the 'All Rows in Batches of
Many thanks.
n -
[SOLVED] Multiple Dynamic View Objects and View Links - ADF Tree Table
Hi all,
I've got a method that creates 3 dynamic viewobjects using this:
ViewDefImpl Level1ViewDef = new ViewDefImpl("Level1View");
Level1ViewDef.addViewAttribute("LevelDescription","LEVEL1_DESCRIPTION",String.class);
Level1ViewDef.addViewAttribute("SetOfBooksId","SET_OF_BOOKS_ID",Number.class);
Level1ViewDef.addViewAttribute("CodeCombinationId","CODE_COMBINATION_ID",Number.class);
Level1ViewDef.addViewAttribute("Level1","LEVEL1",String.class);
Level1ViewDef.addViewAttribute("AccountType","ACCOUNT_TYPE",String.class);
Level1ViewDef.addViewAttribute("PeriodYear","PERIOD_YEAR",Number.class);
Level1ViewDef.addViewAttribute("PeriodNum","PERIOD_NUM",Number.class);
Level1ViewDef.addViewAttribute("PeriodName","PERIOD_NAME",String.class);
Level1ViewDef.addViewAttribute("PtdActual","PTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("YtdActual","YTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("LtdActual","LTD_ACTUAL",Number.class);
Level1ViewDef.addViewAttribute("BudgetName","BUDGET_NAME",String.class);
Level1ViewDef.addViewAttribute("BudgetVersionId","BUDGET_VERSION_ID",Number.class);
Level1ViewDef.addViewAttribute("PtdBudget","PTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("YtdBudget","YTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("LtdBudget","LTD_BUDGET",Number.class);
Level1ViewDef.addViewAttribute("EncumbranceType","ENCUMBRANCE_TYPE",String.class);
Level1ViewDef.addViewAttribute("EncumbranceTypeId","ENCUMBRANCE_TYPE_ID",Number.class);
Level1ViewDef.addViewAttribute("PtdCommitment","PTD_COMMITMENT",Number.class);
Level1ViewDef.addViewAttribute("YtdCommitment","YTD_COMMITMENT",Number.class);
Level1ViewDef.addViewAttribute("LtdCommitment","LTD_COMMITMENT",Number.class);
Level1ViewDef.setQuery(sql_level1);
Level1ViewDef.setFullSql(true);
Level1ViewDef.setBindingStyle(SQLBuilder.BINDING_STYLE_ORACLE_NAME);
Level1ViewDef.resolveDefObject();
Level1ViewDef.registerDefObject();
ViewObject vo1 = createViewObject("Level1View",Level1ViewDef);I can create the view objects fine and create a single viewlink between two of them, however i'm getting problems with 2 view links.
This is how I'm creating a view link:
ViewLink Level2Level1FKLink = createViewLinkBetweenViewObjects("Level2Level1FKLink1",
"Level2View",
vo1,
new AttributeDef[]{
vo1.findAttributeDef("Level1")
vo2,
new AttributeDef[]{
vo2.findAttributeDef("Level1")
"LEVEL1 = :Bind_Level1");
ViewLink Level3Level2FKLink = createViewLinkBetweenViewObjects("Level3Level2FKLink1",
"Level3View",
vo2,
new AttributeDef[]{
vo2.findAttributeDef("Level2")
vo3,
new AttributeDef[]{
vo3.findAttributeDef("Level2")
"LEVEL2 = :Bind_Level2");I can get the data to display on an adf tree table if i'm only using a single view link, but when i try and implement 2 view link (for 3 levels on the adf tree table) i'm getting problems displaying the data.
I'm getting the following error:
Aug 10, 2007 2:44:39 PM oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer encodeAll
SEVERE: Error during partial-page rendering
oracle.jbo.NoDefException: JBO-25058: Definition Level3View of type Attribute not found in Level2View_Level2Level1FKLink1_Level2ViewThe thing is, Level3View isn't in the Level2Level1FKLink viewlink.
I've been reading about something similar here
BC4J Master-Detail-Detail
but I am still unsure of what the problem is.
Thanks in advance.I found the answer here:
http://radio.weblogs.com/0118231/stories/2004/06/10/correctlyImplementingMultilevelDynamicMasterDetail.html -
How-to synchronize edit forms for a single View Object tree node entrie
Hi all,
I created a tree from a single View Object,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf]
then i want to create and synchronize edit forms for tree node entries,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/50-synchromize-form-treeselection-169192.pdf]
but it not working when i click child node!!
i found the latter tree from many View Object ,but the former tree from single View Object.
what should i do?
Thanks in advanceHi,
say the tree is built from ViewObject1. In the AM model, create a second View Object instance for this. Say ViewObject2. Create the form from ViewObject2 and the tree from ViewObject1. When creating the tree, use the"Target Data Source" option at the bottom to reference the iterator of ViewObject2. Then create a PartialTrigger on the paneFormLayout that holds the synch form. In the partial trigger property, reference the tree so that when the tree selection changes, the form is updated. Then create a PartialTrigger property on the tree and point it to the submit button of the form so you can show updated values in the tree.
Frank -
Problem in ADF Tree When I use 2 Tree in a Page with same View Object !
Hi everybody,
I use JDeveloper 11.1.1.5 and ADF Faces in UI . I have 2 tree in a page that they are from same Updatable View Object but diffrent instances in application module . When I change an attribute value from one of them in manage Bean programmatically , both of them change??!! in my case I put a checkbox in nodeStamp, when user click on checkbox, title of row must change but title in both of them change?????
I think it is a bug.
please help me. Thanks>
so what is diffrent to use same view object instances in page or multiple instances when we need ??
>
Actually, this depends on your use case. suppose you have a view object with a bind variable, and you want to display to tables on the same page but with different query result depending on the bind variable, in this case you have to create two view instances.
check
http://andrejusb.blogspot.com/2011/06/understanding-adf-bc-view-object.html -
Problem occured when create a tree table for master-detail view objects using SQL queries?
I am programming a tree table for master-detail view objects using SQL queries and these 2 view objects are not simple singel tables queries, and 2 complex SQL are prepared for master and view objects. see below:
1. Master View object (key attribute is SourceBlock and some varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK
2. Detail View object (key attributes are SourceBlock and EndBlock and same varaible bindings are used for this view object.)
SELECT cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK,
sum(
case when cntr_list.cntr_size_q = '20'
then cntr_list.cntr_qty
else 0 end ) as cntr20 ,
sum(
case when cntr_list.cntr_size_q = '40'
then cntr_list.cntr_qty
else 0 end ) as cntr40 ,
sum(
case when cntr_list.cntr_size_q = '45'
then cntr_list.cntr_qty
else 0 end ) as cntr45
FROM (
SELECT yb1.BLOCK_M as SOURCE_BLOCK,
yb2.BLOCK_M as END_BLOCK,
scn.CNTR_SIZE_Q,
count(scn.CNTR_SIZE_Q) AS cntr_qty
FROM SHIFT_CMR scm, SHIFT_CNTR scn, YARD_BLOCK yb1, YARD_BLOCK yb2
WHERE
scm.cmr_n = scn.cmr_n
AND (scm.plan_start_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS')
OR scm.plan_end_dt BETWEEN to_date(:DateFrom,'YYYY/MM/DD HH24:MI:SS') AND to_date(:DateTo,'YYYY/MM/DD HH24:MI:SS'))
AND scm.shift_mode_c = :ShiftModeCode
AND scm.end_terminal_c = :TerminalCode
AND scm.start_terminal_c = yb1.terminal_c
AND scm.start_block_n = yb1.block_n
AND substr(scn.start_location_c,(instr(scn.start_location_c,',',1,5)+1),instr(scn.start_location_c,',',1,6)-(instr(scn.start_location_c,',',1,5)+1)) BETWEEN yb1.slot_from_n AND yb1.slot_to_n
AND scm.end_terminal_c = yb2.terminal_c
AND scm.end_block_n = yb2.block_n
AND substr(scn.end_location_c,(instr(scn.end_location_c,',',1,5)+1),instr(scn.end_location_c,',',1,6)-(instr(scn.end_location_c,',',1,5)+1)) BETWEEN yb2.slot_from_n AND yb2.slot_to_n
AND scn.status_c not in (1, 11)
AND scn.shift_type_c = 'V'
AND scn.source_c = 'S'
GROUP BY yb1.BLOCK_M, yb2.BLOCK_M, scn.CNTR_SIZE_Q
) cntr_list
GROUP BY cntr_list.SOURCE_BLOCK, cntr_list.END_BLOCK
3. I create a view link to create master-detail relationship for these 2 view objects.
masterview.SourceBlock (1)->detailview.SourceBlock (*).
4. I create a tree table using these 2 view objects with master-detail relationship.
When I set default value for variable bindings of these 2 view objects and the matching records exist, tree table can work well. I can expand the master row to display detail row in UI.
But I need to pass in dymamic parameter value for variable bindings of these 2 view objects, tree table cannnot work again. when I expand the master row and no detail row are displayed in UI.
I am sure that I pass in correct parameter value for master/detail view objects and matching records exist.
Managed Bean:
DCIteratorBinding dc = (DCIteratorBinding)evaluteEL("#{bindings.MasterView1Iterator}");
ViewObject vo = dc.getViewObject();
System.out.println("Before MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
System.out.println("Before MasterView1Iterator ShiftModeCode="+ vo.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
System.out.println("MasterView1Iterator vo.getEstimatedRowCount()="+ vo.getEstimatedRowCount());
DCIteratorBinding dc1 = (DCIteratorBinding)evaluteEL("#{bindings.DetailView1Iterator}");
ViewObject vo1 = dc1.getViewObject();
System.out.println("Before DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
System.out.println("Before DetailView1Iterator ShiftModeCode="+ vo1.ensureVariableManager().getVariableValue("ShiftModeCode"));
vo1.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo1.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo1.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo1.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo1.executeQuery();
System.out.println("after DetailView1Iterator vo1.getEstimatedRowCount()="+ vo1.getEstimatedRowCount());
5. What's wrong in my implementation? I don't have no problem to implement such a tree table if using simple master-detail tables view object, but now I have to use such 2 view objects using complex SQL for my requirement and variable bindings are necessary for detail view object although I also think a bit strange by myself.Hi Frank,
Thank you and it can work.
public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
Number highSalary) {
Row r = getCurrentRow();
if (r != null) {
RowSet rs = (RowSet)r.getAttribute("EmpView");
if (rs != null) {
ViewObject accessorVO = rs.getViewObject();
accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
executeQuery();
but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and I have to change current row manually like below.
any idea?
DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
ViewObject vo = dc.getViewObject();
vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
vo.executeQuery();
vo.setCurrentRowAtRangeIndex(0);
((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues(); -
Does 10g App Server timeout AppModule or OC4J View objects
Hi,
My occasionally/AD/struts web application is running on the 10g server. If I keep the app open for a while (~10minutes) and then hit some of the control buttons on the
web page, I occasionally get the the error JBO-29000 "unexpected error during
framework operation - null pointer" error. The stack trace shows that when I ask
for OC4J view objects from the AppModule, the view objects being delivered are null. The rows are not null, the view object itself is null.
Is OC4J timing out my view objects or my AppModule?
What can I do about this?
Thanks Very Much, JKSounds like a 'collective' error message. You need to look at errors in the stack trace.
-
Building tree using view crateria in view objects
suppose that i have the following tables "class" ,"group" and "item".
items in table "item" belong to groups in table "group" and groups belong to classes in table "class" .
suppose there is another table called "selling_basket" that contains an id for the customer and also a foreign key for rows in item table for the items he sold and a "Customer" table that contains customers id and other informations.
suppose that i want to build an JSF page that contains a table from a view based on the "customer" table and a tree of herarichy - class
|_group1
|_item1
|_item2
-class2
|_group2
|_item3
|_group3
and when i click on a row on table customer the tree only display the herarichy for items that this customer sold just.i solve the probel the description as follow :
. the problem : the problem is that when we use the tree model component with the scenario of filtration on the child nodes, we do a normal transactions of steps on the knowledge that the tree will use the master detail behavior as in table component and other ADF Master-details behaviors, so we build two view criteria one on employee and the other on department with the scenario of displaying only the department who has employees with salary equal some certain value, and only shows the employees who has salary equal that value, and on our code we apply the two criteria on the two view objects with the same value we entered to search for , the scenario works well for the top level nodes, but for child nodes it seems it doesn’t work, the behavior make us walk around our selves for why this happened. By debugging options and Tracing what SQL statements that it executes we found that the system execute two statements on the employee view object one with the bind value with the same we inserted and the other with null value, and we notice that the name of the second view object executed is not what we apply the view criteria for(departmentEO_employeeEO_emo_dept_FK_employeeView).
.The solution: we notice that the tree component doesn’t use master detail behavior as in tables, and instead of that it uses the View link assessors (the run time generated view object departmentEO_employeeEO_emo_dept_FK_employeeView ), to get the detailed items, so we should override the action of the View link assessor.
To deal with that we generate the view object rowimpl and viewimpl java classes, in the rowimpl class there is a method to call the link assessors with the following code:
public RowIterator getEmployeesView()
this.getAttributeInternal(EMPLOYEESVIEW);
We write our code:
public RowIterator getEmployeesView()
System.out.println("Here");
ViewObject s=((DepartmentsViewImpl)this.getViewObject()).getViewLinks()[0].getDestination();//we get the employee object by using the view link
// between department and employee
// then we apply the view criteria to that view object and return it as view link
System.out.println("row number "+s.getEstimatedRowCount());
ViewCriteria evc=s.getViewCriteriaManager().getViewCriteria("EmployeesViewCriteria");
s.ensureVariableManager().setVariableValue("nSal",((DepartmentsViewImpl)this.getViewObject()).getnSal());
s.applyViewCriteria(evc);
s.executeQuery();
return s;
Notice that we use the employee view object getted by the view link instead of the master details.
Regards
Mohammad.b.yaseen
Sep 26 2011 @ 11:43
J2EE Team
RealSoft
for more info this the application url :
http://www.4shared.com/file/lgeaYWXa/TreeTestApplication1.html
notice that i diidn't attach the database with the project so you can connect to the local db
Edited by: mohammad.j.b.yaseen on Sep 26, 2011 12:13 PM -
ADF swing tree TreeSelectionListener on view object
hi
i want to make an action according to the selection on a tree, and i don't know how to reach a view object and perform some event. i have made a method in the VO and put it in the client interface, but how to drag it to a specific node in the tree??
this is the code:
class TAction implements TreeSelectionListener
public void actionPerformed(ActionEvent e)
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)
jTree1.getLastSelectedPathComponent();
if (node != null){
CreateDocumentForm gu = null;
if(node.isLeaf()){
String userinfo = node.getUserObject().toString();
String parentinfo = ((DefaultMutableTreeNode)node.getParent())
.getUserObject().toString();
if ("All Document".equals(parentinfo)){
if ("By Number".equals(userinfo)){
JUControlBinding jucd = panelBinding.findControlBinding("sortByNumber");//the method in the VO is sortByNumber
jucd.refreshControl();
if ("By Status".equals(userinfo)){
if ("By Project".equals(userinfo)){
if ("By Creation Date".equals(userinfo)){
}hi
the method is not in the pageDef, how can expose it there if this solves the problem?
the sortByNumber is working when i attach it to a button from the Data Control panel.
what about using the setControl in the JUControlBinding, but i have problems using it.
anyway, i want any solution to the problem as i need to attach the method in the VO programatically to the node in the tree TreeSelectionListener -
10g: Classes are missing in a package tree view
I created a project from the existing source (3,000+ source classes). Initially all classes are shown in a tree view, but after restarting Jdeveloper I can see only part of the classes in a navigation window. At the same time I'm able to see all of them if I use package list view.
Any ideas or similar experience?
Noel.The latest internal build is 1493. Is it possible to reproduce the bug without getting your entire project? If so can you enumerate the steps? Thanks.
-
Dynamic view names in view objects (adf faces bc 10g)...
I have written an application in adf faces and business components, but would like to be able to add sections to it by simply creating a database view, say with standard names and a suffix, and probably static number of columns (just a read only view). i can handle the front end and logic, but can't see a way to parametise the view names & columns in business component's view objects. I can do things like create a load of dummy views with 10 cols in say selecting 0 from dual then chuck them in the model, which is messy, but would work... Just wondering if there is a cleaner way i can achieve this through the model or any other method, so any ideas that could point me in the right direction would be useful.
Thanks in advance...
Tim.Hi,
you may want to investigate into dynamic ViewObjects or dynamicaly adding attributes like example 9 and 29 of http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html
See also
http://www.bloggingaboutjava.org/2006/04/binding-dynamic-view-object/
Frank -
How to blick tree view few specific nodes
here i got a code which show how to blink tree view node but i am confuse that how to blink few node.
Answered by:
Avatar of Tamer Oz
20,185
Points
Top 0.5
Tamer Oz
Partner Joined Sep 2009
2
8
17
Tamer Oz's threads
Show activity
Treeview control - How to make a node blink?
Visual Studio Languages
.NET Framework
>
Visual C#
Question
Alert me
Question
Vote as helpful
0
Vote
Hi,
Is there a "elegant" way to make blink a treeview node?
I am thinking to use a timer with the collection of nodes that I want to make the blink effect, and update the icon ...
Friday, November 06, 2009 6:19 PM
Reply
|
Quote
|
Report as abuse
Avatar of Kikeman
Kikeman
R. BOSCH
105 Points
All replies
Question
Vote as helpful
0
Vote
Hi,
You can develop your custom control for this purpose. The logic you mentioned was correct. Here is a sample control that I developed by the logic you mentioned.
public class BlinkingTreeView : TreeView
private Timer t = new Timer();
private List<TreeNode> blinkingNodes = new List<TreeNode>();
public BlinkingTreeView()
t.Interval = 1000;
t.Tick += new EventHandler(t_Tick);
bool isNodeBlinked = false;
void t_Tick(object sender, EventArgs e)
foreach (TreeNode tn in blinkingNodes)
if (isNodeBlinked)
//update Icon
tn.Text = tn.Text.Substring(0, tn.Text.Length - 1);//to test
isNodeBlinked = false;
else
//update Icon
tn.Text = tn.Text + "*";//to test
isNodeBlinked = true;
public void AddBlinkNode(TreeNode n)
blinkingNodes.Add(n);
public void RemoveBlinkNode(TreeNode n)
blinkingNodes.Remove(n);
public void ClearBlinkNodes()
blinkingNodes.Clear();
public List<TreeNode> BlinkingNodes
get { return blinkingNodes; }
public int BlinkInterval
get { return t.Interval; }
set { t.Interval = value; }
public void StartBlinking()
isNodeBlinked = false;
t.Enabled = true;
public void StopBlinking()
t.Enabled = false;
just show me how to use BlinkingTreeView class. i will have tree view which will have few node and few nodes may have few child nodes. now how to achieve by this class BlinkingTreeView and show me how to blink few specific node not all. thanksbetter to come with code. first populate tree view with some dummy node this way
Root
Child1
Child1-sub1
Child1-sub2
Child2
Child2-sub1
Child2-sub2
now blink Child1-sub2 & Child2-sub1. please come with code. thanks -
How to? Populate sequence in 2 Entities comprising 1-1 View Object
Hello all,
In my DB model, I have modeled sub types of an entity by having a main table with the common fields and then separate tables (with 1-1 relationship) to the main table with the fields that are specific to each type. Each of these tables has an ID column as the PK. I have created a trigger on the main table to auto-populate the ID from a sequence. If I have a VO based upon 2 of the entities (in a 1-1 relationship), how can I get the sequence # from the main table in order to populate the specialized table?
Regards,
johnThe TreeViewAdaptor is responsible for mapping your custom data to the tree view itself. I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
Then, after you get it laid out and displaying properly, you can worry about using real data. At that point, you have your adaptor return the actual number of items in your list and each individual item. Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw. At that point your adaptor will get called and your data should appear.
Jon
"Expert for hire" -
How to populate list in tree view dynamically
Hi,
I am new to Indesign Plugin creation.
I want to create list in tree view dynamically.
I tried wlistboxcomposite sdk sample in indesign cs4.
I have some doubts in this.
1. Can i write my own method in WLBCmpTreeViewAdapter class because it's implements ListTreeViewAdapter
If it's possible how can i call this method.
2. In this example they populating static string in constructor like this
WLBCmpTreeViewAdapter::WLBCmpTreeViewAdapter(IPMUnknown* boss):ListTreeViewAdapter(boss){
K2Vector<PMString> lists;
for (int32 i = 0; i< 12; i++){PMString name(kWLBCmpItemBaseKey);name.AppendNumber(i+1);name.Translate();lists.push_back(name);}
InterfacePtr<IStringListData> iListData(this, IID_ISTRINGLISTDATA);}
and this list is populating on loading time but my requirement is i have one button "get list" after clicking this button i have to populate the list, how can
i achieve this.
Pls do needful.
Thanks
ArunThe TreeViewAdaptor is responsible for mapping your custom data to the tree view itself. I almost always start by making it return some fixed number of objects with names "item 1" etc. That way you get the tree view working first.
Then, after you get it laid out and displaying properly, you can worry about using real data. At that point, you have your adaptor return the actual number of items in your list and each individual item. Then you can populate your list when you push your button and then invalidate the IControlView of the tree view widget to cause it to redraw. At that point your adaptor will get called and your data should appear.
Jon
"Expert for hire" -
Maintaining data of view objects in cache memory for repeated usage
Hi,
We are developing an application which is having around 800 viewobjects that will be used as LOV in different screens. Therefore, it is decided to create a separate project for all such LOV view objects and keep the same in shared scope so that the data can be made availabe across the application.
The application also communicates with different database schemas based on the logged-in county. For a particular user, LOV view object LovView1 should get the data fetched from Schema1 whereas for user2, the same LovView1 should get the data from Schema2.
For this, we have created n number of ApplicationModules like AM1, AM2 etc in the project each one being connected to different database. A base application module also has been created and all the county specific AMs extend this base AM. Also all the LOV view object instances are included in this base AM so that they will be available in the county specific AMs also.The entire project is made as an ADF Library jar and this base AM is utilized by other projects for mapping the LOV by attaching the library.
At runtime, whenever a particular viewobject is accessed, the findViewObject() method of the baseAM has been overridden and the logic is built in such a way to get the logged in user's county code from a session variable and based on the county, the corresponding AM is communicated with and the view object is returned.
The view objects of the LOV project is used as LOV as well as for doing some other backend processes. In such cases, the view object is obtained and necessary filter conditions are appended to the view criteria and is executed to get the filtered rowset.
Now, my questions are,
1. Is it enough to create the jar for the LOVProject and access the view objects from the same baseAM across the application?
2. I wish to keep all the data in cache memory to avoid repeated DB hits for all the LOV view objects. How it can be achieved? To be more precise, consider two users user1 and user2 logging into the application with different county. When user1 access a LOV viewobject for the first time, data needs to be fetched from the DB, kept in application scoped cache memory and return the rowset. On subsequent calls to the viewobject, the data needs to be retreived from the cache and not from the DB. When user2 also access the same LOV viewobject, the same logic as explained for user1 should happen. How can I achieve this? Actually my doubt is when user2 access, will the data pertaining to user1 remains available in cache? If not, how to make it retain the data in cache?
3. I also wish to append a particular where condition to a viewobject irrespective of other considerations like logged in county, existing view criteria etc.. How can I do this? A separate thread for this requirement has been posted in the forum Including additional where clause conditions to view criteria dynamically
Kindly give me your suggessions.
Thanks in advance.
Regards.Hi Vijay,
regarding your questions:
1. What is the difference between "TimesTen In-Memory Database" and
"In-Memory Database Cache" in terms of features and licensing model?
==> Product has just been renamed and integrated better with the Oracle database - Times-Ten == In-Memory-Cache-Database
2. Is "In-Memory Database Cache" option integrated with Oracle 10g
installable or a separate installable (i.e. TimesTen installable with only
cache feature)?
==> Seperate Installation
3. Is "In-Memory Database Cache" option same as that of "TimesTen Cache
Connect to Oracle" option in TimesTen In-Memory Database?
==> Please have a look here: http://www.oracle.com/technology/products/timesten/quickstart/cc_qs_index.html
This explains the differences.
4. After integrating "In-Memory Database Cache" option with Oracle 10g, data
access will happen only through Oracle sqlplus or OCI calls. Am I right here
in making this statement?
==> Please see above mentioned papers
5. Is it possible to cache the result set of a join query in "In-Memory
Database Cache"?
==> Again ... ;-)
Kind regards
Mike
Maybe you are looking for
-
3g is not working in my iphone 5
My 3G connection is not working in my iphone5. I made all settings correctly like opening the enable 3G in settings But still it doesnt work Can you help me??
-
Hi there, I was trying to help my parents import some photos from a folder they have created with photos from their holiday. They only want to import select images from this folder into iPhoto. I said it would be easy and they can do it in 2 ways. Fi
-
How can I get a search field?
In fewer times there was a field for adress and one for searching. Since the last modification there is no searching field. I like this field. How can i get it back? Thanks for help.
-
FILE ADAPTER NOT READING FILE.
HI, GUYS. I'M USING A FILE ADAPTER TO READ A FILE THAT HAVE 4 REGISTERS AND EACH REGISTER ONLY HAS ONE FIELD THAT IS NUMBER TYPE. I CREATE THE FILE ADAPTER, AND I LET BPEL TO CREATE THE SCHEMA. THE IDE CALLS THES FIELD "C1". I ALSO CONFIGURE THAT THE
-
I was trying to clean my keyboard with my vacuum, when two of the keys came off. I was able to sift through the vacuum bag and recover them and the snap-on connectors. But one of the connectors was broken, so I was able to replace the E-key, but not