Tree interface concept for hierarchical data creation/modification
I am designing an interface for hierarchical data creation and maintenance. The interface will have to provide all basic data modifications options:
edit an existing node, add new child/parent/sibling, as well as removing, sorting, dragging and dropping nodes around. Flex tree control is fully capable of all these functions while coding is not going to be a simple task. Has anyone worked on something like this? Any conceptual ideas?
Thanks
WOW Odie! You're awesome !! It worked like a charm, I created a view as you suggested:
CREATE OR REPLACE FORCE VIEW "VIEW_TASKS_PROJECTS_TREE" ("ID", "PARENT_ID", "NODE_NAME") AS
SELECT to_char(id) as id
, null as parent_id
, project_name as node_name
FROM eba_task_projects
UNION ALL
SELECT to_char(id)
, to_char(project_id)
, task_name
FROM eba_task_tasks;
And then I created a new tree with the defaults and customized the Tree query a bit (just added the links really):
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"NODE_NAME" as title,
null as icon,
"ID" as value,
null as tooltip,
'f?p=&APP_ID.:22:&SESSION.::NO::P22_ID,P22_PREV_PAGE:' || "ID" || ',3' as link
from "#OWNER#"."VIEW_TASKS_PROJECTS_TREE"
start with "PARENT_ID" is null
connect by prior "ID" = "PARENT_ID"
order siblings by "NODE_NAME"
Thanks man, you saved me a lot of time and headaches :)
Similar Messages
-
FM for master data creation/update
Hello all,
I would like to ask you for a FM for master data creation/update.
Thanks all for your help.The answer is API_SEMBPS_CHA_VALUES_UPDATE.
-
AdvancedDataGrid - create Array (cfquery) with children for hierarchical data set
I'm trying to create an AdvancedDataGrid with a hierarchical
data set as shown below. The problem that I am having is how to
call the data from a ColdFusion remote call and not an
ArrayCollection inside of the Flex app (as below). I'm guessing
that the problem is with the CFC that I've created which builds an
array with children. I assume that the structure of the children is
the issue. Any thoughts?
Flex App without Remoting:
http://livedocs.adobe.com/labs/flex3/html/help.html?content=advdatagrid_10.html
<?xml version="1.0"?>
<!-- dpcontrols/adg/GroupADGChartRenderer.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var dpHierarchy:ArrayCollection= new
ArrayCollection([
{name:"Barbara Jennings", region: "Arizona", total:70,
children:[
{detail:[{amount:5}]}]},
{name:"Dana Binn", region: "Arizona", total:130, children:[
{detail:[{amount:15}]}]},
{name:"Joe Smith", region: "California", total:229,
children:[
{detail:[{amount:26}]}]},
{name:"Alice Treu", region: "California", total:230,
children:[
{detail:[{amount:159}]}
]]>
</mx:Script>
<mx:AdvancedDataGrid id="myADG"
width="100%" height="100%"
variableRowHeight="true">
<mx:dataProvider>
<mx:HierarchicalData source="{dpHierarchy}"/>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn dataField="name"
headerText="Name"/>
<mx:AdvancedDataGridColumn dataField="total"
headerText="Total"/>
</mx:columns>
<mx:rendererProviders>
<mx:AdvancedDataGridRendererProvider
dataField="detail"
renderer="myComponents.ChartRenderer"
columnIndex="0"
columnSpan="0"/>
</mx:rendererProviders>
</mx:AdvancedDataGrid>
</mx:Application>
CFC - where I am trying to create an Array to send back to
the Flex App
<cfset aPackages = ArrayNew(1)>
<cfset aDetails = ArrayNew(1)>
<cfloop query="getPackages">
<cfset i = getPackages.CurrentRow>
<cfset aPackages
= StructNew()>
<cfset aPackages['name'] = name >
<cfset aPackages
['region'] = region >
<cfset aPackages['total'] = total >
<cfset aDetails
= StructNew()>
<cfset aDetails['amount'] = amount >
<cfset aPackages
['children'] = aDetails >
</cfloop>
<cfreturn aPackages>I had similar problems attempting to create an Array of
Arrays in a CFC, so I created two differents scripts - one in CF
and one in Flex - to build Hierarchical Data from a query result.
The script in CF builds an Hierarchical XML document which is then
easily accepted as HIerarchical Data in Flex. The script in Flex
loops over the query Object that is returned as an Array
Collection. It took me so long to create the XML script, and I now
regret it, since it is not easy to maintain and keep dynamic.
However, it only took me a short while to build this ActionScript
logic, which I quite like now (though it is not [
yet ] dynamic, and currently only handles two levels of
Hierarchy):
(this is the main part of my WebService result handler)....
// Create a new Array Collection to store the Hierarchical
Data from the WebService Result
var categories:ArrayCollection = new ArrayCollection();
// Create an Object variable to store the parent-level
objects
var category:Object;
// Create an Object variable to store the child-level
objects
var subCategory:Object;
// Loop through each Object in the WebService Result
for each (var object:Object in results)
// Create a new Array Collection as a copy of the Array
Collection of Hierarchical Data
var thisCategory:ArrayCollection = new
ArrayCollection(categories.toArray());
// Create a new instance of the Filter Function Class
var filterFunction:FilterFunction = new FilterFunction();
// Create Filter on the Array Collection to return only
those records with the specified Category Name
thisCategory.filterFunction =
filterFunction.NameValueFilter("NAMETXT", object["CATNAMETXT"]);
// Refresh the Array Collection to apply the Filter
thisCategory.refresh();
// If the Array Collection has records, the Category Name
exists, so use the one Object in the Collection to add Children to
if (thisCategory.length)
category = thisCategory.getItemAt(0);
// If the Array Collection has no records, the Category Name
does not exist, so create a new Object
else
// Create a new parent-level Object
category = new Object();
// Create and set the Name property of the parent-level
Object
category["NAMETXT"] = object["CATNAMETXT"];
// Create a Children property as a new Array
category["children"] = new Array();
// Add the parent-level Object to the Array Collection
categories.addItem(category);
// Create a new child-level Object as a copy of the Object
in the WebService Result
subCategory = object;
// Create and set the Name property of the child-level
Object
subCategory["NAMETXT"] = object["SUBCATNAMETXT"];
// Add the child-level Object to the Array of Children on
the parent-level Object
category["children"].push(subCategory);
// Convert the Array Collection to a Hierarchical Data
Object and use it as the Data Provider for the Advanced Data Grid
advancedDataGrid.dataProvider = new
HierarchicalData(categories); -
Concepts for reliable data storage
Hi all.
Suppose an application like network stream data recorder/player with cyclic replacement of old data with new one.
Which minimal concepts must be used for prevent data lost? Is transactions mechanism enough?
How to minimize a risk of damage entire database files when power-fail occures (or another event entail unexpected program crash).
Thank in advance.I did. Opened file manager and chose the network drive. The capsule asks for id and password. After I enter it gives me access. It's empty. I clicked on properties and it tells me I've stored 20.7 G on there. I went to another computer with same results. I had been running fine off this capsule for several months.
-
Updating city file for master data creation
can someone please tell me the steps of updating an old city file that is used to confirm addresses for master data.
The answer is API_SEMBPS_CHA_VALUES_UPDATE.
-
How can I make tree view for hierarchical data from select with connect by?
If we have selected hierachy with connect by clause, how can we make it to see in tree view?
You can't do this using the ADF, Tree Binding used by JHeadstart.
However, If you have a recursive relationship (for example managerid) you can get a tree what you want as follows:
- create one root ViewObject that returns the top-level employees without a manager by setting the where clause to managerid=null
- create a second ViewObject that simply queries all employees
- Create a ViewLink between the two view objects, and create a nested VO usage in the app module for the second view object
- Create corresponding nested group in the application definition file and set the layout style to "tree-form" on both groups.
See Developers Guide, chapter 3, section recursive trees for more info.
Steven Davelaar,
JHeadstart Team. -
R12 Interface table for loading data from 3rd part payroll system
Hi All,
Can anyone help me to have a lists and detailed technical information of available interface table on Oracle R12 for importing/loading data from third party payroll system. And what should be the best way of importing the data? It should be load first to AP then to GL or load it directly to GL?
Any help much appreciated. Thanks.
CyrusHi Cyrus,
Can you please let us know your business requirements of this integration, i.e what business want to acheive out of this integration.
It depends on what your business requirements are wether to send only accounting information from payroll system to your Oracle GL ( then you can integrate Payroll system to Oracle GL directly, by sending the accounting information from your payroll) or if your requirement is to create payroll related invoices in AP and then do payments in oracle AP and then pass accounting information to GL ( then integrate your payroll to AP)
Regards,
Madhav -
Authorisation control for master data creation on the basis of eq. category
Hi Experts,
In one of my business scenerio , I want to control the authorisation of a particular person on the basis of equipment category. I want to create a role for that particular ID and assign that equipment category sothat he can not create the equipments other than that category.
How can I control this authorisation on object level basis? If any other way , please let me know sothat i can try out for the same.
With Regards
VTHi
You can use SPRO>PM and CS>Tech objects>equipment>Defien field selection for eqmt master record. Chose 2nd activity in list and click 'influencing' and select Equipment catiegory. Through this for a equipment category, you can control fields as input, required, display, hide. Maintain the field auth group as required for a equipment category you want to control.
You can create auth group in SPRO same path as above under techincal objects, general data. Check with GRC/basis team to limit auth to Equipment category for this group. If not, you can do this through ABAP for validating the auth group for equipment category. Assign this Auth group to a role
Regards
Hemanth -
Mandatory Field for Master Data Creation
Dear Experts,
How can I make "Street 2" Field as a Mandatory Field when I create Customer Master data (XD01) ?
Thanks in advance for your kind support.
Best Regards.
RiponHi
KIndly go to the belwo path and choose Create customer centrally and make the street field mandatory
SPROFinancial accounting-Accounts receivable and accounts payable -Customer accounts-Mastr data---Define screen layout per activity (customers)
By doing above system will show mandatory for all account group when creating customer master thjrough XD01
If you want to do mandatory for account groupo the n go to t code OBD2
Regards
Damu -
AS 3.0 & WebService & Tree control Bind to hierarchical data?
What is the trick to get the results of a call to a
webservice that returns a hierarchical XML SOAP document to map
directly to a Tree Control's dataProvider property?
In the debugger, I can see that lastResult is an ObjectProxy
which has a couple of properties and one of them is an
ArrayCollection as I expect. However, I can't figure out how to use
this result with a Tree control and the dataProvider property so
that I can navigate thru the hierarchy returned.
TIA
GeorgeYeah this is using the embedded scripting. I need to change this to show the final sql vs. the script that is being used.
-kris -
Validation for vendor master data creation
Dear All,
Can anybody suggest how to apply validation while creation of vendor master data. As this can not be done through GGB1 as it is ment for document level validation. Please suggest any user exit or badi or validation path for this.
Thanks & Regardshi,
the enhancement for vendor master is SAPMF02K, you can easily add your own check, pls. check in tcode SMOD!
hope this helps
ec
>
Srinivasa Maruvada wrote:
> Hi
>
> Check TCode for validation OB28, for substitution OBBH
> and also OKC9 which may helps you.
> Cheers
> Srinivas
your post is rubbish, substitutions and validations are in use in document posting, not for master data creation. Even the OP told this, when he asked his question... -
Regarding bapis for sales order creation and modification
Hi,
I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are
1.BAPI_SALESORDER_GETLIST
2.BAPISDORDER_GETDETAILEDLIST
3.BAPI_SALESORDER_CREATEFROMDATA1
4. BAPI_SALESORDER_CHANGE
Am I using the correct bapis. When I tried to create a syncbo it gave the following errors
BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter
RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2
RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2
GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter
No Export parameter referring to header structure exists in GetDetail BAPI Wrapper
No Import parameter referring to header structure exists in Create BAPI Wrapper
No Import parameter referring to header structure exists in Modify BAPI Wrapper
No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper
No Export parameter referring to a field of header structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Modify BAPI Wrapper
I am informed that the above bapis are standard bapis.
I am not sure as to why I am getting the errors.
Does the syncbo require the bapi's to be in a specific format.
What would be the header and item structures for sales order bapis
Regards
Raja SekharHi Raja,
ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..
just go through this link.
u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html
the RETURN must be of type BAPIRET2..
Regards
Kishor Gopinathan -
Hierarchical data maintainance
Hello,
I have a table (Parent - Child).
There is a requirement to maintain this table, thats the hierarchy of the oraganisation.
So, every quater they will be updating the table.
They will be importing the data through an excel and in that excel there are 3 action items,
=> Insert, Update and Delete (logical delete).
CREATE TABLE PARENT_CHILD_TBL
( "ID" VARCHAR2(6 BYTE) NOT NULL ENABLE,
"ID_DESC" VARCHAR2(200 BYTE),
"ID_LEVEL" VARCHAR2(200 BYTE),
"PARENT_ID" VARCHAR2(200 BYTE)
For Update:
Any ideas, What all validation can come for an updation of an hierarchical data in general.
Like
= how to derive the level value at database side when the id is updated to some other level.
= How to maintain the relation.
A -> B -> D ( A is the grand parent here).
A -> C
eg: if B is updated as parent node of A, then we should throw error (cyclic data).
Any more validations for hierarchical data, anybody can suggest and the way to go for it will be helpful.
Thanks !!Hi,
You can use the LEVEL psudo-column in a CONNECT BY query:
SELECT p.*
, LEVEL
, CASE
WHEN TO_CHAR (LEVEL, 'TM') = id_level
THEN 'OK'
ELSE ' *** BAD ***'
END AS flag
FROM parent_child_tbl p
START WITH parent_id = '0000'
CONNECT BY parent_id = PRIOR id
Output from the sample data you posted (where all the level_ids are correct):
PARENT
ID ID_DESC ID_LEVEL _ID LEVEL FLAG
A ROOT 1 0000 1 OK
B CHILD1 2 A 2 OK
D SUB CHILD1 3 B 3 OK
C CHILD2 2 A 2 OK
If you only want to see the rows where id_level is wrong, then you can use LEVEL in a WHERE clause.
Maybe you shouldn't bother manually entering id_level at all, and just have a MERGE statement populate that column after all the other data is entered.
Why is the id_level column defined as a VARCHAR2, rather than a NUMBER?
Given that it must be a VARCHAR2, why does it need to be 200 bytles long? -
Creation/modification dates text variable wrong
I have a document where i wish to use the creation date amd modification date text variables. However when htey are inserted into the document the date is wrong. My Local Date Time on the pc is correct.
Has anyone else experienced this issue? I am running ID CS4 if that helps.
Thanks for any help in advance.Well I created the document yesterday. 18/10/2012 and it brings up a creation date of 27/02/12.
But creating another new doucment it shows correctly.
So all i can assume is that there may have been another file created on that date with the same name and it is taking that date even though this is a new document
Message was edited by: ScruffyG -
Generic Data Source for Hierarchies
Hi guyz,
Can any body tel how to create generic data source for hierarchies, plz give me the steps to do it.
Thanks & Regards
Veera1. Generate the DataSource for FI-SL sets using the BW IMG (Transaction BW07).
2. FI-SL sets are not compounded in OLTP. If you want to extract FI-SL sets for a coumpound characteristic in BW, proceed as follows:
a) Select the 'BW InfoObject (characteristic) is compounded' field and enter a data element (compound information of the meta data).
b) After generating the DataSource, execute compounding in a customer exit. To do this create, a project for the SAP enhancement RSAP0001 in Transaction CMOD, and program EXIT_SAPLRSAP_004 (ZXRSAU04) as described in the attachment.
3. Execute the following steps in BW:
a) Update the meta data for the FI-SL sets in the InfoSource tree.
b) Maintain the transfer structure and transfer rules.
c) If the extracted set hierarchies contain intervals, you must allow intervals in hierarchies for the characteristic in BW. Check the hierarchy properties of the characteristic in Transaction RSD1 and set the "Intervals in hierarchies allowed"
4. With this solution you can only extract sets created in Transaction GS01 (set class 0000).
If the hierarchy list in BW for the set data source is empty, first check in the OLTP system whether set class 0000 contains suitable sets at all. To do this, start Transaction GS02 (not GS03!). Field Set class may be displayed; if this is the case, enter 0000 there. Position the cursor on field Set name and select F4. Enter the table and field name you specified in Transaction BW07 in popup "Select sets" and select "Continue (Enter)". If message GR003 "An appropriate object was not found" is displayed, the hierarchy list in BW is also empty.
5. For CO groups (set class 01xx), the following DataSources are contained in the standard delivery
· 0ABCPROCESS_0107_HIER Business process
· 0ACCOUNT_0109_HIER Account number
· 0ACTTYPE_0105_HIER Activity type
· 0COORDER_0103_HIER Order
· 0COSTCENTER_0101_HIER Cost center
· 0COSTELMNT_0102_HIER Cost element
· 0PROFIT_CTR_0106_HIER Profit Center
· 0STKEYFIG_0104_HIER Stat. key figure
On principle, sets can also be created for the DDIC fields of these objects in R/3 GS01.
From Release 4.0, this no longer makes sense since the CO groups can then be used anywhere in FI-SL.
With regard to the conversion of sets to CO groups in Release 4.0, please refer to the FI-SL-VSR Release Information for 4.0A and Notes 92029 and 51132.
6. For other set classes, no DataSources are delivered.
Maybe you are looking for
-
Problem installing on a Mac iBook G3
Tried installing AL on an older Apple iBook G3 and the video is all screwed up. It only shows half the desktop and t he desktop itself is split in two. Any way to fix this? Thanks.
-
Error using JSF inside JBuilder
Hi, I have a project on JBuilder when I try to follow the steps from this tutorial : http://horstmann.com/corejsf/tutorial.html If I try to compile it with "check JSPs" enabled it give me this error : "index.jsp": ParserUtils: warning org.xml.sax.SAX
-
Not able to debug the ZDEG(Z OUTPUT) MEDIUM Distribution Ale
Hi All, I am not able to debug the ZDEG output type for Shipment (Medium is Distribution ALE). Executing the VT02n providing the Shipment and selec the GOTO Menu the Output tab and Select one (EX ZDEG) Output type. I have kept the break point in t
-
hey my iphone was having some glitches with it so went into recovery mode and i didnt have my songs backed up becoz i didnt have a computer to hook it up with, but i do now just wondering how can i get my songs back i have receipts for all the songs
-
Log and Transfer dropping or Off Lining Clips!
Folks, I need your help please. I'm trying to Log and Transfer AVCHD files from an external HD. There are 6 Chips in total. But when I Log and Transfer some Clips are not transferring over. EG. On 1 Chip there are 37 Clips. But only 28 were transferr