How to handle tree view control in business one ui sdk
Hi,
Can any guide me on how to handle tree view control in business one ui sdk?
Thanking in advance.
With Regards,
Ram.
Hi Ram,
Nowadays there are some trouble with the treeview controls in Windows XP SP2 as you can see here:
It is said that SAP will publish a treeview control in 2005 SP1.
Hope helps,
Ibai Peñ
Similar Messages
-
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 -
Tree view control - populating speed - over 100 nodes
I have a few questions about a tree view control:
1. If you put more than approximately 100 nodes in a tree, it populates too slow. There is no change if you try with query or record group. I figured that the populating of the record group makes all problems, but there is no chance to enlarge the array siye of the record group. Developer 6 has some built-ins which can do that, bu after many unsuccesful tries I don't see a solution.
I tried to make fetches from cursor into a record group (30 nodes on a "page", but it looses a real hierarchy and you should do a lot of programming). If anybody knows how to make the population of the tree faster or have some template / please forward.
2. After we put the patch 5 of developer6, tree view control is totally unpredictable. Usually its when you programmaticaly try to select a node (ftree.set_tree_selection)...Anybody have the same problems?<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Natasa Stojovska ([email protected]):
I have a few questions about a tree view control:
1. If you put more than approximately 100 nodes in a tree, it populates too slow. There is no change if you try with query or record group. I figured that the populating of the record group makes all problems, but there is no chance to enlarge the array siye of the record group. Developer 6 has some built-ins which can do that, bu after many unsuccesful tries I don't see a solution.
I tried to make fetches from cursor into a record group (30 nodes on a "page", but it looses a real hierarchy and you should do a lot of programming). If anybody knows how to make the population of the tree faster or have some template / please forward.
<HR></BLOCKQUOTE>
Try taking out the 'start with' and 'connect by' clauses in your select statement if you're using them. However, this will mean that you will have to determine the levels of the tree manually and ensure that the data comes out in the same order each time you execute the select statement.
null -
Hi all
I want to set a print option for the tree view control along with back,exit etc options.please help me to do this.
Thanks in regards
Regards
Giri<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Natasa Stojovska ([email protected]):
I have a few questions about a tree view control:
1. If you put more than approximately 100 nodes in a tree, it populates too slow. There is no change if you try with query or record group. I figured that the populating of the record group makes all problems, but there is no chance to enlarge the array siye of the record group. Developer 6 has some built-ins which can do that, bu after many unsuccesful tries I don't see a solution.
I tried to make fetches from cursor into a record group (30 nodes on a "page", but it looses a real hierarchy and you should do a lot of programming). If anybody knows how to make the population of the tree faster or have some template / please forward.
<HR></BLOCKQUOTE>
Try taking out the 'start with' and 'connect by' clauses in your select statement if you're using them. However, this will mean that you will have to determine the levels of the tree manually and ensure that the data comes out in the same order each time you execute the select statement.
null -
How to handle the table control in bapi?
how to handle the table control in bapi? example va01.
i pass multiple line item what is the procedure?
header detail same .
eample ship to party
sale to party.
line item mulptiple
10 mat1
2o mat2
30 mat3.
in bapi we can pass sinle line item.
any way to handle multiple line item pass through the bapi.
Message was edited by:
Karthikeyan PanduranganBAPI is not going through the screen flow logic so you need not to worry about the table control. Just check in the BAPi there must be one table parameter for line items just pass one int table with your data to that table parameter it will automatically update the tables.
Regards
shiba dutta -
How to handle EXTENDED Views SQL 2000 to Oracle Migration
Hi All,
I am in the process of migrating SQL server 2000 database to Orcle databse. I would like to know how to handle the views created in SQL server with Extended clause.
See below for example for SQL 2000 view.
create view "Order Details Extended" AS
SELECT "Order Details".OrderID, "Order Details".ProductID, Products.ProductName,
"Order Details".UnitPrice, "Order Details".Quantity, "Order Details".Discount,
(CONVERT(money,("Order Details".UnitPrice*Quantity*(1-Discount)/100))*100) AS ExtendedPrice
FROM Products INNER JOIN "Order Details" ON Products.ProductID = "Order Details".ProductID
Thanks in advance for your reply.
RameshRamesh
The Workbench has a problem with spaces in identifiers which will be fixed in a later release.
Apart from that large drawback the view should work ok. [The parser handles convert and aliases]
Turloch -
How to handle Tree structure in bdc
Hi Experts,
How to handle Tree structure in bdc, can any one have any idea regarding this.
In the top most of the tree i have : Occupational Health under that Identification is there .
Occupational Health
Identification
Regards,
Sudhakar Reddy.AHi Experts,
Thanks Parvatha reddy for your reply.
Can any one provide BAPI for this T.Code EHSQCATOH or can any one tell me how to handle Tree structure .
Regards,
Sudhakar Reddy .A -
How to Handle dynamic views in mm01 transaction
Hi ,
Can any body say me how to handle Dynamic views in MM01 tcode. Since every time new view has to be selected, how can we manage this through our program.
Regards,Hi Nilesh,
Views will be vary based on the Material Type what u are selectiing , so u have to focus on this settings.
Regards
Peram -
How to handle the table control While working with LSMW?
How to handle the table control While working with LSMW?
its possible in lsmw,
Hi,
LSMW will have a Indicator for headr and itam, i do not remember the correct field, but it will have an indicator, check the fields, there will be a single charecter lenght field, that should be the indicator, and using that we can write the logic.
check that single charecter field, it that is X that means the header record is processed, and do the items.
and, this is another way, try this out also
YOu can do this in "Define Source Structures" step,
the HEADER is defined first,
then the DETAIL below the HEADER.
add the fields to the structures.
Both should have some common key field
Please take care that the name of the common field is the same.
Once you do this it is linked. The you have a header and item corresponding to that header. then run the LSMW as you would.
Thanks -
Expand=false for Tree view control
Hi
I have a placed a tree view control on SharePoint 2010 master page and given sitemap as a datasource.
and my tree view is displaying all the links from sitemap file.
But here the problem is all the node are getting expanded.
Is there any way to disable that.Assuming you are using SPTreeview control you can set ExpandDepth property. This property gets or sets the number of levels that are expanded when a TreeView control is displayed for the first time.
Example: http://msdn.microsoft.com/en-us/library/ms466994(v=office.14).aspx
Amit -
Displaying icons in tree view control
Hi all
i am trying to display icons in my tree view control.I am using beow code but i am not getting the ouput.Please help me.
Type-pools : fibs,stree , ICON.
data : t_node type snodetext.
data : node_tab like t_node occurs 0 with header line,
it_icon_id type icon-id.
clear : node_tab, node_tab[].
select single id from icon into it_icon_id
where name = 'ICON_CUSTOMER'.
node_tab-type = 'T'.
node_tab-name = 'Earth'.
node_tab-tlevel = '01'.
node_tab-nlength = '5'.
node_tab-color = '4'.
node_tab-text = 'Hello'.
node_tab-tlength ='5'.
node_tab-tcolor = 3.
node_tab-NODEICON = it_icon_id.
append node_tab.
clear node_tab.
node_tab-type = 'P'.
node_tab-name = 'Europe'.
node_tab-tlevel = '02'.
node_tab-nlength = '6'.
node_tab-color = '1'.
node_tab-text = 'Hello'.
node_tab-tlength ='5'.
node_tab-tcolor = 4.
node_tab-NODEICON = it_icon_id.
append node_tab.
clear node_tab.
CALL FUNCTION 'RS_TREE_CONSTRUCT'
EXPORTING
INSERT_ID = '000000'
RELATIONSHIP = ' '
LOG =
TABLES
NODETAB = node_tab
EXCEPTIONS
TREE_FAILURE = 1
ID_NOT_FOUND = 2
WRONG_RELATIONSHIP = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
DATA: wa_type TYPE stree_ctl_type_mapping.
CLEAR: type_mapping[].
wa_type-type = 'A'.
wa_type-icon = '@A0@'.
APPEND wa_type TO type_mapping.
CALL FUNCTION 'RS_TREE_CONTROL_PREPARE'
EXPORTING
CONTROL_PATTERN = 'PH'
MULTIPLE_SELECTION = 'X'
TYPE_MAPPING = type_mapping.
CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
EXPORTING
LAYOUT_MODE = ' '
USE_CONTROL = STREE_USE_LIST.
Thank you.
Regards
Giri.Here is another option using <ICON> include,
*& Report ZKB_TREE_EXAMPLE
REPORT zkb_tree_example.
INCLUDE <icon>.
TYPES: BEGIN OF t_sbook,
customid TYPE sbook-customid,
fldate TYPE sbook-fldate,
bookid TYPE sbook-bookid,
END OF t_sbook.
DATA: i_sbook TYPE TABLE OF t_sbook,
w_sbook TYPE t_sbook.
SELECT-OPTIONS: s_custid FOR w_sbook-customid.
DATA: o_custom_container TYPE REF TO cl_gui_custom_container,
o_tree TYPE REF TO cl_gui_simple_tree.
TYPES: t_node_table LIKE TABLE OF trstree.
DATA: i_node TYPE t_node_table,
w_node TYPE LINE OF t_node_table.
START-OF-SELECTION.
CALL SCREEN 9000.
*& Module status_9000 OUTPUT
text
MODULE status_9000 OUTPUT.
SET PF-STATUS '9000'.
ENDMODULE. " status_9000 OUTPUT
*& Module user_command_9000 INPUT
text
MODULE user_command_9000 INPUT.
CASE sy-ucomm .
WHEN 'BACK' OR 'EXIT'.
SET SCREEN 0.
LEAVE SCREEN.
ENDCASE.
ENDMODULE. " user_command_9000 INPUT
*& Module init_9000 OUTPUT
text
MODULE init_9000 OUTPUT.
DATA: lw_sbook TYPE t_sbook.
SELECT customid fldate bookid FROM sbook
INTO TABLE i_sbook WHERE customid IN s_custid.
SORT i_sbook BY customid ASCENDING.
CREATE OBJECT o_custom_container
EXPORTING
container_name = 'TREE'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5.
IF sy-subrc <> 0.
MESSAGE 'Error Creating Container' TYPE 'E'.
ENDIF.
CREATE OBJECT o_tree
EXPORTING
parent = o_custom_container
node_selection_mode =
cl_gui_simple_tree=>node_sel_mode_single
EXCEPTIONS
lifetime_error = 1
cntl_system_error = 2
create_error = 3
failed = 4
illegal_node_selection_mode = 5.
IF sy-subrc <> 0.
MESSAGE 'Error Creating Tree' TYPE 'E'.
ENDIF.
Add ROOT Folder
CLEAR w_node.
w_node-node_key = 'ROOT'.
w_node-text = 'Root'.
w_node-isfolder = 'X'.
APPEND w_node TO i_node.
CLEAR lw_sbook .
LOOP AT i_sbook INTO w_sbook.
IF lw_sbook-customid NE w_sbook-customid.
lw_sbook-customid = w_sbook-customid.
CLEAR w_node.
w_node-node_key = w_sbook-customid.
w_node-text = w_sbook-customid.
w_node-relatkey = 'ROOT'.
w_node-relatship = cl_gui_simple_tree=>relat_last_child.
w_node-isfolder = 'X'.
APPEND w_node TO i_node.
ENDIF.
CLEAR w_node.
w_node-node_key = w_sbook-bookid.
w_node-relatkey = w_sbook-customid.
w_node-relatship = cl_gui_simple_tree=>relat_last_child.
w_node-text = w_sbook-bookid.
<b> w_node-n_image = icon_customer.</b>
APPEND w_node TO i_node.
ENDLOOP.
CALL METHOD o_tree->add_nodes
EXPORTING
table_structure_name = 'TRSTREE'
node_table = i_node
EXCEPTIONS
failed = 1
error_in_node_table = 2
dp_error = 3
table_structure_name_not_found = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE 'Error Adding Node to Tree' TYPE 'E'.
ENDIF.
Expand tree
CALL METHOD o_tree->expand_root_nodes
EXPORTING
level_count = 2
expand_subtree = ' '
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE 'Error Expanding Tree' TYPE 'E'.
ENDIF.
ENDMODULE. " init_9000 OUTPUT
Regards
Kathirvel -
How to Develop the ABAP Reports in Business One
HI all;
am New to SAP Business One,
How to Develop the Z Reports in Business One ? like Normal ALV Reports and other??
Can we have the ABAP Editor and Other Transaction in Business One.
-RaviHi Sharma,
Thanks for Your Replay,
This is what my requirement !.
Hi Experts,
Here we are integrating SAP Business One with 3rd Party tool. !!
We need to Develop Customize Report in Business one and These Reports Out Put Will Convert into XML Files (Third Party System Can Understand Only XML files) and stored in Application Server/ Presentation Server.
How to Develop the u2018Z/Yu2019 Reports in Business one ? Can we use SE38 (R/3 ABAP Editor and other T-codes) in Business One.? Or is there any tools to develop the Business One Reports ? How to Convert the Report out put into XML File?
Thanks,
Upender. -
Business One 2007 SDK for Visual Studio 2010
Hi,
I am wondering if I can use Business One 2007 SDK in Visual Studio 2010 [.net 4]. My collegue has asked me to update one of the existing project which is developed in VB6. and He use the Business One 2007 SDK by reference it to SAPbobsCOM2007.dll file. However when I try to import this dll file on Visual Studio it has shown an error message " SAPbobsCOM2007.dll could not be added. Please make sure that the file is accessible, and that is a valid assembly or COM component".
The computer that I am using is Win7 64bit with VS2010
I would be grateful if you could point me to a correct direction/resource.
Many thanks
Chi
Edited by: Chi Wai Yau on Jun 23, 2010 11:30 AMHi Gordon,
I have tried it, and it does not work...
when I try
regsvr32 Interop.SAPbobsCOM.dll
I have received the following error message
The module "Interop.SAPbobsCOM.dll" as loaded but the entry-point DllRegisterServer was not found.
Make sure that "Interop.SAPbobsCOM.dll" is a valid DLL or OCX file and then try again.
Could you let me know where could I download the latest SDK for Business One 2007 please.
Edited by: Chi Wai Yau on Jun 23, 2010 5:19 PM -
How to design tree view in jsp
Hi,
New to jsp.How can i create a tree view in jsp.Just like mail.yahoo.com folders tree.Pls give me some code.
Thanksyou can try the following open source ,it supply an open source Treebean and some examples www.CoolServlets.com Check out "CSTreeBean"
-
How to create a table control in Business HTML??
Hi All,
I dont have much knowledge about Business HTML. Can anyone tell me how to create a table control. The requirement is to accept two fields from user and then on click of a button get these values populated on a table control. Can u pls help me out on this??
Also to create the table, I tried using SAPTemplateTableBegin()functions, but using these functions gives me an error. Is the because the standard SAP template files does not exist or what??Hi Raja,
My first approach was the same as u said but the issue is when i try to generate a template i.e. (system generated template), the generated template uses standard TemplateLibraryDHTML.html functions like `SAP_TemplateHeader()`
`SAP_BodyContentBegin()`
`SAP_FormBegin()`
The above all is not supported in our client's ITS and so we have to manually create a table control using the step loop functions in DHTML and correspondingly FIELD-SET in ABAP.
We could successfully do this but as i mentioned in my previous message, we still have to make the table entries editable and refresh the internal table when the values in the table are changed.
Pls help!!
Rgds,
Swapna.
Maybe you are looking for
-
Remote app on iPod touch and iPhone will not pair with Apple TV
I have an iphone 3G and ipod touch with the remote app installed. I am unable to pair either with my ATV. When I go to remotes on my ATV and remote app on either ipod or iphone there does not appear to be an option to control apple tv.
-
5th gen extreme does not play well with 1st gen express
I have extended my AP extreme (5th gen) with a 1st gen AP express. Once several devices connect (several iPhones/iPad) the network goes 'bad' after some undefined amount of time (maybe an hour or less). Symptoms are very slow internet access or devi
-
READ_TEXT: format problem when printing to PDF
Hello everybody, I am using READ_TEXT function module to get long text then display to PDF format. I met a problem with format as following: The long text has bold format, for e.g.: This is bold text. The READ_TEXT FM will then read the data as: <H>T
-
How to check the current networks on receiver with SHAREit?
1. Launch SHAREit and click Receive; 2. The page will change to "Waiting to receive", and click the "Friends cannot find you?" button; 3. The "Current networks" will pop up, as follows: .lan .EjrpN-........etc.
-
Mac enters a deep sleep during Time Machine full restore
I have the problem listed in the subject. Here is my configuration: Mac Pro (early 2008), dual quad-core Xenon 2.8 GHz, 10 GBs of RAM, hard disks as follows: Bay 1: 1 TB HD System, running OS X 10.6.2, ~500 gigs used, ~400 gigs free, small Bootcamp p