ABAP Objects: Problems with controls in splitter container
Hi community,
I have problems with the second control in a splitter container.
In the left container I build up a <u>list tree</u>.
On double click on a node a <u>column tree</u> in the right container is created.
This is working fine.
But if I double click on another node in the left container the right tree remains unchanged.
What do I have to do to update/refresh the tree in the right splitter container.
Thanks in advance.
Regards
Ferdi
Thanks for your reply Thomas and Serdar,
I now destroy the right container and the right tree control if it exists after the event 'double_click' on a node in the left tree.
The result is now that the container is created (I can see it on screen) but no tree is shown.
If I just destroy the tree control but not the container the tree from the first double click on the left tree is shown.
In the debugger I see that the list tree instance is linked to the caontainer (after first and second creation of tree control)
Maybe you can see in the coding below what's wrong or missing.
Coding after EVENT DOUBLE_CLICK in left Tree: <pre>
destroy old tree instance and container
if not g_container_2 is initial.
call method g_container_2->free.
clear: g_container_2, g_tree_2.
endif.
create right container
call method g_splitter->get_container
exporting row = 1
column = 2
receiving container = g_container_2.
setup the hierarchy header
hierarchy_header-heading = 'Hierarchy Header'.
hierarchy_header-width = 37.
create a column tree model instance
create object g_tree_2
exporting
node_selection_mode = cl_column_tree_model=>node_sel_mode_single
item_selection = 'X'
hierarchy_column_name = 'C1'
hierarchy_header = hierarchy_header.
create tree control
call method g_tree_2->create_tree_control
exporting
parent = g_container_2.
perform add_columns.
perform define_events.
set registered events
call method g_tree_2->set_registered_events
exporting
events = events.
perform get_data.
perform add_nodes_2.
expand the root node
call method g_tree_2->expand_node
exporting
node_key = 'Root'
level_count = 3.
</pre>
Regards
Ferdi
Message was edited by: Ferdi Meyer
Similar Messages
-
Problem with controlling Annotations from Excel VBA
Hi,
I have a PDF document that has plenty of sticky notes attached to it. These sticky notes have been added by multiple authors on all pages of the document. I am trying to import the contents of these sticky notes, their author and the page number to an excel spreadsheet. I am using Excel 2007 and Acrobat Professional 9.0.
This is the code that I am currently using to import the sticky notes, but the problem that I am facing is that when I run the macro -
Same sticky note contents, author and page numbers are imported multiple times
Not all sticky notes are imported, only some of them appear in the final excel spreadsheet
When I compare the number of sticky notes to that in the original PDF file, the number is correct. But the content is repeated content and that is the reason why only some of the sticky notes are imported.
This is an activity that I need to do on regular basis and the number of sticky notes that I need to import to excel may range between 100 to 200. It is really difficult to do this task manually, so an excel VBA macro could prove really helpful.
Sub ImportComments_Click()
Dim Fpath As String
Dim WordObj As Object
Dim wbkOutput As Excel.Workbook
Dim iRow As Integer
Dim i, j, k As Integer
Dim lRet As Long
Dim objAcroAVDoc As New Acrobat.acroAVDoc
Dim objAcroPDDoc As Acrobat.AcroPDDoc
Dim numPages As Long
Dim lAnnotscnt As Long
Dim Subtype As String
Dim NumComments As Long
Dim AcroApp As Acrobat.AcroApp
Dim objAcroPDPage As Acrobat.AcroPDPage
Dim annot As Acrobat.AcroPDAnnot
Sheets("Defect Log").Select
Range("L3").Activate
Fpath = ActiveCell.Value
Sheets("Defect Log").Select
Range("A1").Activate
i = 0
Do While (Not (IsEmpty(ActiveCell.Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 1).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 2).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 3).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 4).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 5).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 6).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 7).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 8).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 9).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 10).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 11).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 12).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 13).Value)) Or Not (IsEmpty(ActiveCell.Offset(0, 14).Value)))
i = i + 1
ActiveCell.Offset(1, 0).Select
Loop
iRow = i + 1
Set wbkOutput = ActiveWorkbook
lRet = objAcroAVDoc.Open(Fpath, "")
Set objAcroPDDoc = objAcroAVDoc.GetPDDoc
numPages = objAcroPDDoc.GetNumPages()
Set objAcroPDPage = objAcroPDDoc.AcquirePage(0)
For k = 1 To numPages
lAnnotscnt = objAcroPDPage.GetNumAnnots()
For m = 0 To lAnnotscnt - 1
If lAnnotscnt = 0 Then Exit For
Set objAcroPDAnnot = objAcroPDPage.GetAnnot(m)
If (objAcroPDAnnot.GetContents <> "" And objAcroPDAnnot.GetSubtype = "Text") Then
Cells(iRow, 5).Value = k
Cells(iRow, 2).Value = objAcroPDAnnot.GetContents()
Cells(iRow, 11).Value = objAcroPDAnnot.GetTitle()
iRow = iRow + 1
End If
Next m
Set objAcroPDPage = objAcroPDDoc.AcquirePage(k)
Next k
lRet = objAcroAVDoc.Close(1)
Set objAcroAVDoc = Nothing
Set objAcroPDAnnot = Nothing
Set objAcroPDPage = Nothing
Set objAcroPDDoc = Nothing
End SubMake sure you are current with 9.x patches, just on general principles.
The code seems fine – nothing jumping out at me.
You can also look at using the JSObject methods and trying this via the JavaScript stuff – that will give you more access to the Annotation information…
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Thu, 24 Nov 2011 04:25:12 -0800
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Problem with controlling Annotations from Excel VBA
Problem with controlling Annotations from Excel VBA
created by apreeti<http://forums.adobe.com/people/apreeti> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4044740#4044740 -
I'm having problems with FlashPlayerPlugin and plugin-container. They keep starting up and bogging down the system. This has been a recent occurrance. I've made sure that I have the latest version. I notice the problem when I am opening some applicatio, and it freezes. If I go to Task Manager, I can see the two Adobe apps sucking up CPU cycles. If I end the processes, then the other apps continue. Today, I uninstalled FlashPlayerPluginqand plugin-container. All day since I have had no freezing of an app. What should I do to correct the problem?
Here's an explanation of what those processes are.
Inside Flash Player Protected Mode for Firefox
I'm curious about what you did to uninstall just those. -
I am getting a pop up box saying that there is a problem with the plug in container for firefox. It keeps saying do I want windows to find a fix for it and close it or do I just want to close the program. What is this plug in container for firefox and why am I constantly getting this message? It has been happening for the past month or two.
It means either you have a faulty/out of date plugin, or your firewall/antivirus is causing problems with Firefox.
Make sure you update all your plugins and disable unwanted ones.
https://www.mozilla.org/en-US/plugincheck/
https://support.mozilla.org/en-US/kb/disable-or-remove-add-ons
Also, make sure your firewall/antivirus is not blocking plugincontainer.exe from the Firefox folder in your computer. How you make sure that's not the case will depend on your firewall/antivirus. -
Request for abap objects tutorial with examples
hi,
i am new to <b>abap objects</b>,
please send me a good tutorial for <b>abap objects</b> which contain good explanation with
good examples.
please send the tutorials to
<b>[email protected]</b>
thanks®ards
vamsi nHello,
<b>General Tutorial for OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
<b>Have a look at these links for OO ABAP.</b>
http://www.sapgenie.com/abap/OO/
http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b5654f411d194a60000e8353423/content.htm
http://www.esnips.com/doc/375fff1b-5a62-444d-8ec1-55508c308b17/prefinalppt.ppt
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
http://www.allsaplinks.com/
http://www.sapgenie.com/abap/controls/index.htm
http://www.esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
http://www.esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
http://help.sap.com/saphelp_erp2005/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
<b>SDN Series:</b>
https://www.sdn.sap.com/irj/sdn/developerareas/abap?rid=/webcontent/uuid/35eaef9c-0b01-0010-dd8b-e3b0f9ed7ccb [original link is broken]
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
<b>Basic concepts of OOPS</b>
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b6cae890-0201-0010-ef8b-f970a9c41d47
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1591ec90-0201-0010-3ba8-cdcd500b17cf
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
http://www.henrikfrank.dk/abapuk.html
http://www.erpgenie.com/abap/OO/
Regards,
Beejal
**Reward if this helps -
Problem with control panel in vista on gx620
My friend and i who just recently both bought the MSi gx620 notebook have a very strange problem. After a short while some of the objects in the control panel have become not functional. Things that does not worl is:
Windows Update
Windows power control
the window where you change desktop resolution and background image
User control
and some others
the thing it does it that it seems to open an explorer window but then immidiately closes it again.
Some of the things in the control panel still works such as device manger and other things.
We suspect that it might have to do with some of the updates vista downloads and installs but we do not know which one, have anyone else had this problem or have any idea on how to solve it?got exactly the same problem on my gx 720. I have tried to reinstalled c drive which helped until i tried either to update windows or install a new program.
Im considering sending the notebook to maintainance!
Patrick -
MiniSap MBS "Abap Objects" problem HELP
Hi All,
I just bought ABAP objects book MiniSap MBS released in 2001, and managed to istall with no problems.
My problem is that in the object navigator , i can not see the object selector.
Has anyone been through this problem and how to fix it??
I am talking about SAP MBS 4.6 Not the AS web 6.2.Check this thread:
Object Navigator
Peter -
I have two different panels in my program with various controls. The .h file
created by Labwindows for my .uir is partially reproduced below:
#include
#ifdef __cplusplus
extern "C" {
#endif
/* Panels and Controls: */
#define PANEL 1
#define PANEL_DATE 2
#define PANEL_FILE 3
#define PANEL_EWTR 4
#define PANEL_PROCESS 5
#define PANEL_CONVERT 6
#define PANEL_DONE 7
#define PANEL_PRINT 8
#define PANEL_SAVE 9
#define PANEL_TEXTBOX 10
#define PANEL_TEMP 11
#define PANEL_RH 12
#define PANEL_ATM 13
#define PANEL_MARKER_FREQ 14
#define PANEL_MARKER_DB 15
#define PANEL_MARKER_MIN 16
#define PANEL_MARKER_MAX 17
#define PANEL_MARKER_RIGHT 18
#define PANEL_MARKER_LEFT 19
#define PANEL_GRAPH 20
#define PANEL_SCALE 21
#define PANEL_MARKER 22
#define PANEL_TEXTMSG_3 23
#define PANEL_TEXTMSG_4 24
#define PANEL_TEXTMSG_2 25
#define PANEL_TEXTMSG 26
#define PANEL_2 2
#define PANEL_2_GRAPH 2
#define PANEL_2_N_5 3
#define PANEL_2_N_4 4
#define PANEL_2_N_3 5
#define PANEL_2_N_2 6
#define PANEL_2_N_1 7
#define PANEL_2_LED_5 8
#define PANEL_2_LED_4 9
#define PANEL_2_LED_3 10
#define PANEL_2_LED_2 11
#define PANEL_2_LED_1 12
#define PANEL_2_DONE 13
#define PANEL_2_MARKER_FREQ 14
#define PANEL_2_MARKER_DB 15
#define PANEL_2_MARKER_MIN 16
#define PANEL_2_MARKER_MAX 17
#define PANEL_2_MARKER_RIGHT 18
#define PANEL_2_MARKER_LEFT 19
#define PANEL_2_PRINT 20
#define PANEL_2_BUTTON_5 21
#define PANEL_2_BUTTON_4 22
#define PANEL_2_BUTTON_3 23
#define PANEL_2_BUTTON_2 24
#define PANEL_2_BUTTON_1 25
#define PANEL_2_CURRENT 26
#define PANEL_2_TEXTMSG_2 27
#define PANEL_2_TEXTMSG_3 28
#define PANEL_2_TEXTMSG_4 29
#define PANEL_2_TEXTMSG 30
#define PANEL_2_MARKER 31
The problem is that Labwindows has assigned the same control ID to controls
in the two panels, for example, PANEL_MARKER_MIN and PANEL_2_MARKER_MIN have
the same ID, i.e. 16. If I try to use both of these controls in the same
"case" statment, I get an error "Duplicate case label '16'." If I try to
modify the .h file manually, and change the ID for PANEL_2_MARKER_MIN to
216, there is no error and the program executes but it no longer recognizes
mouse clicks on the PANEL_2_MARKER_MIN control.
Is there some way to fix this problem? Is there a way to force Labwindows
to assign different IDs for all controls, regardless of what panel they are
in?
Thank you for your help in advance."...The problem is that Labwindows has assigned the same control ID to
controls
in the two panels, for example, PANEL_MARKER_MIN and PANEL_2_MARKER_MIN have
the same ID, i.e. 16. If I try to use both of these controls in the same
"case" statment, I get an error "Duplicate case label '16'." ..."
UIR editor counts controls inside the single panel they are in. In your
example, PANEL_MARKER_MIN and PANEL_2_MARKER_MIN have the same ID 'cause
both are the 16th control in their panel, rare case but it happens...
There is no way to force UIR editor to assign specific IDs to controls,
unless you add in one panel decoration controls or text messages and put
them before the other control in 'panel order' (ctrl+t in the editor): with
that trick you put in one panel all controls star
ting with order 0 (that is,
with control ID starting from 1 in the .h file), while in the second you
have non-operative contrls with lower IDs and operative controls or
indicator with higher IDs. This is NOT a polite solution since it relies on
the number of controls in the panels: every time you add new controls to a
panel, you should manage how IDs are assigned to them in order to avoid this
problem...
The best solution is to have two nested cases in your code, first one to
manage different panels, second one to manage different controls:
switch (panel) {
case PANEL:
switch (control) {
case PANEL_MARKER_MIN:
break;
// other controls of PANEL must be put here
break;
case PANEL_2:
switch (control) {
case PANEL_2_MARKER_MIN:
break;
// Other controls of PANEL_2 here
break;
That way you avoid any possible confusion and control mismatching that can
c
ause bizarre beaviour to your progrma.
Hope that helps
Roberto -
Problem with slash character in CONTAINS queries
Hi there,
i've got a problem with a CONTAINS query using Oracle Text.
The following query works fine:
select col1 from my_table_text where contains(text,'%02%')>0;
When i'm trying the query
select col1 from my_table_text where contains(text,'%02/%')>0;
the following error occurs:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50937: query too complex
I didn't find anywhere that the slash has a special meaning (escape character or something else). This occurs only when the slash character is positioned immediately after or before the % operator. The search string '%0/2%' works.
Oracle version: 9.2.0.1.0
OS: Solaris 8 SPARC
Maybe someone can help me.
Thanks in advance,
ChrisHi Chris,
I think you want to search for all words having '02/'.
Am I right? In that case try using '02//'
Yes. '/' means escape character. So when it finds '/%' it tries to escape '%'.
Hope this helps.
Regards,
Anupama -
Shared objects problem with translation
Hello
Here is my problem :
- my default portal language is French, and I login in French.
- I create a navpage in the "Shared objects" pagegroup. At Portal installation,
this pagegroup is in English, and there's an available translation in French.
- When i see my navPage being logged in French, the SmartLinks (Home, etc)
always display in English while i expected them to by in French.
- I don't have this problem in a "normal" pagegroup created in english and
translated into French.
regards
A.I have a second problem with shared objects :
So, i created that navpage and published it as a portlet to use it in pages but
when it doesn't appear in the portlets lists. In what Submenu of the porlets
navigator is it supposed to appear ? It is not in the "shared instances", and i
can't see any other "shared" directory. -
Sneak Preview ABAP 2004s: Problem with HTTP-Server
Hi..
I have just installed the sneak preview.
Everything works well.
But there is a problem with the webdynpro
for abap. When i try to start the example
i become a message: "Windows can not find
://:/sap/bc/webdynpro/sap/wdt_quiz ....... "
This error is from the HTTP options.
In transaction SMMS over extert functiuns->http->display
the parameter http_status_code is -1.
Can anyone help me what i can do?when you go into transaction SMICM->go to ->services you should atleast see one entry for HTTP
it will be something like below.
No. Protocol Service Name/Port Host Name Keep Alive Acti External Bind
1 HTTP 1081 xxxx.domain.com 30
i dont think that for this reason , you have to go for a reinstall, i am sure some config is missing.
Regards
Raja -
7700 speaker problems with control Pod
ok if anyone has speakers like this they know it comes with a little control pd that controls the volume and bass. well i think the problem is that sometimes the volume goes really high or really soft. and if you turn the volume up or down, the sound will go back to normal and you will be blasted or can't hear it. its very anoying to listen to music or game and this happens. it does this regardless of the number of speakers attached, and my drivers are up todate. i have onboard sound on a asus A8V mobo so its a newer board. some people said that the pod can get wonky, and i am checking to see if anyone has any suggestions on what i should maybe try short of RMA the speakers, its not that i don't want to RMA it but i would have to pay shipping on a set of speakers witch is kinda gay. any help would be great.. thanks
fox_9 wrote:
ok if anyone has speakers like this they know it comes with a little control pd that controls the volume and bass. well i think the problem is that sometimes the volume goes really high or really soft. and if you turn the volume up or down, the sound will go back to normal and you will be blasted or can't hear it. its very anoying to listen to music or game and this happens. it does this regardless of the number of speakers attached, and my drivers are up todate. i have onboard sound on a asus A8V mobo so its a newer board. some people said that the pod can get wonky, and i am checking to see if anyone has any suggestions on what i should maybe try short of RMA the speakers, its not that i don't want to RMA it but i would have to pay shipping on a set of speakers witch is kinda gay. any help would be great.. thanks
I have the same problem with my inspire 6.'s volume pod, after well under a year of flawless perfomance, the volume lowers randomly especially when I adjust the pod's volmue or just touch or move it. If I try to simply adjust for the loss of volume by cranking it up, it likes to blast me outta nowhere when it decides to work again. The only thing I can do to shortcut the 'down time' while waiting for it to adjust to normal level is to tap on the pod repeatedly usually causing the volume to adjust quicker...but I'm sure thats not the right method for fixing this irritating problem...PLEASE wont someone HELP ME?! Feel free to e-mail me @ [email protected], thanx!
Message Edited by BigLovan on 10-28-2004 01:16 AM -
HT5858 Problem with control center
When I swipe up from the bottom of my screen, the control center almost never comes up! What's going on?
Do you have a bulky case with an edge near the bottom of the screen?
Lots of people describe this problem with Otterbox Defender case.
https://discussions.apple.com/message/23015788
Sounds like maybe Apple just needs to make the CC swipe button a little bigger. -
Problem with JavaFX 8 Self-contained Application !
Hello everybody,
I generate a JavaFX 8 Self-Contained Application for Windows (.msi).
Eclipse 4.3.1 (Kepler)
JDK 8 B116 (EA - i don't use the lasts beta versions (B117 and B118) because there is a bug during installation for Windows XP)
Scene builder 2.0 (EA)
When i install this application (exec .msi) on my PC (Windows XP SP3 - JDK 7 and 8 installed), no problem.
So i install this application on 2 others PC (PC without JDK 8 installed).
The first PC on Windows XP SP3 (JDK 5 and 6 installed) : display problem - the font is very big as if I had made a zoom on the contents of the window !
The second PC on Windows 7 PRO (JDK 7 installed) - when in launch the application by the system menu, i have two strange problems
1/ when i move my mouse on the content of the window, this content becomes black !
2/ it's necessary to resize the window (full screen) and to come back to the original size to obtain a correct display !
I don't know where is the problem(s) ?
is it linked to JDK 8 (BETA version) embedded ?
If you have a idea do not hesitate !
Thanks you in advance
IBACKI only use external FW HDDs for my video work; my Capture Scratch files are on external drives and I export finished movies to external drives. My project files are on my system drive, this is the best way to work, I have never had any problems I could associate with this configuration
I am assuming you've gone thru your project, your timeline and everything is kosher. Is everything fully rendered? Have you mixed down your audio? Have you tried exporting just the last 30 seconds of one of the projects to see if you can replicate the problem? -
Problem with control hints and date formatting
Hi,
I have a Date attribute with a control hint 'dd.MM.yyyy' in my EO. When the user browse through the data all date values have 4 digits. But when a lazy user changes a date value to e.g. 12.12.04, the new value is stored as 12.12.0004. This is correct Java behavior.
When I change my control hint to 'dd.MM.yy', the lazy user can enter 12.12.04, which is stored as 12.12.2004. Great, but the user want to see a 4-digit year.
My problem is that the customer wants to enter only 2 digits for the year but the application must render the date with 4 digits.
How can I configure ADF to solve my problem?
Does Domains help? Is there a general switch in Java or ADF witch converts 12.12.04 to 12.12.2004?
Any hints are welcome.
Thanks,
MarkusFor your 2nd problem, you can create a field of type string (create a data type which has domain STRING), which has unlimited lenght. However, you can only have 3 of these fields in your table.
I think this will solve the # problem too.
Regards,
Valter Oliveira.
Maybe you are looking for
-
Itunes freezes the computer on windows 7 64bit pro
Hello, no matter what i do, itunes always makes my computer freeze. it happens by itself from time to times but after connecting my iphone it happens within 5 mins. i tried reinstalling itunes, closing AVG, even format my computer and start with a br
-
Is swing does not work in jdk1.4?
Sirs, I've tried to compile the following code, import javax.swing.*; public class HelloWorldSwing { * Create the GUI and show it. For thread safety, * this method should be invoked from the * event-dispatching thread. private static void createAndSh
-
Calendar as attachment in e-mail going from Workflow
Hi, I want to attach calendar to the mail that is going from the workflow. I am using SELFITEM as object type and SendTaskDescription as the method to send the mail. I want to first create the calendar and then add it as an attachment to the Task Con
-
REMOVING IPSEC VPN CONFIG FROM PIX 6.3 FIREWALL
Hey, we have pix 6.3 serving as internet firewall and we are int process of replacing it with new ASA Device. currently there are several site to site and remote vpn are configured for access purposes. i tried to remove one site2site ipsec vpn from
-
Hi all, I have an issue regarding the update query. I am trying to insert data in a Z table. The table consists of 4 Primary key. In which I am trying to update one of them. LOOP AT it_reg. * it_final1-schno = v_schnumber. it_final1-r