Generating events after jaxb unmarshling
Hye,
I have a an application that uses a request-response model. I have generated code for my schema. I thought this would free me from the hassle of SAX parsing where I have to write the whole parser. But in SAX atleast I know and specify, that at every occourence of a certain element what actions I must take. So therefore the jaxb concept confuses me. I unmarhsal my xml reponse and then i traverse the entire java xml content tree to see what I get. I am not aware of DOM as I havent used it actually, (but I will read into it after this email) but then does jaxb classes mean that after unmarshalling content, I go about and check the whole content tree for what response I got and what actions must I take. A root element can have a number of other actions elements and I need to identify which one was given (maybe by doing isInstanceOf() of or isSetXXX() on all objects to see what subelement I got). Do I have the right concept. I havent gotten deep into the project but I wanted to clear this before I make this descision final.
Can someone point me out to the finer concepts of jaxb binding and usuage, any article link, code example on how to use it to full advantage would be nice. The tutorial does not cover this point appropriately I feel. Just the basics.
Regards.
hi!
i could not found the .addActionListener(this) where are you adding the listener?
Similar Messages
-
Counter to generate event after certain counts
Hi everyone,
I would like to use my PXI card to generate an event (to my software) every say, 100 counts(for 100kHz Timebase). In other words, is it possible to generate an event every 1 ms based on the counts on the counters.
Also, is it possible to reset this counter based on the GPS 1 PPS? I wanted to sync this counter with the incoming GPS PPS. Thanks!
Regards,
YBHello,
It is possible to reset a counter using a boolean input. If you could convert you GPS PPS signal to a boolean array, this idea applies. I'm linking a knowledgebase article that demonstrates how to reset a counter. It should be very useful in getting you started.
http://digital.ni.com/public.nsf/allkb/65E3DBC715998C3286256E900075B7F8?OpenDocument
Best wishes,
Wallace F.
National Instruments
Applications Engineer -
Hi All,
I am using Labview7.0 and need to generate automatic event. It means without any button press or mouse move activity on front panel, i want to generate event after every particular time interval.
How i can fullfill my requirement??
Regards,
Ratna
Solved!
Go to Solution.Hi Ratna,
Dynamic event registration gives you increased flexibility in controlling how and where events are handled in your application. You can try the attachment. It should open in LV 7.0.
Thanks,
Joe
Attachments:
dynamiceventsdemo.zip 133 KB -
Collector Rule stays with the same Description after "fast" generated Events - (Custom MP)
Hi , I have a problem to customize one management pack
I use this MP for a reference
http://windowsmasher.wordpress.com/2011/02/07/monitoring-esxi-syslogs-with-opsmgr-2007-r2/
The problem is when I generate event (they are syslog events) the description Data is all the same for some time :)
For example if I generate 10 events fast , the description is all the same , but the data inside is different. MP should take XML element with Powershell script and it's working fine for a "slow" published events.
I don't know why only the description data is the same . I tried to modify the script to NULL the $bag variable and $xmlMessage but without any luck.
Any help will be appreciated
I'm trying to build SYSLOG parser to visualize my data and eventually to do some reports.Still having a problem? Can you explain a little more what the issue is? Are you saying the event collection provider does not work correctly when there is a burst of events matching your criteria?
Jonathan Almquist | SCOMskills, LLC (http://scomskills.com) -
Disabled button generates events
Hello,
I have a radio button that I want to disable while a background process is running.
After the process finishes, I enable the button again.
However, if the user clicks on the disabled button during the background process, an ActionEvent still gets generated.
Then when the button is re-enabled, it responds to the event that was generated while it was disabled. I want to prevent my button from responding to events generated while it was disabled.
I do not want to use the getGlassPane.setVisible(true) technique because I still want my cancel button to be able to generate events during the background process.
I am using JDK 1.3.1 and my button is in a panel contained in a JFrame application.
Suggestions?
Thank you,
Ted HillHello,
I have a radio button that I want to disable while a background process is running.
After the process finishes, I enable the button again.
However, if the user clicks on the disabled button during the background process, an ActionEvent still gets generated.
Then when the button is re-enabled, it responds to the event that was generated while it was disabled. I want to prevent my button from responding to events generated while it was disabled.
I do not want to use the getGlassPane.setVisible(true) technique because I still want my cancel button to be able to generate events during the background process.
I am using JDK 1.3.1 and my button is in a panel contained in a JFrame application.
Suggestions?
Thank you,
Ted Hill -
IDM Generate-Event in Sentinel
I have an IDM environment setup and I configured the Audit PA to send
events to the Sentinel IDM Collector. Sentinel is setup with the IDM
collector via audit to receive the messages. The setup works fine for
all built-in events.
What I am now trying to do is get custom events created with the
Generate-event token in IDM in Sentinel. They show up as an undefined
event and reference the LSC file. I have located the LSC files, but am
not able to modify those files directly. I have tried modifying them in
the cache, in the zip file after importing, and in the zip file before
posting. I tried modifying them in the zip file, then updating the xml
file with the hash values, but still am not having any luck with this.
The next thing I stumbled upon was the 'Custom Execution Mode'. I have
added the custom.js file and a LSC file which is referenced, but am not
sure of exactly what to add in the custom.js file to make the events get
properly recognized by Sentinel. Currently, my custom.js file has the
following for the customInit section:
Collector.prototype.customInit = function() {
// load additional maps, parameters, etc
var file = new File(instance.CONFIG.collDir + "dirxml_GCA.lsc");
this.MAPS.LSCMap.extend(this.CONFIG.collDir + "dirxml_GCA.lsc",
"#EventID");
return true;
I have uploaded the file dirxml_GCA.lsc and verified that it exists in
the plugins_repository for the aux_Identity-Manager... zip file.
robertivey
robertivey's Profile: http://forums.novell.com/member.php?userid=27938
View this thread: http://forums.novell.com/showthread.php?t=426647Hi robertivey,
This is a great question; as you've seen we've included some general
methods to customize and extend existing Collectors, but to do so you
also need to know a little bit about how the particular Collector you
are extending works. We have plans to add a bit of specific
documentation to the IDM Collector since it's so common to generate
custom IDM events.
What you need to know is that normal nAudit events contain a number of
pre-defined fields such as Date, EventID, Originator, Target, Text1,
Text2, and so forth. These pre-defined buckets define a datatype and a
little teeny bit of semantics to the values contained within them, but
then on top of that the protocol uses the LSC file to add an additional
layer of semantics on top of the basic elements by adding an additional
descriptor to each field in the event per event ID. So for example
you'll see "Text2 Title" as something like "Client IP" which tells you
that the value in Text2 for event ID 00031550 is the client IP of the
system that connected to and logged in to the UserApp (note that LSC
files use an 8-digit hex value for the event IDs; I believe IDM's policy
code uses decimal so you'll have to convert).
In our IDM Collector, what we've done is written a little parser that
knows what to do for any given value in any given nAudit event field.
For this example, we've written a parser that knows to take the value in
Text2 and put it in Sentinel's "InitiatorIP" field, adjusting for
endianess and the like if necessary. If you look through the LSC file
and through 'dirxml.js', you'll see that for every combination of nAudit
field and semantic LSC definition, there's a defined parser. We use the
nAudit field codes defined at the top of the LSC, so you'll see a
function: "String.prototype["T-Client IP"]", as an example.
Now, to extend this structure is quite simple - you need to define the
equivalent of an LSC file for your custom events. To do this, copy some
lines from the existing LSC into a new file and edit them to match your
events:
1) Change the event ID to match your events. Always prefix with '0003'
- the last four digits are the hex version of your event code, so '1000'
becomes '03e8'.
2) Give your event a name
3) Assign semantic labels to your custom event fields; you should have
paid attention to the first layer of semantic meaning in Originator,
Target, etc, but fill in more detail as applicable.
Note that if you can, re-use the same semantic labels that you see
applied to other, similar IDM events.
OK, once that's done, you need to add your new LSC file to the
Collector using the "Add auxiliary file" process detailed on the
Customization page.
Next, you need to load your new LSC file and use it to extend the
existing one. Simple: from the SDK, grab a copy of custom.js and add
lines like you have above (you don't need to create a new File object
though, the single 'extend' line is sufficient).
Finally, edit your Collector and set its Execution Mode to 'custom',
then restart.
Your events should now be parsed!
The only caveat is that if you don't re-use semantic labels from other
IDM events, you'll need to define your own parser for your own
field/label combination, which you can do in custom.js just by copying
one of the parsers in dirxml.js and modifying the function name to
match.
DCorlette
DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
View this thread: http://forums.novell.com/showthread.php?t=426647 -
Not able to generate reports after 8.1.1.3 patch installation
Hi All,
We are not able to generate reports after 8.1.1.3 patch installtion.
and we also followed workaround as below
1) Import the sif files from Siebel\8.1\Tools_1\REPPATCH\12-1VMBCSV.zip
2) Import the 4 SIF files in the following order:
S_XMLP_REP_TMPL_02112010.sif
SBL_XMLP_REPORT_SELECTION_FLG.sif
Report Template BC.sif
Report Template Registration Applet.sif
3)Apply the DDL for table S_XMLP_REP_TMPL and compile repository
Still not able to generate Reports.
Below is error message
Please ask your systems administrator to check your application configuration.
ObjMgrMiscLog Error 1 000000064e150fa0:0 2011-07-07 19:45:31 (busobj.cpp (1654)) SBL-DAT-00222: An error has occurred creating business component 'Report Template Position BC' used by business object 'Report Administration'.
Please ask your systems administrator to check your application configuration.
ObjMgrBusServiceLog Error 1 000000064e150fa0:0 2011-07-07 19:45:31 (swemenusvc.cpp (406)) SBL-DAT-00222: An error has occurred creating business component '<?>' used by business object '<?>'.
Please ask your systems administrator to check your application configuration.
Thanks
SeanHi Rajan,
Thankyou for for your reply.
Reports were working fine and we are able to generate reports at configured views in 8.1.1.1 version.
After installing 8.1.1.3 patch, if we click on reports icon below is the error message displayed.
An error has occurred creating business component '<?>' used by business object '<?>'.
Please ask your systems administrator to check your application configuration. (SBL-DAT-00222).
- is it mandatory to configure security model?(in 8.1.1.1 we used default security model)?
-is it necessary to import BIPDataService and BIPSiebelSecurityWS inbound Web Services?
- I didn't see below views as mentioned in bookshelf.
. Reports - Custom Templates
. Reports - Standard Templates?
Thanks
Sean -
How do I retrieve lost calendar events after OS 5 synch?
how do I retrieve lost calendar events after OS 5 synch?
You can re-download them for free from:
App Store>Purchased -
How to manually generate events in SMC 3.5 ?
Dear,
We are using the SDK of SMC 3.5 to build an application. To test the application, how can we generate events manually ? I'd like to have a script on Solaris that, when run, generates an event in the SMC database. Does anyone have such a script ?
Best regards,
Marc.Convert the CR2 files to DNG files, a folder at a time, using the latest DNG Converter that is from Adobe: http://www.adobe.com/downloads/updates/
OR buy an upgrade to LR 4.x. -
How do i get that little pop up menu with all the editing choices on it that i used to get? Is there a way to get the editing box to pop up as I make a new event instead of editing an event after i just made it ??????
Michal,
iCal Help is a good place to start. Here are a couple of examples: -
ICal removes events after 6 months
iCal automatically deletes events except for recurring events after six months. I want to keep all events as a record but cannot find anyway to do that. Is that be possible? I'm using iCal version 2.0.5.
PowerBook G4 Mac OS X (10.4.9)
PowerBook G4 Mac OS X (10.4.9)
PowerBook G4 Mac OS X (10.4.9)
PowerBook G4 Mac OS X (10.4.9)ddromanow,
Welcome to Apple Discussions.
Check iCal>Preferences...>Advanced>Uncheck "Delete events xx days after they have passed."
;~) -
Can I use AWT elements in a JSP, and so could I generate events with them?
This is because I�m doing a simple JSP that showing a button, my JSP is:
<html>
<%@ page import="java.awt.*" %>
<%! Button b = new Button("Hola!!!"); %>
<% add(b); %>
</html>
But when I tried to see the button in the browser, my JSP generates the following:
Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
<% add(b); %>
Could somebody help me please?.....
Can I use AWT elements in a JSP, and so could I generate events with them?
Thanks!!!There are 2 ways to run a web page dynamically:
1) Reload the page via use of javascript or some other scripting language.
2) Use an applet to regularly check a URL for the data
Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
Cheers,
Anthony -
DME file, is generated with # after every word.
Dear All~
When I'm generating DME file, I see the file is generated with # after every word.
Infact it should generate without #.
Do I need to maintain any settings?
Please share your experience.
Thanks and regards
SriCan you please elaborate your answer.
Please assist me understanding why are we converting LAP from Lightweight mode to Autonomous mode?
The issue is LAP is not able to discover Controller. -
Maintain Equipment Category u2192 Generate Event for Workflow
Maintain Equipment Category u2192 Generate Event for Workflow
I activated this,
Now what should i do further to receive a workflow mail when an Equipment is created for this Equipment Category
ThanksHello
Maybe this can be helpful
http://help.sap.com/saphelp_erp60_sp/helpdata/en/52/e4fac8e31111d58d3a0000e8284931/content.htm
You can Synchronizing Fixed Assets and Equipment and in this scenarier there are workflow you can send out.
BR/Håkan -
Generating events such as "push buttons" in ABAP
Hi,
Is it possible to make code in ABAP that given a screen number can generate events for that screen.
For example create a Z program that given the input parameters screen name and transaction, do something like:
screen 101.pushChangeButton.?
regards
Baranyes see this code.
REPORT YH648_DIALOG_PROGRAM.
*call screen 1649.
call screen 1642.
***&SPWIZARD: DATA DECLARATION FOR TABLECONTROL 'T_CONTROL'
*&SPWIZARD: DEFINITION OF DDIC-TABLE
TABLES: SPFLI.
*&SPWIZARD: TYPE FOR THE DATA OF TABLECONTROL 'T_CONTROL'
TYPES: BEGIN OF T_T_CONTROL,
MANDT LIKE SPFLI-MANDT,
CARRID LIKE SPFLI-CARRID,
CONNID LIKE SPFLI-CONNID,
COUNTRYFR LIKE SPFLI-COUNTRYFR,
CITYFROM LIKE SPFLI-CITYFROM,
AIRPFROM LIKE SPFLI-AIRPFROM,
COUNTRYTO LIKE SPFLI-COUNTRYTO,
CITYTO LIKE SPFLI-CITYTO,
AIRPTO LIKE SPFLI-AIRPTO,
FLTIME LIKE SPFLI-FLTIME,
DEPTIME LIKE SPFLI-DEPTIME,
ARRTIME LIKE SPFLI-ARRTIME,
DISTANCE LIKE SPFLI-DISTANCE,
DISTID LIKE SPFLI-DISTID,
FLTYPE LIKE SPFLI-FLTYPE,
PERIOD LIKE SPFLI-PERIOD,
END OF T_T_CONTROL.
*&SPWIZARD: INTERNAL TABLE FOR TABLECONTROL 'T_CONTROL'
DATA: G_T_CONTROL_ITAB TYPE T_T_CONTROL OCCURS 0,
G_T_CONTROL_WA TYPE T_T_CONTROL. "work area
DATA: G_T_CONTROL_COPIED. "copy flag
*&SPWIZARD: DECLARATION OF TABLECONTROL 'T_CONTROL' ITSELF
CONTROLS: T_CONTROL TYPE TABLEVIEW USING SCREEN 1642.
*&SPWIZARD: LINES OF TABLECONTROL 'T_CONTROL'
DATA: G_T_CONTROL_LINES LIKE SY-LOOPC.
DATA: OK_CODE LIKE SY-UCOMM.
module pf_status output.
set pf-status 'STATUS_1642'.
endmodule.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: COPY DDIC-TABLE TO ITAB
MODULE T_CONTROL_INIT OUTPUT.
IF G_T_CONTROL_COPIED IS INITIAL.
*&SPWIZARD: COPY DDIC-TABLE 'SPFLI'
*&SPWIZARD: INTO INTERNAL TABLE 'g_T_CONTROL_itab'
SELECT * FROM SPFLI
INTO CORRESPONDING FIELDS
OF TABLE G_T_CONTROL_ITAB.
G_T_CONTROL_COPIED = 'X'.
REFRESH CONTROL 'T_CONTROL' FROM SCREEN '1642'.
ENDIF.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MOVE ITAB TO DYNPRO
MODULE T_CONTROL_MOVE OUTPUT.
MOVE-CORRESPONDING G_T_CONTROL_WA TO SPFLI.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GET LINES OF TABLECONTROL
MODULE T_CONTROL_GET_LINES OUTPUT.
G_T_CONTROL_LINES = SY-LOOPC.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'T_CONTROL'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: PROCESS USER COMMAND
MODULE T_CONTROL_USER_COMMAND INPUT.
OK_CODE = SY-UCOMM.
PERFORM USER_OK_TC USING 'T_CONTROL'
'G_T_CONTROL_ITAB'
'FLAG'
CHANGING OK_CODE.
SY-UCOMM = OK_CODE.
ENDMODULE.
module back_exit.
leave program.
endmodule.
INCLUDE TABLECONTROL_FORMS *
*& Form USER_OK_TC *
FORM USER_OK_TC USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME
CHANGING P_OK LIKE SY-UCOMM.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA: L_OK TYPE SY-UCOMM,
L_OFFSET TYPE I.
&SPWIZARD: END OF LOCAL DATA----
*&SPWIZARD: Table control specific operations *
*&SPWIZARD: evaluate TC name and operations *
SEARCH P_OK FOR P_TC_NAME.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
L_OFFSET = STRLEN( P_TC_NAME ) + 1.
L_OK = P_OK+L_OFFSET.
*&SPWIZARD: execute general and TC specific operations *
CASE L_OK.
WHEN 'INSR'. "insert row
PERFORM FCODE_INSERT_ROW USING P_TC_NAME
P_TABLE_NAME.
CLEAR P_OK.
WHEN 'DELE'. "delete row
PERFORM FCODE_DELETE_ROW USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
CLEAR P_OK.
WHEN 'P--' OR "top of list
'P-' OR "previous page
'P+' OR "next page
'P++'. "bottom of list
PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
L_OK.
CLEAR P_OK.
WHEN 'L--'. "total left
PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
WHEN 'L-'. "column left
PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
WHEN 'R+'. "column right
PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
WHEN 'R++'. "total right
PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
WHEN 'MARK'. "mark all filled lines
PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'DMRK'. "demark all filled lines
PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'SASCEND' OR
'SDESCEND'. "sort column
PERFORM FCODE_SORT_TC USING P_TC_NAME
l_ok.
ENDCASE.
ENDFORM. " USER_OK_TC
*& Form FCODE_INSERT_ROW *
FORM fcode_insert_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_LINES_NAME LIKE FELD-NAME.
DATA L_SELLINE LIKE SY-STEPL.
DATA L_LASTLINE TYPE I.
DATA L_LINE TYPE I.
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE CXTAB_CONTROL.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
ASSIGN (L_LINES_NAME) TO <LINES>.
*&SPWIZARD: get current line *
GET CURSOR LINE L_SELLINE.
IF SY-SUBRC <> 0. " append line to table
L_SELLINE = <TC>-LINES + 1.
*&SPWIZARD: set top line *
IF L_SELLINE > <LINES>.
<TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
ELSE.
<TC>-TOP_LINE = 1.
ENDIF.
ELSE. " insert line into table
L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
ENDIF.
*&SPWIZARD: set new cursor line *
L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
*&SPWIZARD: insert initial line *
INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
<TC>-LINES = <TC>-LINES + 1.
*&SPWIZARD: set cursor *
SET CURSOR LINE L_LINE.
ENDFORM. " FCODE_INSERT_ROW
*& Form FCODE_DELETE_ROW *
FORM fcode_delete_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: delete marked lines *
DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
IF <MARK_FIELD> = 'X'.
DELETE <TABLE> INDEX SYST-TABIX.
IF SY-SUBRC = 0.
<TC>-LINES = <TC>-LINES - 1.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " FCODE_DELETE_ROW
*& Form COMPUTE_SCROLLING_IN_TC
text
-->P_TC_NAME name of tablecontrol
-->P_OK ok code
FORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
P_OK.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TC_NEW_TOP_LINE TYPE I.
DATA L_TC_NAME LIKE FELD-NAME.
DATA L_TC_LINES_NAME LIKE FELD-NAME.
DATA L_TC_FIELD_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
ASSIGN (L_TC_LINES_NAME) TO <LINES>.
*&SPWIZARD: is no line filled? *
IF <TC>-LINES = 0.
*&SPWIZARD: yes, ... *
L_TC_NEW_TOP_LINE = 1.
ELSE.
*&SPWIZARD: no, ... *
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
ENTRY_ACT = <TC>-TOP_LINE
ENTRY_FROM = 1
ENTRY_TO = <TC>-LINES
LAST_PAGE_FULL = 'X'
LOOPS = <LINES>
OK_CODE = P_OK
OVERLAPPING = 'X'
IMPORTING
ENTRY_NEW = L_TC_NEW_TOP_LINE
EXCEPTIONS
NO_ENTRY_OR_PAGE_ACT = 01
NO_ENTRY_TO = 02
NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
ENDIF.
*&SPWIZARD: get actual tc and column *
GET CURSOR FIELD L_TC_FIELD_NAME
AREA L_TC_NAME.
IF SYST-SUBRC = 0.
IF L_TC_NAME = P_TC_NAME.
*&SPWIZARD: et actual column *
SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
ENDIF.
ENDIF.
*&SPWIZARD: set the new top line *
<TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
ENDFORM. " COMPUTE_SCROLLING_IN_TC
*& Form FCODE_TC_MARK_LINES
marks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
&SPWIZARD: EGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: mark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = 'X'.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
*& Form FCODE_TC_DEMARK_LINES
demarks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: demark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = SPACE.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
see at pf-status.
Message was edited by:
sunil kumar
Maybe you are looking for
-
How to do a Generic Connectivity (ODBC) ?
Hello, Generic Connectivity provide Oracle Database to connect another database via ODBC. In my case, it is Oracle 8.1.6 which connects to Sybase Enterprise 11 on Win NT. The Module "Generic Connection" is installed. I view it by the Oracle Universal
-
The ABAP/4 Open SQL array insert results in duplicate Record in database
Hi All, I am trying to transfer 4 plants from R/3 to APO. The IM contains only these 4 plants. However a queue gets generated in APO saying 'The ABAP/4 Open SQL array insert results in duplicate record in database'. I checked for table /SAPAPO/LOC, /
-
I have two iPads one has iOS 7.0.4 the other has 5.1.1 have tried to update the 5.1.1 but keep getting message no update available
-
How to link a marketing characteristic with a table? ( TR CL03 - CT04 - BP)
Hello, I'm trying to link a table (CRM_MKTPL_CAMPAIGN field : EXTERNAL_ID) with a mkt characteristic so that the user could select a value for this characteristic through a matchcode in transaction BP. I understood that i had to deassign the characte
-
Iphone4 not recognized by computer when I plug it in.
I plug my phone into my computer and it starts charging, but it's not recognized by itunes...any help? When I go to My Computer the phone isn't even recognized by my computer as a device. This is such a pain in the butt bc I can't update my iOS or ev