Tree view link to forms
In the explorer.swf tree demo the link from the tree items on
the left side fo the hdividebox goes to a text label on the right
side of the hdividebox. If you want to display a form instead of
the text label of the tree item, what changes will need to be
made?
You'll need to reference the correct controls by id. Just try
it. Post if you have a specific question.
Tracy
Similar Messages
-
Hello experts,
I am new in oracle forms and i am using oracle forms 11g with weblogic server 10.3.5 at windows7.I have a problem to make a tree item in oracle forms based on two tables.
I have 2 tables as:
TBL_ARTICAL_MSTR
ARTICLE_ID
ATRTICLE_TYPE
1
MAN
2
Women
TBL_ARTICLE_DTL
ARTICLE_NO
NAME
ARTICLE_ID
1
Jeans
1
2
Skirts
2
3
T-Shirt
1
Now I want a tree view as:
|
|___MAN
| |______JEANS
| |______T-Shirt
|
|___WOMEN
|______Skirts
For this I have made a Record group with a sql query as:
SELECT 1 , level , TBL_ARTICAL_MSTR.ATRTICLE_TYPE,TBL_ARTICLE_DTL.NAME , NULL , to_char( TBL_ARTICLE_DTL.ARTICLE_NO)
FROM TBL_ARTICAL_MSTR LEFT JOIN TBL_ARTICLE_DTL ON TBL_ARTICAL_MSTR.ARTICLE_ID=TBL_ARTICLE_DTL.ARTICLE_ID
CONNECT BY prior TBL_ARTICLE_DTL.ARTICLE_NO = TBL_ARTICAL_MSTR.ARTICLE_ID
START WITH TBL_ARTICAL_MSTR.ARTICLE_ID=1
But There is no any output,Please help me to know that how can i solve it.
Thank You
regards
aaditya.how to create hierarchical tree form
https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-how-to-create-a-hierachical-tree-form -
How to displaying "my favorite Links" as a tree view menu
Gurus,
I have a KM iView in portal home page, where users keep adding their favourite links from time to time. Now I want to display all the links as in tree structure say -
Content Admin
|--> Page A
|--> Page B
System Admin
| --> Page C
Kindly help me out in finding a solution.
regds,
Sukanta RudraKrishna,
Thanks for the reply. I was able to create the tree view. Now I have two requirements related to this.
1. How to have them as collapsible menu structure, which gets expanded as and when user wants.
2. Can we customize it as, Whenever a user add as page in favorites, it will ask for to to put in some folder that is there under my favorites links? I belive it requires some programming customization. Could you guide me, for some solution.
regds,
Sukanta Rudra -
[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 add Icon in Tree View in Forms 6.0 (URGENT..!)
Hello All,
I want to add icons in tree view (hierarchical tree) by using
forms 6.0.
So pls. help me to find out the solution for the same.
thanks
Pradeep
nullPradeep (guest) wrote:
: Hello All,
: I want to add icons in tree view (hierarchical tree) by using
: forms 6.0.
: So pls. help me to find out the solution for the same.
: thanks
: Pradeep
hello pradeep,
for adding icons in the tree, u willhave to look closely to the
data format for the tree.in the data format used for populating
the tree we are supplying 5 fields. the state of the tree node
(expanded or collapsed), the depth of the node w.r.t the parent
node, the node value, the node label(what we see on the tree)
and the node icon which we want to use. for the node icon we
have to provide the entire path of the icon file. that's it.
hope this will solve the problem
null -
I'm working on a portal in Sharepoint 2007. It appears that I can only have one set of "Links" on a page, so I am grouping my related links into folders. I'm having two issues with this...
#1. I need to change the order of the links within a folder. When I try to Change Order under the Actions menu, I only get the main list of links, not those within the folder. How can I reorder links within a folder?
#2. When I click a Links folder, all links go away, except for the links within that folder. Is there any way to make the Links list work in a Tree view?
Sorry for the newbie questions, but I've not worked much in Sharepoint and I had this project dropped on me. :(Hi,
For Question #1,
refer this link.
Hope it helps!
Thanks,
Avni Bhatt
If this helped you resolve your issue, please mark it Answered -
Can I use View Link in ADF Creation Forms Jdev 10.1.3
Hi...
I created a view link of two tables. Then I created a ADF form with Master Object to show some informations.. and I created a ADF Creation form with the detail Object
I'm trying to submit the informations added in the Detail forms.
but no records are created in Database..
Can I submit a creation form using detail object?
ThanksI figured out "partially" the problem, I tried to overrid the create method, and for any reason the commit operation wasn´t working.
I was trying to set a value for a proprety, but it did not work as a wish.
My intention was.... when an user execute the form. one specific field brings a value.. however I cannot set default value. cause it´ll change sometimes.
it´s something like this
protected void create(AttributeList attributeList) {
super.create(attributeList);
setMyProperty(new Number(0));
do you know how can I figure out this problem? -
How can I use Tree-View in Forms 4.5 ?
I need to read a table with auto-relationship (levels) and show
the data in a Tree-View (Like Windows Explorer).
Please response to
[email protected]
nullHi there
For getting a tree-view like structure you will have to use the
forms resuable objects .
There is a nav_demo.fmb file shipped along with the Developer
2000 which is located in /oracle_home/forms45/demo and it
contains the navigator like structure which can be resused in
different forms .(You can run this form from the windows95 start
button by selecting programs/Developer 2000 Comps for Win95/Forms
resusable libray).
You will have to copy the object groups from the demo form to the
desired form and also attach the required libraries for the form
Then u will find a procedure named REFRESH_TREES which populates
the data for the tree with a query ,which should be replaced by
your query .But the new query results should match the earlier
ones or else it won't work .
Hope this helps ..
Regards
Raghavendra
J.V. Leo (guest) wrote:
: I need to read a table with auto-relationship (levels) and show
: the data in a Tree-View (Like Windows Explorer).
: Please response to
: [email protected]
null -
Af:tree Using View Links
Hi
I have created two af:tree components. Based on similar conditions but on different database tables.
I have no issues in displaying one tree. I am able to expand the tree and go to second level and so on.
But for my second tree component when i try to expand the top most level, I am not seeing any values.
I have enabled debug logs in my JDev to see the query that gets run and found out that the bind variable is getting a junk value.
The bind variable should typically get the id of the value that i am trying to expand. I am able to see values correctly being passed in my earlier tree (the one that is working fine).
I have tried to compare both the VOs and View links and could not find any.
Please help me in resolving this issue.
Thanks
KamalHi Frank
Sorry for not being clear.
Let me explain my issue clearly.
I have a table with columns and values as below:
LEVEL_ID | FILTER | CODE1 | CODE2
1 | | A | B
2 | A | A1 | A2
2 | B | B1 | B2
I want the above table to be shown as below tree structure
A
|__A1
|__A2
B
|__B1
|__B2
For this implementation, i created a View object that returns all the codes at level_id 1 (VO1) and a View Object that returns all the codes at level_id 2(VO2).
I have a view link between these two where i bind the CODE1 of VO1 to FILTER of VO2. VO1 is the parent and VO2 is the child.
Using VO1 i have created the tree (drag and drop) and in the edit tree binding dialog box i have added the rules appropriately.
When i run my page, with debug logs enabled, I can see the A,B values coming properly in the UI. But, when i try to expand any of them, I do not see the A1,A2 or B1,B2 values.
In the debug logs, I can see a junk value being passed when i try to expand rather than 'A' or 'B'.
I have done a similar implementation with another tree component and it works fine as i can see proper values in the debug logs.
I do not understand why the junk values are passed.
Hope this explanation gives a clear idea about my issue.
I am currently using JDev 11.1.1.3 version.
Thank you
Kamal -
Error with view link and ADF table Tree
Hello
( Note: View objects are created based on static data but not from database tables)
I created two view objects "SuiteViewObject" and "FamilyViewObject" which are based on static data( stored in collection) but not on database entity. A veiw link "SuiteFamilyViewLink" is created from the above two view objects. An ADFTreeTable is created from the above view objects and view link. When run the jspx page containing ADFTreeTable, following error is occured in the browser.
JBO-30003: The application pool (staticviewobjects.staticappLocal) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.InvalidOperException, msg=JBO-26016: Cannot set user query to view "FamilyViewObj2" because it is a destination in a view link
Any help on the above error message.?
Thanks in Advance
Kristi
Bangalore
Message was edited by:
user576892Hello
The above error is coming becuase view link's SQL query expects tables. But in my case I dont have tables, view objects are created from static data source(collection).
How to create a view link from view objects which are created based on static data source(collection)? -
I have a HTML page with an IFrame. Inside the Iframe there is a table with a tree view
<iframe>
<table>
<tr>
<td>
<treeview id="tv1"></treeview>
</td>
</tr>
</table>
</iframe>
In UIA, i am able to traverse till the tree view but not able to see it.
I have used the TreeWalker.RawViewWalker Field to traverse the node from the desktop Automation.RootElement.
I tried to use AutomationElement.FromPoint method to check whether i am able to get that element. Fortunately i was able to get the automation element.
i tried to get the path to root element from the node element using the TreeWalker.RawViewWalker. I was able to get the parent path to the root element.
But trying the reverse way like navigating from root element to tree node, was not getting the element for me.
Please help me with suggestions or inputs to resolve this issue.Thanks Bernard,
It works fine with JInitiator but not working with
the JPI. For JPI what settings I need to do ??hi TKARIM and Bernard, i am having similar problem even with the Bernard's recommended setup. could you post the webutiljini.htm (i presume you are using config=test) ?
i am actually using jinitiator 1.3.1.28 with Oracle HTTP Server of OAS 10gR2) calling Forms Server 6i (f60cgi). After setting up according to Bernard's recommended setup steps, the java console showed that it loaded the icon jar file when it could not read the form, but it skipped the loading of the icon jar file once it read and started the form. How do we specify in the form to pick up the icon from the jar file instead from a directory ? Or do we need to specify ? Any ideas ?
Thx and Regards
dkklau -
Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data
Expected output in Xml:
<?xml version="1.0" encoding="utf-8" ?>
- <TopRoot>
- <Root id="1" Name="Department">
- <Type id="2" Name="IT">
- <SubType id="3" Name="Technology">
<SubSubType id="4" Name="Sharepoint" />
<SubSubType id="5" Name="ASP.NET" />
<SubSubType id="6" Name="HTML 5" />
</SubType>
</Type>
</Root>
</TopRoot>
List Details:
list details for storing category / sub category data and code to build tree structure for the same.
1.Create Custom List named “CategoryDetails”:
2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
3.Create column “Parent Category” of type lookup. under Additional Column Settings.
Get information dropdown, select “CategoryDetails”.
4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
In this column dropdown, select “Category Name”:
Referance:
http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data -fine but don't want tree view just generate xml string
i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
Expected Result:
My ultimate goal is to generate xml string like above format without building tree view.
I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
I developed some code but its not working to generate xml /string.
My modified Code:
public const string DYNAMIC_CAML_QUERY =
"<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
"<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack)
string TreeViewStr= BuildTree();
Literal1.Text = TreeViewStr;
StringBuilder sbRoot= new StringBuilder();
protected string BuildTree()
SPList TasksList;
SPQuery objSPQuery;
StringBuilder Query = new StringBuilder();
SPListItemCollection objItems;
string DisplayColumn = string.Empty;
string Title = string.Empty;
string[] valueArray = null;
try
using (SPSite site = new SPSite(SPContext.Current.Web.Url))
using (SPWeb web = site.OpenWeb())
TasksList = SPContext.Current.Web.Lists["Service"];
if (TasksList != null)
objSPQuery = new SPQuery();
Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
objSPQuery.Query = Query.ToString();
objItems = TasksList.GetItems(objSPQuery);
if (objItems != null && objItems.Count > 0)
foreach (SPListItem objItem in objItems)
DisplayColumn = Convert.ToString(objItem["Title"]);
Title = Convert.ToString(objItem["Title"]);
int rootId=objItem["ID"].ToString();
sbRoot.Append("<Root id="+rootId+"
Name="+Title+">");
string SRAndSUBSRTpe = CreateTree(Title, valueArray,
null, DisplayColumn, objItem["ID"].ToString());
sbRoot.Append(SRAndSUBSRTpe);
SRType.Clear();//make SRType Empty
strhtml.Clear();
SRType.Append("</Root>");
catch (Exception ex)
throw ex;
return SRType.ToString();
StringBuilder strhtml = new StringBuilder();
private string CreateTree(string RootNode, string[] valueArray,
List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
try
strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
catch (Exception ex)
throw ex;
return strhtml;
StringBuilder SRType = new StringBuilder();
private string GetSRType(string RootNode,
string[] valueArray, List<SPListItem> objListItemColn)
SPQuery objSPQuery;
SPListItemCollection objItems = null;
List<SPListItem> objNodeListItems = new List<SPListItem>();
objSPQuery = new SPQuery();
string objNodeTitle = string.Empty;
string objLookupColumn = string.Empty;
StringBuilder Query = new StringBuilder();
SPList objTaskList;
SPField spField;
string objKeyColumn;
string SrTypeCategory;
try
objTaskList = SPContext.Current.Web.Lists["Service"];
objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
Query.Append(String.Format
(DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
objSPQuery.Query = Query.ToString();
objItems = objTaskList.GetItems(objSPQuery);
foreach (SPListItem objItem in objItems)
objNodeListItems.Add(objItem);
if (objNodeListItems != null && objNodeListItems.Count > 0)
foreach (SPListItem objItem in objNodeListItems)
RootNode = Convert.ToString(objItem["Title"]);
objKeyColumn = Convert.ToString(objItem["ID"]);
objNodeTitle = Convert.ToString(objItem["Title"]);
SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
if(SrTypeCategory =="SRtYpe")
SRType.Append("<Type id="+objKeyColumn+" Name="+RootNode+ ">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SRSubTYpe")
SRType.Append("<SRSubType id="+objKeyColumn+" Name="+RootNode+
">");
if (!String.IsNullOrEmpty(objNodeTitle))
SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
if(SrTypeCategory =="SubSubTYpe")
SRType.Append("<SubSubType id="+objKeyColumn+" Name="+RootNode +"
></SubSubType");
SRType.Append("</SubType>");
SRType.Append("</Type>");
catch (Exception ex)
throw ex;
return SRType.ToString();
// Call method again (recursion) to get the child itemsHi,
According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
For example, to create or delete the ECB menu for a list item in
"Site Content and Structure", we can follow the steps below:
To add the “My Like” menu, we can add the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemLike"
runat="server"
Text="My Like"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickNavigateUrl="https://www.google.com.hk/"
/>
To remove the “Delete” menu, we can comment the code below:
<SharePoint:MenuItemTemplate
UseShortId=false
id="OLListItemDelete"
runat="server"
Text="<%$Resources:cms,SmtDelete%>"
ImageUrl="/_layouts/images/DelItem.gif"
ClientOnClickScript="%SmtObjectDeleteScript%"
/>
The result is as below:
More information:
MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
SharePoint 2013---How to convert current left Navigation into tree view
Hi All,
I want to convert current left navigation into tree view in SharePoint 2013. When we click on Modify Navigation and set headers and links; I need that should be convert into tree view. All headers should be expandable to thier links.
I just want tree view on navigation headers and links. not for all site and subsites which we can enabled from site settings --> Modify All Site settings --> Tree view
Please help me Master Page editing on Navigation Generation.. Thanks in advance!
Regards,
AnnaHi Anna,
If you want to replace the Quick Launch part with the custom treeview web part in master page, you can comment out or remove the quick launch code block "<!--SPM:<SharePoint:SPNavigationManager id="QuickLaunchNavigationManager.....>....<>-->",
then insert the custom web part snippet code in proper location in seattle master page, then all pages inheriting the seattle master page will have this web part.
Note, please back up the master page before customizing the original master page for recovery.
http://msdn.microsoft.com/en-us/library/office/jj862341(v=office.15).aspx
http://www.sharepointpals.com/post/Add-snippets-in-Page-layout-using-design-manager
Thanks,
Daniel Yang
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Daniel Yang
TechNet Community Support -
View Link on two programmatic view objects
Hello,
I use Build JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407
I have two programmatic View Objects with data from other sources (an ArrayList in my example).
Now I would like to create a View Link on it. How can I do this?
I'm quite new on Java and ADF...
I know it is possible because I already found Steve's example 132 here [http://blogs.oracle.com/smuenchadf/examples/|http://blogs.oracle.com/smuenchadf/examples/]
But could somebody create a simple example based on my example classes below (which is understandable for a newbie like me ;-) ?
Has been asked already here, but I did not found a solution as yet.
Error with view link and ADF table Tree
This is my example code for the view objects:
Employee.java:
private Number empno;
private String ename;
private Number dept;
with getters and setters...
Department.java
private Number deptno;
private String dname;
with getters and setters...
public class StaticDataDepartmentsImpl extends ViewObjectImpl {
int rows = -1;
private List<Department> departments = new ArrayList<Department>();
protected void executeQueryForCollection(Object rowset, Object[] params,
int noUserParams) {
// Initialize our fetch position for the query collection
setFetchPos(rowset, 0);
super.executeQueryForCollection(rowset, params, noUserParams);
// Help the hasNext() method know if there are more rows to fetch or not
protected boolean hasNextForCollection(Object rowset) {
return getFetchPos(rowset) < rows;
// Create and populate the "next" row in the rowset when needed
protected ViewRowImpl createRowFromResultSet(Object rowset,ResultSet rs) {
ViewRowImpl r = createNewRowForCollection(rowset);
int pos = getFetchPos(rowset);
populateAttributeForRow(r, 0, departments.get(pos).getDeptno());
populateAttributeForRow(r, 1, departments.get(pos).getDname());
setFetchPos(rowset, pos + 1);
return r;
// When created, initialize static data and remove trace of any SQL query
protected void create() {
super.create();
// Setup string arrays of codes and values from VO custom properties
initializeStaticData();
rows = (departments != null) ? departments.size() : 0;
// Wipe out all traces of a query for this VO
getViewDef().setQuery(null);
getViewDef().setSelectClause(null);
setQuery(null);
// Return the estimatedRowCount of the collection
public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
return rows;
// Subclasses override this to initialize their static data
protected void initializeStaticData() {
Department d1 = new Department();
d1.setDeptno(new Number(10));
d1.setDname("IT");
Department d2 = new Department();
d2.setDeptno(new Number(20));
d2.setDname("HR");
departments.add(d1);
departments.add(d2);
// Store the current fetch position in the user data context
private void setFetchPos(Object rowset, int pos) {
if (pos == rows) {
setFetchCompleteForCollection(rowset, true);
setUserDataForCollection(rowset, new Integer(pos));
// Get the current fetch position from the user data context
private int getFetchPos(Object rowset) {
return ((Integer)getUserDataForCollection(rowset)).intValue();
public class StaticDataEmployeesImpl extends ViewObjectImpl {
int rows = -1;
private List<Employee> employees = new ArrayList<Employee>();
protected void executeQueryForCollection(Object rowset, Object[] params,
int noUserParams) {
// Initialize our fetch position for the query collection
setFetchPos(rowset, 0);
System.out.println("in executeQueryForCollection");
super.executeQueryForCollection(rowset, params, noUserParams);
// Help the hasNext() method know if there are more rows to fetch or not
protected boolean hasNextForCollection(Object rowset) {
System.out.println("in hasNextForCollection. Rows:" + rows);
return getFetchPos(rowset) < rows;
// Create and populate the "next" row in the rowset when needed
protected ViewRowImpl createRowFromResultSet(Object rowset,ResultSet rs) {
ViewRowImpl r = createNewRowForCollection(rowset);
int pos = getFetchPos(rowset);
System.out.println("in createRowFromResultSet. Pos=" + pos);
populateAttributeForRow(r, 0, employees.get(pos).getEmpno());
populateAttributeForRow(r, 1, employees.get(pos).getEname());
populateAttributeForRow(r, 2, employees.get(pos).getDept());
setFetchPos(rowset, pos + 1);
return r;
// When created, initialize static data and remove trace of any SQL query
protected void create() {
super.create();
// Setup string arrays of codes and values from VO custom properties
initializeStaticData();
rows = (employees != null) ? employees.size() : 0;
System.out.println("in create(). Rows=" + rows);
// Wipe out all traces of a query for this VO
getViewDef().setQuery(null);
getViewDef().setSelectClause(null);
setQuery(null);
// Return the estimatedRowCount of the collection
public long getQueryHitCount(ViewRowSetImpl viewRowSet) {
return rows;
// Subclasses override this to initialize their static data
protected void initializeStaticData() {
Employee e1 = new Employee();
e1.setEmpno(new Number(2333));
e1.setEname("Emp1");
e1.setDept(new Number(10));
Employee e2 = new Employee();
e2.setEmpno(new Number(1199));
e2.setEname("Emp2");
e2.setDept(new Number(20));
Employee e3 = new Employee();
e3.setEmpno(new Number(3433));
e3.setEname("Emp3");
e3.setDept(new Number(10));
Employee e4 = new Employee();
e4.setEmpno(new Number(5599));
e4.setEname("Emp4");
e4.setDept(new Number(20));
Employee e5 = new Employee();
e5.setEmpno(new Number(5676));
e5.setEname("Emp5");
e5.setDept(new Number(10));
Employee e6 = new Employee();
e6.setEmpno(new Number(7867));
e6.setEname("Emp6");
e6.setDept(new Number(20));
employees.add(e1);
employees.add(e2);
employees.add(e3);
employees.add(e4);
employees.add(e5);
employees.add(e6);
// Store the current fetch position in the user data context
private void setFetchPos(Object rowset, int pos) {
if (pos == rows) {
setFetchCompleteForCollection(rowset, true);
setUserDataForCollection(rowset, new Integer(pos));
// Get the current fetch position from the user data context
private int getFetchPos(Object rowset) {
return ((Integer)getUserDataForCollection(rowset)).intValue();
Who can help?
Thnx in advance!
RolfRolf,
I guess when we try to do it for you, we end up with almost the sample code provided by Steve Muench.
So there from my point of view it doesn't make sense to do it all over.
Take some time and study the sample code, run it without changes and after that try some changes which suits your use case better.
If you don't understand what's going on in the sample post the question here and we try to help you.
Timo -
Bug in tree view of synonyms owned by other user
Hi,
I'm connecting into Oracle 10.2.0.3 whith SQL Developer 1.5.3.0.53 and user SYS as SYSDBA. When I browse tree view of synonyms of another user, the synonyms that include database link don't display !!! If I connect whith that user the synonyms are displayed correct.
Is this a bug ? There are a solution ?
Thanks !
About
Oracle SQL Developer 1.5.0.53
Versão 1.5.0.53
Build MAIN-53.38
Copyright © 2005,2008 Oracle. All Rights Reserved.
IDE Version: 11.1.1.0.22.49.35
Product ID: oracle.sqldeveloper
Product Version: 11.1.1.53.38
Component Version
========== ======
CVS Version Internal to Oracle SQL Developer (client-only)
Oracle IDE 1.5.0.53.38
Plataforma Java(TM) 1.6.0_06
Versioning Support 1.5.0.53.38Hi there,
while we support dblinks, we dont support following them thru on synonyms or browsing them either. This is a feature right now and you can vote for this as a feature in a later release by submitting a feature request at sqldeveloper.oracle.com
Maybe you are looking for
-
How to upload sap r/3 table data to ms-sql 2000?
Dear Friends any one can help me out step by step to upload sap r/3 table data to ms-sql 2000. Thanks in advance
-
After i updated my terabyte, when i open fcpx 10.1 my hard drive never appears, so i can't open a new library for a new project. What should i do?
-
LabVIEW 2009 sp1 not responding / crash
Hi, I seem to have developed an issue with LabVIEW whereby it freezes at a random point during execution. It is not a case of a VI freezing, rather the LabVIEW application itself ceases to work and needs to closed by task manager. What I have ru
-
DB row lock from servlet.
Hi to all, we're developing a J2EE application (with NO Ejb, actually we cannot use them) in which users can select orders from a DB2 database, modify the order, or create a new order. Any order is implemented by a class (Order.java) that exposes met
-
Connect to different databases
Hi all, I want to read data from a table t1 in a DB1 and write it in a table t2 in another database DB2 using Oracle forms 10g. Thanks Charbel