To get the value in tmc7 table configuration required
Hi All,
I am developing a report which is similar to standard transaction MCBA .I am copying the all the include programs and everything but I am getting a with the user settings i.e I can see only a some part of the report .Then I found that in TMC7 table the standard program (RMCB0100) is attached to infosource s039.Now I want to configure my Zprogram with infosource s039 can somebody tell me the process how to configure this.
Advance thanks,
Srinivas
Hi All,
I am developing a report which is similar to standard transaction MCBA .I am copying the all the include programs and everything but I am getting a with the user settings i.e I can see only a some part of the report .Then I found that in TMC7 table the standard program (RMCB0100) is attached to infosource s039.Now I want to configure my Zprogram with infosource s039 can somebody tell me the process how to configure this.
Advance thanks,
Srinivas
Similar Messages
-
Get the values from a table comparing fields of different data types
Hi Experts,
I want to fetch AFVC-AUFPL and AFVC- APLZL by passing WBS element from a ztable.
select aufpl aplzl
from afvc
into TABLE gt_afvc
FOR ALL ENTRIES IN gt_boq
where projn = gt_boq-posid.
AFVC-PROJN - NUMC 8 (WBC ELEMENT)
ZTABLE-POSID - CHAR24 (WBC ELEMENT)
How to get aufpl and aplzl by comparing those 2?
Regards
ManiWBS element does have an conversion routine at the domain level. So sometimes you work with one format (8 digits) and sometimes with 24 digits.
You use FMs
CONVERSION_EXIT_ABPSP_INPUT
CONVERSION_EXIT_ABPSP_OUTPUT
to convert between values. Do your conversion before your select and do not forget to use a large enough data element for the field, which gets the 24-digits long value of the field. -
How to get the value from Advanced table
Hi,
In the Advanced table have 2 LOV fields, I need LOV field value dynamically in the controller to validate the save button, if iam not selected any value in lov save button will not allow to save the data. In the table i am using 'Add another row'. How to get the lov field value in the process form request??? and how to do this requirement
Thanks
Naresh1. You can specify required property on LOV field to "yes". For events where you wish to disable the client side validations, set the property disable client side validation to "true".
2. If above behavior is not what you are looking for, then you need to handle in AM and not CO.
a. Call an AM method from CO.
b. In that AM method, get handle of VO.
c. Iterate the VO Rows and check for your validation rules.
-Prince
http://www.princekapoor82.blogspot.com -
Hi,
I am new to webdynpro. I have created one table with four columns in MAX DB. I have to write a webdynpro application such that when the first page loads, all the records will be display.
How to proceed for this using webdynpro for java..Please give the procedure so that I will try..
Thanks & Regards,
Mastanvali Shaik.Hello Mastan,
i would suggest you next steps:
1) Define a new DataSource in your JDBC service setting in Visual Admin app.
This new DataSource should be pointed to your MAX DB. There you should select an Java class (sort of driver) to work with this DB type.
<b>Then you have 2 possibilities:</b>
2a) You can build an SQL script to read your DB and send it via jdbc connection:
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup(jdbc/<your DS alias>);
Connection cn = ds.getConnection();
PreparedStatement stm = cn.prepareStatement("Your SQL");
ResultSet rsl = stm.executeQuery();
Then you go through your ResultSet and fill-in some of your context nodes (datasource for an TableView).
2b) Or you can define a new dictionary project, create your table in there and deply. Don't forget to set right DS alias. And then you can import and use that dict. object in your WD application. From programming point of view it's even easier because you can use it as data Model.
Hope it helps.
regards.
mz -
How to get string value from database table using Visual Studio 2005?
Hi,
Im developing plugin in illustrator cs3 using visual studio 2005. I need to get the values eneterd in database. Im able to get the integer values. But while getting string values it is returning empty value.
Im using the below code to get the values from database table
bool Table::Get(char* FieldName,int& FieldValue)
try
_variant_t vtValue;
vtValue = m_Rec->Fields->GetItem(FieldName)->GetValue();
FieldValue=vtValue.intVal;
CATCHERRGET
sprintf(m_ErrStr,"Success");
return 1;
Im using the below code to get the values.
AIErr getProjects()
char buf[5000];
int i;
std::string catName;
::CoInitialize(NULL);
Database db;
Table tbl;
errno_t err;
err = fopen(&file,"c:\\DBResult.txt","w");
fprintf(file, "Before Connection Established\n");
//MessageBox(NULL,CnnStr,"Connection String",0);
if(!db.Open(g->username,g->password,CnnStr))
db.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
fprintf(file, "After Connection Established\n");
if(!db.Execute("select ProjectID,ProjectName from projectsample",tbl))
db.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
int ProjectID;
int UserID;
int ProjectTitle;
char ProjectName[ProjectNameSize];
if(!tbl.ISEOF())
tbl.MoveFirst();
ProjectArrCnt=0;
for(i=0;i<128;i++)
buf[i]='\0';
int j=0;
while(!tbl.ISEOF())
if(tbl.Get("ProjectID",ProjectID))
fprintf(file,"Project ID: %d ",ProjectID);
ProjectInfo[ProjectArrCnt].ProjectID = ProjectID;
sprintf(buf,"%d",ProjectID);
//MessageBox(NULL, buf,"f ID", 0);
j++;
else
tbl.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
break;
//if(tbl.Get("ProjectTitle",ProjectName))
if(tbl.Get("ProjectName",ProjectName))
MessageBox(NULL,"Inside","",0);
fprintf(file,"ProjectTitle: %s\n",ProjectName);
//catName=CategoryName;
ProjectInfo[ProjectArrCnt].ProjectName=ProjectName;
//sprintf(buf,"%s",ProjectName);
MessageBox(NULL,(LPCSTR)ProjectName,"",0);
else
tbl.GetErrorErrStr(ErrStr);
fprintf(file,"Error: %s\n",ErrStr);
break;
ProjectArrCnt++;
//MessageBox(NULL, "While", "WIN API Test",0);
tbl.MoveNext();
//MessageBox(NULL, ProjectInfo[i].ProjectName.c_str(),"f Name", 0);
::CoUninitialize();
//sprintf(buf,"%s",file);
//MessageBox(NULL,buf,"File",0);
fprintf(file, "Connection closed\n");
fclose(file);
for(i=0;i<ProjectArrCnt;i++)
sprintf(buf,"%i",ProjectInfo[i].ProjectID);
//MessageBox(NULL,buf,"Proj ID",0);
//MessageBox(NULL,ProjectInfo[i].ProjectName.c_str(),"Project Name",0);
return 0;
In the above code im geeting project D which is an integer value. But not able to get the project name.
Please some one guide me.As I said in the other thread, this really isn't the place to ask questions about a database API unrelated to the Illustrator SDK. You're far more like to find people familliar with your problem on a forum that is dedicated to answering those kinds of questions instead.
-
Get the value from a selected row in a table
Hi all,
My table contains a tree structure.
When I select a single row, I need to get the value of a particular column.
I created an action on the leadSelect of the table and gave the following code:
public void onActionleadValue(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionleadValue(ServerEvent)
String strLeadValue = wdContext.nodeAttribute_View_Out().currentAttribute_View_OutElement().getAttributeAsText("<MyModelAttributename>");
wdComponentAPI.getMessageManager().reportSuccess("selected lead value "+strLeadValue);
wdContext.currentContextElement().setLeadselectedvalue(strLeadValue);
//@@end
My Bapi returns me 6 records. and when I click on any row its always pointing to the last record value.
What could be the problem?
Thanks
AnjanaHi Anjana,
Try this.
try
IWDMessageManager msg = wdComponentAPI.getMessageManager();
int leadselect = wdContext.nodeSChild1().getLeadSelection();
for(int i=0;i<wdContext.nodeSChild1().size();i++)
if(leadselect == i)
//Displaying output in diff table
// IPublicTestComp.ITableNodeElement tabelm = wdContext.createTableNodeElement();
// tabelm.setAttribute1(wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute1());
// tabelm.setAttribute2(wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute2());
// tabelm.setAttribute3(wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute3());
// wdContext.nodeTableNode().addElement(tabelm);
String att1 = wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute1();
String att2 = wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute2();
String att3 = wdContext.nodeSChild1().getSChild1ElementAt(i).getAttribute3();
msg.reportSuccess("Row ("i") : "att1"====="att2"======"+att3);
} catch (WDDynamicRFCExecuteException e) {
wdComponentAPI.getMessageManager().reportException("Message : "+ e.getMessage(),true);
Regards,
Mithu -
How to get the values of all rows in advanced table
HI All,
I am using an advanced table to enter the values for the service contract line (its a custom page)in that advanced table i ahave column with lov called task number for that task number once i had choosed one task number and creating one more row using add anethor row button i want to restrict the user to not to choose the task number which was entered in the previus row.
Or if this is not possible i want to restrict the user by showing an error message when click on the submit button by saying you have choosed the duplicate task number please choose a uniqu task number
please give some hints
thanks
ajayHi
your approach will have two steps
1.) use the row refernce and get the value of task number of the row which is enterd by user .
2.) use getRows in range and compare values of task number of every row with the user selected value ,if value match then throw error.
Thanks
Pratap -
How to get the values of the value table ?
Hello all,
I want to get the values of the value table, given a domain name.
Ex: To get the MATNR values of table MARA, giving the MATNR as input on the selection screen.
Is it possible? Is there any FM?
Thanks
SRHi
forget my previous answer.
Yuo can use a code like this:
PARAMETERS: p_table TYPE ddobjname,
p_dom LIKE dfies-domname.
DATA dfies_tab LIKE STANDARD TABLE OF dfies WITH HEADER LINE.
DATA: ftab TYPE TABLE OF string.
FIELD-SYMBOLS: <fs_table> TYPE table.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = p_table
TABLES
dfies_tab = dfies_tab
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3.
CHECK sy-subrc <> 0.
LOOP AT dfies_tab WHERE domname = p_dom.
APPEND dfies_tab-fieldname TO ftab.
ENDLOOP.
SELECT (ftab)
FROM (p_table)
INTO TABLE <fs_table>.
In this case you have to create dynamically the table <fs_table> or you can also use a table string:
DATA: T_DATA TYPE STANDARD TABLE OF STRING.
SELECT (ftab)
FROM (p_table)
INTO TABLE T_DATA.
Max -
How to get the value from the Input field of the Table view.
Hi Experts,
I have created a table view with 10 rows and each rows contains input fields in it.Can you please help me getting the values that are entered in all 10 rows.
Currently I am using the below code,but using the below I am able to get only the first row details of the table.
lo_el_table->get_static_attributes(
IMPORTING
static_attributes = ls_table).
Please let me know you suggestions on this.Thanks in advance.
Regards,
ArunHi Arun,
You should use this method:
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table).
Cheers,
Roelof
http://www.nl4b.com -
How to get the value of an outputLabel (part of a header in a table col)?
Hello,
i am trying to write some code in a method in a bean that is called when a button is pressed in a page (actually is an ActionListener method), which is part of a Table. I want to get the value of the outputLabel of the column. The jspx part of the page to get the idea follows:
<af:column id="TrsTransactionsTradeDateColumn" sortable="true" noWrap="true" sortProperty="TradeDate" >
<f:facet name="header">
<af:outputLabel value="#{nls['TRSTRANSACTIONS_TABLE_TRADEDATE']}" styleClass="af_column_header-text"/>
</f:facet>
<af:selectInputDate id="TrsTransactionsTradeDate" value="#{row.TradeDate}"
required="#{bindings.TrsTransactionsTradeDate.mandatory}" readOnly="true" >
<af:convertDateTime pattern="dd/MM/yyyy HH:mm:ss"/>
</af:selectInputDate>
</af:column>
As you see, the header part which is actually an outputLabel, is not actually part of the column object but in a separate facet, and the header property of the column is not used. Also, i can't change that, as this code is produced by generator. Actually i can access the every column of the Table with CoreColumn class, as these are children of the Table, but it does not give me access to the corresponding outputLabel of the column, because it is neither child or property of the column! An extract of the code to show my situation and give an idea follows:
DCIteratorBinding dcib;
RowSetIterator rsi;
HttpServletRequest hq;
String iterName;
PrintWriter out = null;
Row currentRow = null;
CoreTable tTable;
String [] attNames, realNames;
Boolean[] isNum;
int isFirst = 1;
List childList, childList2;
CoreColumn csi;
// Find the Component-Table and the Real names of the Columns
tTable = (CoreTable) actionEvent.getComponent().getParent().getParent();
System.out.println("CoreTableSelectOne:"+tTable.toString());
System.out.println("CoreTableSelectOne Parent:"+tTable.getParent().toString());
childList = tTable.getChildren();
attNames = rsi.getRowAtRangeIndex(0).getAttributeNames();
realNames = new String[attNames.length];
isNum = new Boolean[attNames.length];
System.out.println("attrNames:"+attNames.length);
System.out.println("childList:"+childList.toString());
System.out.println("childList size:"+childList.size());
// The next loop puts in the realNames for each row set column the component column name
// if the column is rendered otherwise null.
for (int i = 0; i < attNames.length; i++) {
System.out.println("attrName:"+attNames);
realNames[i] = null;
for (int k = 0; k < childList.size(); k++) {
if (childList.get(k) instanceof CoreColumn){
csi = (CoreColumn) childList.get(k);
System.out.println("csi:"+csi.getSortProperty());
if (csi.getSortProperty() == attNames[i]){
childList2 = csi.getChildren();
System.out.println("csi.childrencount:"+csi.getChildCount());
System.out.println("csi.getshortdesc:"+csi.getShortDesc());
System.out.println("csi.getFacetCount():"+csi.getFacetCount());
csi.getFacet()
for(int m=0; m<childList2.size(); m++) {
//System.out.println("childList2.get(m).toString():"+childList2.get(m));
if(childList2.get(m) instanceof CoreSelectInputDate)
CoreSelectInputDate csid = null;
csid = (CoreSelectInputDate)childList2.get(m);
System.out.println("Label:'"+csid.getLabel());
System.out.println("csi.getHeaderText()"+csi.getHeaderText());
realNames[i] = new String(csi.getHeaderText());
if (csi.isRendered() == false)
realNames[i] = null;
System.out.println(csi.getFormatType());
if (csi.getFormatType() == "number")
isNum[i] = true;
else
isNum[i] = false;
System.out.println("After loop In attName: "+i);
// Print the titles
if (realNames[i] != null) {
if (isFirst == 1)
isFirst = 0;
else
out.print(";");
out.print(realNames[i]);
Part of the output produced follows:
2008-07-18 18:49:13,699 INFO [STDOUT] iteratorNameTrsTransactionsIterator
2008-07-18 18:49:13,699 INFO [STDOUT] 1
2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue(ref=bindings)
2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.VariableResolverImpl] resolveVariable: Resolved variable:TrsTransactionsPageDef
2008-07-18 18:49:13,699 DEBUG [com.sun.faces.el.ValueBindingImpl] getValue Result:TrsTransactionsPageDef
2008-07-18 18:49:13,699 INFO [STDOUT] 2
2008-07-18 18:49:13,699 INFO [STDOUT] 3
2008-07-18 18:49:13,699 INFO [STDOUT] 4
2008-07-18 18:49:13,699 INFO [STDOUT] CoreTableSelectOne:CoreTable[UIXFacesBeanImpl, id=TrsTransactionsTable]
2008-07-18 18:49:13,699 INFO [STDOUT] CoreTableSelectOne Parent:CorePanelGroup[UIXFacesBeanImpl, id=TrsTransactionsTableGroup]
2008-07-18 18:49:13,699 INFO [STDOUT] attrNames:56
2008-07-18 18:49:13,699 INFO [STDOUT] childList:[CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpBiccodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpBicnameColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpInstrumentIsincodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpInstrumentNameColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsBuySellColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeCapacityColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsQuantityColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsUnitPriceTypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsUnitPriceColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCurrencyIsoSymbolColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsVenuetypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpVenueMicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpVenueBicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCtypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCounterpartyMicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLkpCounterpartyBiccodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCcodeccColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsClienttypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLpkClientBicCodeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsClientinternalColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeStatusColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsLastUpdateDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCancelDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOrigTrnColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsSourceColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsSourceNumberColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTransTypeColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTradeDateOnlyColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsExchangeReasonColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsTransTrnColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCancSourceNumberColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsCauniqueidColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsRoutingColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsHubSentDateColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOtherRcaColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsOutOfDateFlagColumn], CoreColumn[UIXFacesBeanImpl, id=TrsTransactionsMultipleFlagColumn], CoreColumn[UIXFacesBeanImpl, id=_id89]]
2008-07-18 18:49:13,699 INFO [STDOUT] childList size:39
2008-07-18 18:49:13,699 INFO [STDOUT] 5
2008-07-18 18:49:13,699 INFO [STDOUT] 6
2008-07-18 18:49:13,699 INFO [STDOUT] 7
2008-07-18 18:49:13,699 INFO [STDOUT] 8
2008-07-18 18:49:13,699 INFO [STDOUT] 9
2008-07-18 18:49:13,699 INFO [STDOUT] 10
2008-07-18 18:49:13,699 INFO [STDOUT] attrName:BicId
2008-07-18 18:49:13,699 INFO [STDOUT] csi:TradeDate
2008-07-18 18:49:13,699 INFO [STDOUT] csi:LkpBiccode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpBicname
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpInstrumentIsincode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpInstrumentName
2008-07-18 18:49:13,714 INFO [STDOUT] csi:BuySell
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeCapacity
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Quantity
2008-07-18 18:49:13,714 INFO [STDOUT] csi:UnitPriceType
2008-07-18 18:49:13,714 INFO [STDOUT] csi:UnitPrice
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCurrencyIsoSymbol
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Venuetype
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpVenueMicCode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpVenueBicCode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Ctype
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCounterpartyMicCode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LkpCounterpartyBiccode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Ccodecc
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Clienttype
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LpkClientBicCode
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Clientinternal
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeStatus
2008-07-18 18:49:13,714 INFO [STDOUT] csi:LastUpdateDate
2008-07-18 18:49:13,714 INFO [STDOUT] csi:CancelDate
2008-07-18 18:49:13,714 INFO [STDOUT] csi:OrigTrn
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Source
2008-07-18 18:49:13,714 INFO [STDOUT] csi:SourceNumber
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TransType
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeDateOnly
2008-07-18 18:49:13,714 INFO [STDOUT] csi:ExchangeReason
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TransTrn
2008-07-18 18:49:13,714 INFO [STDOUT] csi:CancSourceNumber
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Cauniqueid
2008-07-18 18:49:13,714 INFO [STDOUT] csi:Routing
2008-07-18 18:49:13,714 INFO [STDOUT] csi:HubSentDate
2008-07-18 18:49:13,714 INFO [STDOUT] csi:OtherRca
2008-07-18 18:49:13,714 INFO [STDOUT] csi:OutOfDateFlag
2008-07-18 18:49:13,714 INFO [STDOUT] csi:MultipleFlag
2008-07-18 18:49:13,714 INFO [STDOUT] csi:null
2008-07-18 18:49:13,714 INFO [STDOUT] After loop In attName: 0
2008-07-18 18:49:13,714 INFO [STDOUT] attrName:TradeDate
2008-07-18 18:49:13,714 INFO [STDOUT] csi:TradeDate
2008-07-18 18:49:13,714 INFO [STDOUT] csi.childrencount:1
2008-07-18 18:49:13,714 INFO [STDOUT] csi.getshortdesc:null
2008-07-18 18:49:13,714 INFO [STDOUT] csi.getFacetCount():1
2008-07-18 18:49:13,714 INFO [STDOUT] Label:'null
2008-07-18 18:49:13,714 INFO [STDOUT] csi.getHeaderText()null
2008-07-18 18:49:13,714 ERROR (irrelevant)
Any idea how to achieve to get the value of the corresponding outputLabel ?
TIAHi,
the fastes option is to create a JSF binding from the output text to a managed bean and directly access the component. So unless you like parsing the table for this information, it seems unnecessary if you frequently use the information stored in the header
Frank -
Get the values that an user write in textbox with typed_context
Thanks for your time
I want to verificate, the values (product configuration) that an user have introduced,
I have written this code to get the values and verificate this.
DATA:
lr_info TYPE REF TO cl_crm_bol_entity.
lr_info ?= ME->typed_context->ISUORDERITEM->collection_wrapper->get_current( ).
lr_info has an atritbute T_EXTENSION_FIELDS, this is a table with the values of the product configuration, but I don't know how I can access to this values.
Could you help me, please??
Or other option to get the values to verificate this ??
ThanksWhen I get the solution, I will post here, thanks
Edited by: Javier Garcia on Oct 20, 2008 3:44 PM -
How to get the values from popup window to mainwindow
HI all,
I want to get the details from popup window.
i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
now i am able to display popup window with values.How to get the values from popup window now.
I can anybody explain me clearly.
Thanks&Regards
kranthiHi Kranthi,
Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.
Regards,
Uday -
Not able to get the data in COSB Table
Hi Colleagues,
I have created a Project and assign the WBS number to a Sales order and also have done all the settings in Result Analysis.
But still not able to get the data in COSB table.
Could you please suggest me the steps and process, Might be i have missed something..
Thanks in Advance
Regards
NitinHi Ken,
I have below mentioned requirement
COSB will show value by object number and need to pass the object number to PRPS table to find the corresponding WBS element and then pass the WBS element to VBAP table to find the corresponding SO line item.
Please let me know as Functional prospect what I have to do to bring this values in COSB table.
Regards
Nitin -
Swing: when trying to get the values from a JTable inside an event handler
Hi,
I am trying to write a graphical interface to compute the Gauss Elimination procedure for solving linear systems. The class for computing the output of a linear system already works fine on console mode, but I am fighting a little bit to make it work with Swing.
I put two buttons (plus labels) and a JTextField . The buttons have the following role:
One of them gets the value from the JTextField and it will be used to the system dimension. The other should compute the solution. I also added a JTable so that the user can type the values in the screen.
So whenever the user hits the button Dimensiona the program should retrieve the values from the table cells and pass them to a 2D Array. However, the program throws a NullPointerException when I try to
do it. I have put the code for copying this Matrix inside a method and I call it from the inner class event handler.
I would thank you very much for the help.
Daniel V. Gomes
here goes the code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import AdvanceMath.*;
public class MathF2 extends JFrame {
private JTextField ArrayOfFields[];
private JTextField DimOfSis;
private JButton Calcular;
private JButton Ativar;
private JLabel label1;
private JLabel label2;
private Container container;
private int value;
private JTable DataTable;
private double[][] A;
private double[] B;
private boolean dimensionado = false;
private boolean podecalc = false;
public MathF2 (){
super("Math Calcs");
Container container = getContentPane();
container.setLayout( new FlowLayout(FlowLayout.CENTER) );
Calcular = new JButton("Resolver");
Calcular.setEnabled(false);
Ativar = new JButton("Dimensionar");
label1 = new JLabel("Clique no bot�o para resolver o sistema.");
label2 = new JLabel("Qual a ordem do sistema?");
DimOfSis = new JTextField(4);
DimOfSis.setText("0");
JTable DataTable = new JTable(10,10);
container.add(label2);
container.add(DimOfSis);
container.add(Ativar);
container.add(label1);
container.add(Calcular);
container.add(DataTable);
for ( int i = 0; i < 10 ; i ++ ){
for ( int j = 0 ; j < 10 ; j++) {
DataTable.setValueAt("0",i,j);
myHandler handler = new myHandler();
Calcular.addActionListener(handler);
Ativar.addActionListener(handler);
setSize( 500 , 500 );
setVisible( true );
public static void main ( String args[] ){
MathF2 application = new MathF2();
application.addWindowListener(
new WindowAdapter(){
public void windowClosing (WindowEvent event)
System.exit( 0 );
private class myHandler implements ActionListener {
public void actionPerformed ( ActionEvent event ){
if ( event.getSource()== Calcular ) {
if ( event.getSource()== Ativar ) {
//dimensiona a Matriz A
if (dimensionado == false) {
if (DimOfSis.getText()=="0") {
value = 2;
} else {
value = Integer.parseInt(DimOfSis.getText());
dimensionado = true;
Ativar.setEnabled(false);
System.out.println(value);
} else {
Ativar.setEnabled(false);
Calcular.setEnabled(true);
podecalc = true;
try {
InitValores( DataTable, value );
} catch (Exception e) {
System.out.println("Erro ao criar matriz" + e );
private class myHandler2 implements ItemListener {
public void itemStateChanged( ItemEvent event ){
private void InitValores( JTable table, int n ) {
A = new double[n][n];
B = new double[n];
javax.swing.table.TableModel model = table.getModel();
for ( int i = 0 ; i < n ; i++ ){
for (int j = 0 ; j < n ; j++ ){
Object temp1 = model.getValueAt(i,j);
String temp2 = String.valueOf(temp1);
A[i][j] = Double.parseDouble(temp2);What I did is set up a :
// This code will setup a listener for the table to handle a selection
players.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
ListSelectionModel rowSM = players.getSelectionModel();
rowSM.addListSelectionListener(new Delete_Player_row_Selection(this));
//Class will take the event and call a method inside the Delete_Player object.
class Delete_Player_row_Selection
implements javax.swing.event.ListSelectionListener
Delete_Player adaptee;
Delete_Player_row_Selection (Delete_Player temp)
adaptee = temp;
public void valueChanged (ListSelectionEvent listSelectionEvent)
adaptee.row_Selection(listSelectionEvent);
in the row_Selection function
if(ex.getValueIsAdjusting()) //To remove double selection
return;
ListSelectionModel lsm = (ListSelectionModel) ex.getSource();
if(lsm.isSelectionEmpty())
System.out.println("EMtpy");
else
int selected_row = lsm.getMinSelectionIndex();
ResultSetTableModel model = (ResultSetTableModel) players.getModel();
String name = (String) model.getValueAt(selected_row, 1);
Integer id = (Integer) model.getValueAt(selected_row, 3);
This is how I got info out of a table when the user selected it -
How to get the values from form calls in user exit?
Hi all,
I am not getting a specific value readily in an user exit.
?Can any one tell me how to find what are the fields,tables available in various form calls(visible while debugging) in an user exit.
For example sapxkl is one ofthe callls...(sapxkl)<table>[] will hold some data.how to find what r the values available for <table>.
Thanks.
Edited by: sanjay_ask on Apr 16, 2010 10:43 PMHI ,
Use this line of code
field-symbols: <l_fs> type any.
data: l_value type char20.
Get Plant
l_value = '(SAPLCEI0)GV_WERKS'. " Here give the program name and variable name
assign (l_value) to <l_fs>.
v_werks = <l_fs>. " Instead of V_werks use you internal table
Thanks
Subhankar
Maybe you are looking for
-
Oracle 8.1.7 in Caldera Open Unix 8 with lkp
Hello: Anyone had installed Oracle 8.1.7 in Caldera Open Unix 8 with LKP (Linux Kernel Personality)? I've installed the software but I can't create a new database. I think there may be an operating system problem because I can't even get the startup
-
Custom html tags with JEditorPane
I'm trying, to use my own tags within html in the JEditorPane. An insert parses without exception but the html in the pane is missing the custom tags that I attempted to insert. I have tried to use the 'setPreservesUnknownTags' command on the html do
-
My conon printer does not want to turn on at all what can i do??
Help can not turn on my canon printer at all
-
Why when purchasing a plan does the currency always revert back to USD after clicking Buy Now? Also when changing the currency from USD to another currency is it more expensive? Can you explain why buying the product using the EURO, which is curr
-
Hi all, We have upgraded from 11.5.10.2 to R12 (12.1.3) on linux platform (rhel 4.6 to 6.2) Can any one suggest what testing(technical) we have to go through after the R12 upgrade has been done. Thanks