How to Commit before Insert Row when Press Create Insert Button ?
Hi all;
I'm Using JDev 11.1.1.2.0
How to Commit before Insert Row when Press Create Insert Button in ADF11g?
<af:commandButton actionListener="#{bindings.CreateInsert.execute}"
text="CreateInsert"
disabled="#{!bindings.CreateInsert.enabled}"
id="cb8" />
best regards;
You need to do a custom method eather in managed bean or in Application module to do that.
in managed bean it would be something like:
public void CommitAndInsert(ActionEvent actionEvent) {
OperationBinding opCommit = ADFUtils.findOperation("Commit");
opCommit.execute();
OperationBinding opCreateInsert = ADFUtils.findOperation("CreateInsert");
opCreateInsert.execute();
In page bindings Commit and CreateInsert must exist
then the button actionListener will be
<af:commandButton actionListener="#{backing.CommitAndInsert}"
Similar Messages
-
Hi,
I am developing apps on for 4.1 and on Xcode3.2. My Apps crash when press back buton . When press back back button Last class is appeared slightly than crash, with no error or warning ....Here are the code....crash on Back Funtion
#import "TransactionSummaryDetailViewController.h"
#import "TransactionSummaryData.h"
#import "Constant.h"
#import "DataBase.h";
#import "Common.h"
#import "YPCardHolderServiceService.h"
#import "SelectionScreenViewController.h"
@implementation TransactionSummaryDetailViewController
@synthesize table,cardReference;
@synthesize waitIndicator,transactionsummary,keyArray,valueArray,isSummaryAvailable;
@synthesize startDate,endDate;
// The designated initializer. Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
// Custom initialization
return self;
-(void)getrowcount{
if(transactionsummary.cardholdernmae !=nil){
[keyArray addObject:@"Card Holder Name: "];
[valueArray addObject:transactionsummary.cardholdernmae];
if(transactionsummary.cardnumber!=nil){
[keyArray addObject:@"Card Number: "];
[valueArray addObject:transactionsummary.cardnumber];
if(transactionsummary.debittransactioncount != nil){
[keyArray addObject:@"Debit Tx. Count: "];
[valueArray addObject:transactionsummary.debittransactioncount];
if(transactionsummary.debittransactionvalue!=nil){
[keyArray addObject:@"Debit Tx. Value"];
[valueArray addObject:transactionsummary.debittransactionvalue];
if(transactionsummary.credittransactioncount!=nil){
[keyArray addObject:@"Credit Tx. Count: "];
[valueArray addObject:transactionsummary.credittransactioncount];
if(transactionsummary.credittransactionvalue!=nil){
[keyArray addObject:@"Credit Tx. Value: "];
[valueArray addObject:transactionsummary.credittransactionvalue];
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
appDelegate = [[UIApplication sharedApplication]delegate];
keyArray = [[NSMutableArray alloc]init];
valueArray = [[NSMutableArray alloc]init];
[self getrowcount];
NSLog(@"Key Array Count is %d",[keyArray count]);
[table setBackgroundColor:[UIColor clearColor]];
[table setSeparatorColor:TableViewCellSeperatorColor];
[waitIndicator setHidden:YES];
[self setTitle:@"Summary Details"];
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setImage:[UIImage imageNamed:@"list.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(BacktoView) forControlEvents:UIControlEventTouchUpInside];
[button setFrame:CGRectMake(0, 0, 76, 44)];
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
if(!isSummaryAvailable)
if([Common isNetworkAvailable])
[waitIndicator startAnimating];
YPCardHolderServiceService *services = [[YPCardHolderServiceService alloc] init];
YPTransactionsSummaryRequest *summaryRequest = [[YPTransactionsSummaryRequest alloc] init];
summaryRequest.SC = appDelegate.SC;
summaryRequest.userName = appDelegate.userName;
summaryRequest.valid =TRUE;
summaryRequest.cardReference =[NSString stringWithFormat:@"%@",cardReference];
NSLog(@"Start Date Is %@ and End Date is %@",startDate,endDate);
summaryRequest.startDate = startDate;
summaryRequest.endDate = endDate;
summaryRequest.applicationType = @"M";
[services getTransactionsSummary:self action:@selector(getTransactionsSummaryHandlers:) transactionsSummaryRequest:summaryRequest];
[summaryRequest release];
[services release];
[super viewDidLoad];
//Handle the Response of getTransactionsSummary
-(void)getTransactionsSummaryHandlers:(id) value
[waitIndicator stopAnimating];
// Handle errors
if([value isKindOfClass:[NSError class]]) {
NSLog(@"%@", value);
return;
// Handle faults
if([value isKindOfClass:[SoapFault class]]) {
NSLog(@"%@", value);
return;
// Do something with the YPLoginResponse* result
YPTransactionsSummaryResponse* result = (YPTransactionsSummaryResponse*)value;
if(result.statusCode == 0)
NSLog(@"Number of Transaction is =%d",[result.transactionSummaryList count]);
NSLog(@"Step 1 ='%@'",appDelegate.userID);
NSString *deleteQuery = @"delete from TransactionSummary where userid = ";
NSLog(@"Step 1 ='%@'",appDelegate.userID);
deleteQuery = [deleteQuery stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
NSLog(@"delete query= '%@'",deleteQuery);
[DataBase deleteDataFromTable:deleteQuery];
NSLog(@"delete query= '%@'",deleteQuery);
//for (int i =0; i< [result.transactionSummaryList count]; i++)
for (int i =0; i< [result.transactionSummaryList count] -2; i++)
NSLog(@"for loop= %d",i);
YPTransactionSummaryDetails *transactionSummary = (YPTransactionSummaryDetails*)[result.transactionSummaryList objectAtIndex:i];
NSLog(@"cardholdername= '%@'",transactionSummary.cardholderName);
/*NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,userid) values(";
insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','xxxx xxxx xxxx %@',%d,%d,%d,%d,'%@',%@)",
transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,
appDelegate.userID]];*/
//Add by sarvesh
NSString *insertQuery = @"Insert into TransactionSummary(cardholdername,cardnumber,debittransactioncount,debittransac tionvalue,credittransactioncount,credittransactionvalue,cardreference,userid) values(";
insertQuery =[insertQuery stringByAppendingString:[NSString stringWithFormat:@"'%@','%@',%d,%d,%d,%d,'%@',%@)",
transactionSummary.cardholderName,transactionSummary.cardNumber,transactionSumm ary.debitTransactionCount,
transactionSummary.debitTransactionValue,transactionSummary.creditTransactionCo unt,transactionSummary.creditTransactionValue,cardReference,
appDelegate.userID]];
NSLog(@"Insert Query for Transaction Summary is %@",insertQuery);
[DataBase InsertIntoTable:insertQuery];
//Read Update Data From DataBase and Refresh Table
NSString *query = @"Select * from TransactionSummary where userid = ";
query = [query stringByAppendingString:[NSString stringWithFormat:@"%@ and cardreference = '%@'",appDelegate.userID,cardReference]];
NSLog(@"select query= %@",query);
NSMutableArray *temp=[DataBase getTransactionSummaryTableData:query];
if([temp count] > 0)
transactionsummary = (TransactionSummaryData*)[temp objectAtIndex:0];
[keyArray removeAllObjects];
[valueArray removeAllObjects];
[self getrowcount];
[table reloadData];
-(void)viewDidAppear:(BOOL)animated
CGFloat navBarHeight = 50.0f;
CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
[self.navigationController.navigationBar setFrame:frame];
[super viewDidAppear:animated];
-(IBAction)BacktoView
NSLog(@"in back function..TrasactionSummaryDetail");
SelectionScreenViewController *screenView=[[SelectionScreenViewController alloc] initWithNibName:@"SelectionScreenViewController" bundle:nil];
[self.navigationController popViewControllerAnimated:YES];
[screenView release];
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewCellEditingStyleNone;
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
return 1;
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
return cellHeightForGroupedTable;
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
if(section == 0)
return [keyArray count];
else
return 0;
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
NSString *title = nil;
switch (section){
case 0:{
//title = @"Summary Details";
break;
return title;
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section {
if ([self tableView:tableView titleForHeaderInSection:section] != nil) {
return tableHeaderHeight;
else {
// If no section header title, no section header needed
return 0;
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
NSString *sectionTitle = [self tableView:tableView titleForHeaderInSection:section];
if (sectionTitle == nil) {
return nil;
// Create label with section title
UILabel *label = [[[UILabel alloc] init] autorelease];
label.frame = CGRectMake(20, 6, 300, 30);
label.backgroundColor = [UIColor clearColor];
label.textColor = HeaderTextColor;
label.shadowColor = HeaderTextShadowColor;
label.shadowOffset = CGSizeMake(0.0, 1.0);
label.font = HeaderTextFontSize;
label.text = sectionTitle;
// Create header view and add label as a subview
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320,60)];
[view autorelease];
[view addSubview:label];
return view;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell *cell = nil;
NSString *cellIdentifier;
cellIdentifier = @"SectionsTableIdentifier";
int row = [indexPath row];
CGRect nameLabelRect = CGRectMake(19 , 8, 240, 29);
CGRect cardlabelRect = CGRectMake(19,31,240,15);
UILabel *nameLabel = [[UILabel alloc] initWithFrame:nameLabelRect];
UILabel *cardnumber = [[UILabel alloc] initWithFrame:cardlabelRect];
cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
if(cell == nil){
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:cellIdentifier] autorelease];
// Remove all subview from cell content view
for (UIView *view in cell.contentView.subviews){
[view removeFromSuperview];
[cell setAccessoryType:UITableViewCellAccessoryNone];
[nameLabel setTextColor:firstLabelFontColor];
[nameLabel setFont:firstLabelFont];
[nameLabel setFont:firstLabelFontSize];
nameLabel.textAlignment = UITextAlignmentLeft;
nameLabel.text = [NSString stringWithFormat:@"%@ : %@",[keyArray objectAtIndex:row],[valueArray objectAtIndex:row]];
[cell.contentView addSubview: nameLabel];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
[cell setBackgroundColor:[UIColor clearColor]];
[cell setBackgroundColor:TableViewCellColor];
[nameLabel setBackgroundColor:[UIColor clearColor]];
[cardnumber setBackgroundColor:[UIColor clearColor]];
[cardnumber release];
[nameLabel release];
return cell;
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceO rientation {
// Return YES for supported orientations
return (interfaceOrientation == UIInterfaceOrientationPortrait);
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
- (void)dealloc {
[table release];
[waitIndicator release];
[keyArray release];
[valueArray release];
[transactionsummary release];
[super dealloc];
@endThis is the user-to-user tech support site. For carrier issues go to the Dev forums.
You might want to note that the current iOS is 4.3.3, and the current SDK is 4.3 and XCode 4.0.2 -
How does a workflow get triggered when we create a Shopping cart
Hi all,
In SRm how does a workflow gets triggered when we create a Shopping cart...what i mean is that in r/3 we use changedocument object or function modules etc..likewise in srm how the wf gets triggere...can anyone help me.
Thanks&Regards,
HariHi martin,
yes i accept that in SRM also workflows are all started by event...what i mean is in R/3 we go for Change document object(swec) or some other method for event creation...like that in SRM what is there?Just whenwe create a Shopping cart How the workflow is trigerred...suppose if it is trigerred using fm swe_event_create where they might have called the function module.
Thanks&Regards,
Hari -
How can we enable tick icon when user click any button
how can we enable tick icon when user click any button in captivate 6@
hi first of all thanks for imitate action.
actually i want to make a menu (TOC) with tick icons, on starting all ticks are disabled but when i click on any button from my menu i want to enable tick for that particular button so that user can know easily the visited button. -
Hear sound when press the home button, as if there is a gap underneath !!
Hear sound when press the home button, as if there is a gap underneath !!
Take it back to Apple if you think there's a problem with it.
-
How can i select the next column instead of next row when press enter key
I need to know how can i select the next column instead of next row when i press the enter key.By default ,when i press enter key the next row is selected and the column remain unchanged but I wants opposite that is the row should remain unchanged but column index will changed.
Thanks to all.Well, the right arrow key will already move you to the next column, so the easiest way to do this is to modify the InputMap to have the Enter key invoke the same Action as the right arrow key.
You can search the forum for my "Table Actions" (without the space) example that will show you how to do this. -
How to get current row value from table when press the submit button
Hi,
I want to get the current row value of SuccessionPlanId which is one of the column in a advanced table.
I created one button (created using personalization, action fired thru CO)in the table as column, so each row having one button, if i press the first row's button means then i want to fetch the first row's SuccessionPlanId and if it is 3rd means then i want to get the value of third row's value.
How to do it in controller extension?
Please reply soon, its urgent.
Thanks in advance,
SANPratap,
Yes, I tried with 'delete' button which is seeded one.
For this, our code using row reference is working too fine. it throws exact SuccessionPlanId value of corresponding row.
I created MessageStyledText, but here i need to give text value right, then only it 'll appear in the page.
Instead i created one image and fired explicitly from the controller processRequest method.
But the same problem remains..
here my code:
public void processRequest(OAPageContext pageContext, OAWebBean webBean){
super.processRequest(pageContext, webBean);
OAButtonBean oabb = (OAButtonBean)webBean.findChildRecursive("XXSubmit");
FireAction action = new FireAction("XXSubmit");
oabb.setAttributeValue(UIConstants.PRIMARY_CLIENT_ACTION_ATTR, action);
OAImageBean oaib=(OAImageBean)webBean.findChildRecursive("XXSubmitImage");
oaib.setFireActionForSubmit("XXSubmitImage", null, null, true);
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean){
if("XXSubmitImage".equals(pageContext.getParameter("event"))){
String succIdI="";
String rowRefI = pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
if(rowRefI != null && !("".equalsIgnoreCase(rowRefI ))){
PerSuccPlanSearchVORowImpl rowI = (PerSuccPlanSearchVORowImpl)oaam.findRowByRef(rowRefI);
if(rowI != null)
succIdI=rowI.getAttribute("SuccessionPlanId").toString();
}else{
throw new OAException("Row is null");
throw new OAException(succIdI, OAException.INFORMATION);
}else{
super.processFormRequest(pageContext, webBean);
If i run the page using this controller, it throws exception without any value, because for 'succIdI' i initialized without any string.
Can you please suggest me how to solve? -
How to deselect the selected row when we come back again?
Hi all,
I have one screen(100),which contains records.User can select any one record and click 'Details' button.Then it will take to screen 110.When I am coming back to screen 110 again.The previously selected row is again in selected mode only.Now if I am selecting another row and click the 'Detail' button.I am getting the error saying that 'Please select one record'.In debugging mode also I checked using the FM get_current_cell but nothing is getting selected surprisingly.
Even I used CALL METHOD grid->refresh_table_display in the PBO of screen 100.
Below is the code I used in PBO of screen 100
ODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'PF100'.
SET TITLEBAR 'TITLE'.
DATA: G_CONSISTENCY_CHECK TYPE CHAR1.
DATA: G_EXCLUDE TYPE UI_FUNCTIONS.
IF container100 IS INITIAL.
*ex_FUNCTIONS-
*-- Check execution mode (foreground/background)
IF cl_gui_alv_grid=>offline( ) IS INITIAL.
CREATE OBJECT CONTAINER100
EXPORTING CONTAINER_NAME = 'CONTAINER100'.
CREATE OBJECT GRID
EXPORTING I_PARENT = CONTAINER100.
CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BYPASSING_BUFFER = 'X'
I_BUFFER_ACTIVE = ''
I_CONSISTENCY_CHECK = G_CONSISTENCY_CHECK
IT_TOOLBAR_EXCLUDING = G_EXCLUDE
IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
I_STRUCTURE_NAME =
IS_VARIANT = gs_layout
I_SAVE = 'A'
I_DEFAULT = 'X'
IS_LAYOUT = X_LAYOUT
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING = IT_TOOLBAR
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
CHANGING
IT_OUTTAB = IT_YAPOHDR_MAIN[]
IT_FIELDCATALOG = IT_FIELDCAT[].
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4.
ENDIF.
*--Register enter key for data changed event
CALL METHOD grid->set_ready_for_input
EXPORTING i_ready_for_input = 0.
create object event_receiver.
Register the 'hotspot' event handler method dynamically...
set handler event_receiver->handle_hotspot_click for grid.
Register the User Command event handler method dynamically...
set handler event_receiver->handle_user_command for grid.
Register the User Command event handler method dynamically...
set handler event_receiver->handle_data_changed for grid.
else.
CALL METHOD grid->refresh_table_display.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
The below is the code I used in PAI of screen 110.
MODULE USER_COMMAND_0110 INPUT.
DATA : LT_DETAILS_MAIN LIKE YAPOPLN_ITM OCCURS 0 WITH HEADER LINE,
LV_POP TYPE C,
APPROVE.
CASE SY-UCOMM.
WHEN 'BACK'.
CALL METHOD grid->REFRESH_TABLE_DISPLAY.
CALL METHOD grid->GET_FRONTEND_FIELDCATALOG.
LEAVE TO SCREEN 0.
WHEN 'EXIT'.
LEAVE TO SCREEN 0.
ENDMODULE. " USER_COMMAND_0110 INPUT
Please Let me know if there is any solution.
Thanks,
BalajiHello Balaji
The sample report <b>ZUS_SDN_TWO_ALV_GRIDS_7</b> shows basically what I meant in my previous answer. There is no row mark available on the first ALV list. Instead of bothering the user to push a button he or she can simply double-click on the ALV lists and sees the details of a customer.
As you can see there is absolutely no need to free any object instances or rebuild grid controls.
Final remark: based on the function module you mention I assume you are still using fm-based ALV lists. Do not use them. OO-based ALV lists are much easier to develop, to maintain and to enhance.
*& Report ZUS_SDN_TWO_ALV_GRIDS_7
*& Description: Display two ALV lists either in single screen or
*& two screens
*& Screen '0100' contains no elements.
*& ok_code -> assigned to GD_OKCODE
*& Flow logic:
* PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
* PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
REPORT zus_sdn_two_alv_grids_7.
TYPE-POOLS: abap.
DATA:
gd_repid TYPE syst-repid,
gd_okcode TYPE ui_func,
go_docking TYPE REF TO cl_gui_docking_container,
go_docking2 TYPE REF TO cl_gui_docking_container,
go_splitter TYPE REF TO cl_gui_splitter_container,
go_cell_top TYPE REF TO cl_gui_container,
go_cell_bottom TYPE REF TO cl_gui_container,
go_grid1 TYPE REF TO cl_gui_alv_grid,
go_grid2 TYPE REF TO cl_gui_alv_grid,
gs_layout TYPE lvc_s_layo.
DATA:
gs_knb1 TYPE knb1,
gt_knb1 TYPE STANDARD TABLE OF knb1,
gt_knvv TYPE STANDARD TABLE OF knvv.
* CLASS lcl_eventhandler DEFINITION
CLASS lcl_eventhandler DEFINITION.
PUBLIC SECTION.
CLASS-METHODS:
handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
IMPORTING
e_row
e_column
es_row_no
sender.
ENDCLASS. "lcl_eventhandler DEFINITION
* CLASS lcl_eventhandler IMPLEMENTATION
CLASS lcl_eventhandler IMPLEMENTATION.
METHOD handle_double_click.
* define local data
DATA:
ls_knb1 TYPE knb1.
CHECK ( sender = go_grid1 ).
READ TABLE gt_knb1 INTO ls_knb1 INDEX e_row-index.
CHECK ( ls_knb1-kunnr IS NOT INITIAL ).
CALL METHOD go_grid1->set_current_cell_via_id
EXPORTING
* IS_ROW_ID =
* IS_COLUMN_ID =
is_row_no = es_row_no.
* Triggers PAI of the dynpro with the specified ok-code
** CALL METHOD cl_gui_cfw=>set_new_ok_code( 'DETAIL' ). " not on 4.6c
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'DETAIL'
* IMPORTING
* RC =
ENDMETHOD. "handle_double_click
ENDCLASS. "lcl_eventhandler IMPLEMENTATION
PARAMETERS:
p_single RADIOBUTTON GROUP radi, " single screen
p_double RADIOBUTTON GROUP radi. " two screens
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1
WHERE bukrs = '1000'.
" Add dummy customer without any master sales data
CLEAR: gs_knb1.
gs_knb1-kunnr = 'DUMMY'.
gs_knb1-bukrs = '1000'.
INSERT gs_knb1 INTO gt_knb1 INDEX 1.
* Create docking container
CREATE OBJECT go_docking
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF ( p_single = abap_true ).
PERFORM create_splitter_container.
ELSE.
* Create 2nd docking container
CREATE OBJECT go_docking2
EXPORTING
parent = cl_gui_container=>screen0
ratio = 90
EXCEPTIONS
OTHERS = 6.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
IF ( p_single = abap_true ).
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_cell_top
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_cell_bottom
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
* Create ALV grids
CREATE OBJECT go_grid1
EXPORTING
i_parent = go_docking
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT go_grid2
EXPORTING
i_parent = go_docking2
EXCEPTIONS
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
* Set event handler
SET HANDLER: lcl_eventhandler=>handle_double_click FOR go_grid1.
* Display data
gs_layout-grid_title = 'Customers'.
CALL METHOD go_grid1->set_table_for_first_display
EXPORTING
i_structure_name = 'KNB1'
is_layout = gs_layout
CHANGING
it_outtab = gt_knb1
EXCEPTIONS
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.
gs_layout-grid_title = 'Customers Details (Sales Areas)'.
CALL METHOD go_grid2->set_table_for_first_display
EXPORTING
i_structure_name = 'KNVV'
is_layout = gs_layout
CHANGING
it_outtab = gt_knvv " empty !!!
EXCEPTIONS
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.
* Link the docking container to the target dynpro(s)
gd_repid = syst-repid.
IF ( p_single = abap_true ).
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
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.
ELSE.
CALL METHOD go_docking->link
EXPORTING
repid = gd_repid
dynnr = '0100'
* CONTAINER =
EXCEPTIONS
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.
CALL METHOD go_docking2->link
EXPORTING
repid = gd_repid
dynnr = '0200'
* CONTAINER =
EXCEPTIONS
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.
ENDIF.
* NOTE: dynpro does not contain any elements
CALL SCREEN '0100'.
* Flow logic of dynpro (does not contain any dynpro elements):
*PROCESS BEFORE OUTPUT.
* MODULE STATUS_0100.
*PROCESS AFTER INPUT.
* MODULE USER_COMMAND_0100.
" NOTE: screen '0200' uses same flow logic as '0100'
END-OF-SELECTION.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'STATUS_0100'. " contains push button "DETAIL"
* SET TITLEBAR 'xxx'.
* Refresh display of detail ALV list
CALL METHOD go_grid2->refresh_table_display
* EXPORTING
* IS_STABLE =
* I_SOFT_REFRESH =
EXCEPTIONS
OTHERS = 2.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE gd_okcode.
WHEN 'BACK' OR
'EXIT' OR
'CANC'.
IF ( syst-dynnr = '0100' ).
SET SCREEN 0. LEAVE SCREEN.
ELSE.
SET SCREEN 100.
ENDIF.
* User has pushed button "Display Details"
WHEN 'DETAIL'.
PERFORM entry_show_details.
IF ( p_single = abap_true ).
ELSE.
SET SCREEN 200.
ENDIF.
WHEN OTHERS.
ENDCASE.
CLEAR: gd_okcode.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form ENTRY_SHOW_DETAILS
* text
* --> p1 text
* <-- p2 text
FORM entry_show_details .
* define local data
DATA:
ld_row TYPE i,
ls_knb1 TYPE knb1.
CALL METHOD go_grid1->get_current_cell
IMPORTING
e_row = ld_row.
READ TABLE gt_knb1 INTO ls_knb1 INDEX ld_row.
CHECK ( syst-subrc = 0 ).
SELECT * FROM knvv INTO TABLE gt_knvv
WHERE kunnr = ls_knb1-kunnr.
ENDFORM. " ENTRY_SHOW_DETAILS
*& Form CREATE_SPLITTER_CONTAINER
* text
* --> p1 text
* <-- p2 text
FORM create_splitter_container .
* Create splitter container
CREATE OBJECT go_splitter
EXPORTING
parent = go_docking
rows = 2
columns = 1
* NO_AUTODEF_PROGID_DYNNR =
* NAME =
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Get cell container
CALL METHOD go_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = go_cell_top.
CALL METHOD go_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = go_cell_bottom.
ENDFORM. " CREATE_SPLITTER_CONTAINER
Regards
Uwe -
How to avoid the pop up when pressing CTRL-SHIFT-DEL and delete the cache instantly?
When pressing CTRL-SHIFT-DEL an additional dialog arises. How do I disable it to gain the behaviour of FF 2.0 which deletes the history instantly by taking the settings of the "Clear history when Firefox closes" menu?
You did not get hacked through phone its that simple..
Common sense will tell you not to open any suspect links
If i have helped at all a click on the white star below would be nice thanks.
Now using the Lumia 1520 -
How to filter some illegal rows when SQL Loader import data
I want to import data in a csv file by SQL Loader.
but , I don't want to import some illegal rows
when the column 'name' is null
how can I modify the SQL Loader ctrl file?Hi,
refer this blogpost:
http://gennick.com/allnull.html
thanks,
X A H E E R -
How to Suppress Find Variants screen when pressing variant button
Hi Experts,
I have a problem when i am pressing the variants button in the selection-screen of a report, Find Variants subscreen is coming with parameters Variant, Environment, Created by, Changed by and Original Language. My requirement is to suppress this Find Variants screen. How can it possible please suggest.
Cheers,
Bujji.......DATA: IT_EXTAB TYPE SLIS_T_EXTAB.
DATA: WA_EXTAB LIKE LINE OF IT_EXTAB.
WA_EXTAB-FCODE = 'APEN'.
APPEND WA_EXTAB TO IT_EXTAB.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = G_PROGRAM
I_CALLBACK_PF_STATUS_SET = G_PF_STATUS
I_CALLBACK_USER_COMMAND = G_USER_COMMAND
IS_LAYOUT = GS_LAYOUT
I_SAVE = 'X'
I_GRID_TITLE = G_TITULO
IT_FIELDCAT = I_FIELDCAT
IT_EXCLUDING = IT_EXTAB
IT_SORT = GS_SORT[]
TABLES
T_OUTTAB = OPERATIONS_DATA
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IT_EXCLUDING = IT_EXTAB is the key for exclude buttons -:) -
How to Select the Current Row When Using af:iterator?
Hello all,
I encounter the following problem when using af:iterator to display data from
a View Object:
When trying to display the content of a row via a popup, only the first row is
returned no matter which row is selected. So a selection of the current row
should exist or some other method which should allow the access to the
current row.
The af:table has a selectionListener attribute which permit to achieve this.
Does anyone know about some similar attribute or some method for
selecting the current row when the af:iterator is used?
Thank you,
MirelaI would be interested in the answer to this basic question as well. I cannot get the selected row value of an attribute in an iterator for a view if I simply set-up a attribute binding to the iterator. It seems that this should be possible. I've had no other option but to obtain the current row and the related attributes programmatically. This works fine, but if there is a more elegant option, then I'd certainly like to use it.
<af:table value="#{bindings.CompaniesView1.collectionModel}"
var="row"
rows="#{bindings.CompaniesView1.rangeSize}"
emptyText="#{bindings.CompaniesView1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.CompaniesView1.rangeSize}"
selectedRowKeys="#{bindings.CompaniesView1.collectionModel.selectedRow}"
rowBandingInterval="0" id="tCompanies"
summary="Companies"
width="100%"
rowSelection="single"
binding="#{CompanyBackingBean.companiesTable}">Page Def:
<attributeValues IterBinding="CompaniesView1Iterator" id="Id">
<AttrNames>
<Item Value="Id"/>
</AttrNames>
</attributeValues>I should be able to get the Id attribute value of the current selected row using "#{bindings.Id}", right? Well, it doesn't work for me. Any ideas?
Thanks -
When receiving a purchase order in Northwind, receiving all records when press on a button
Good morning,
This is a challenging request, I did not figure out how to receive all items at once in the receiving tab. I have created a button named "Post test" on which I have a test code that doesn't do exactly the right thing. I am posting the code from
the original database that works, but we have to do the receiving one row at a time, it is ok when we have few products on a purchase order, but when a user has 150 items, this is becoming time consuming.
So here is an image follow by the original the codes. (The code on the button is at the end of that document, you might want to begin there) is you understand my error faster.
Here is the link for accessing the Northwind database and a document on OneDrive
https://onedrive.live.com/redir?resid=F7190044A52FAE85%21663
My code on the button "Post test":
Private Sub Post_test_Click()
Dim InventoryID As Long
Dim ProductID As Long
Dim Quantity As Long
Dim PurchaseOrderID As Long
Dim InvoiceID As Long
PurchaseOrderID = Nz(Forms![Détails bon de commande].[Réf bon de commande], 0)
Dim rsw As New WrapperJeuEnregistrements
With rsw.GetRecordsetClone(Forms![Détails bon de commande].sbfPurchaseReceiving.Form.Recordset)
While Not .EOF
.Edit
![Date de réception] = Date
![Entré en inventaire] = True
ProductID = Nz(Me![Réf produit], 0)
Quantity = Nz(Me![Quantité], 0)
InventoryID = Nz(Me![Réf inventaire], 0)
If Inventaire.AddPurchase(Me![Réf bon de commande], ProductID, Quantity, InventoryID) Then
If InventoryID > 0 Then
Me![Réf inventaire] = InventoryID
Me![Entré en inventaire] = True
End If
End If
If InventoryID > 0 Then
Me![Entré en inventaire] = True
End If
rsw.Update
rsw.MoveNext
Wend
End With
Forms![Détails bon de commande].Requery
End Sub
I did have a post last week, but I have received 1 answer that specified that the original code was missing...
Thank you for your time...
Claude from Québec, Canada
Claude LarocqueHi Claude,
I have downloaded the files and I tried to do as the steps in the document, but failed. When I tried to open the forms I got the error message "Item not found in this collection".
>>I did not figure out how to receive all items at once in the receiving tab
In my option, if you want to get all the items, you could add a new query. You could query all the items you want and add a button to the form, when you want to show the all items, you could click the button to run the query. I have viewed the code you
provided, you requery the "Détails bon de commande" form which did not change the query statement, I think you could add a new form and bind a new query to it.
>>however, this is the model created by Microsoft that we can use in Access 2010 and 2013
This model is much complex and the logic of the model is complex too, as your description, some parets of the code is useless, I think we could recreate a new empty database and create the forms which are needed instead of modifying it in the original version.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
I bought my iPhone 5 C last week and is still all brand new. My phone was alright thses days but suddendly when i pressed the Home button to get out of an app, it didn't respond and also when i want to see the time I press the Home button but it doesn't show the lock screen. Do I need to go to an Apple Store or is there another way to fix this problem? I have read the Helping Center in the Apple Web but still it didn't help to solve my problem. Can someone please help me?
Getting your notifications is definitely important and we understand not wanting to miss anything katieb373. You have reached the right place for assistance in getting this working for you again. Has your phone completed any recent software updates right before this happened? You can reset the network settings to see if that will resolve the issue by following the steps http://vz.to/1uO6qTU in the link. Please try this and let us know the results.
CandiceH_VZW
Follow us on Twitter at @VZWSupport -
Hello all Senior Members, I just purchased Brand new Z30 unlock 16 Gig black phone from BlackBerry shop (two weeks ago)....so far I loved the phone very much. Last couple of days when i press lock/unlock button on top of the phone it automatically shows count down 3, 2 and 1 and goes to standby mode. It is so frustrating because previously I was using lock/unlock button to shut off the screen for unnecessarily call or press wrong button while putting phone in the pocket. When phone is in standby mode I have to restart the whole phone holding lock/unlock for 10 seconds because when phone is in standby mode I am not getting any messages, calls, etc...(Tried couple of times when phone is in standby mode when I call my number it says “customer is not reachable" Could anyone help me out how to rid of this standby mode please? Your help will be greatly appreciated. P.S. - i am a first time BlackBerry users... Regards
It has downloaded into your download folder. Find it in your downloads and click on it to install itunes.
Maybe you are looking for
-
Fixed Asset procedure For acquirsion Throught Landed Cost
I Have To Import A Fixed Asset From Foreign Vendor.But How Can i Able Charge Landed Cost To That Asset.means Simple Landed Cost procedure just Cost the Charge to Inventory item But How To Fixed Asset Regards Naveed
-
Calling an R model via a web service - "Error in raw connection", "all connections are in use"
Hi there, I have built an R model in Azure ML using the "Create R model" module and have trained it, turned it into a scoring experiment and a web service. I am now sending new data to it to be scored from an Excel workbook, and getting it to return
-
Non working printer after installing Windows 8.1
Please HELP my printer no longer works since I installed Windows 8.1 HELP
-
What will i lose if i restore my iphone?
why is it that every time i add ringtones to my ringtone folder when my iphone is hooked up to my imac, they disappear two seconds later? right after i sync, they're gone. am i doing something wrong? i've restarted twice, to no avail. should i re
-
Travel Schema is Not Appearing in ABAP WebDynp Travel Expense Form
Hi Experts, We are using FIN_TRAVEL_1 business function for travel management in EHP2. We are implementing ESS/MSS services for Travel management and corresponding workflows are working perfect. Problem is: Travel Req. and its Approval are working pe