Getting tableview selectedrowindex from subcontroller
Hi experts,
I have a tableview created by one of my sub views.
Please see the following image link for my design:
http://img203.imageshack.us/img203/2298/subcontrollers6ub.gif
The view with the red border is the one displaying the iterator/tableview.
I need to get the selected row index in my main controller (<b>MAIN.DO</b>)
In my main controller's DO_HANDLE_EVENT, the following code works only IF the iterator resides in "Page1.htm".
The iterator is now located in Page1_Sub2.htm.
WHEN 'getChange_exprep'.
tbv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request
name = 'tableView'
id = 'tbv_ExpRep' ).
IF tbv IS NOT INITIAL.
tbv_event = tbv->data.
selectedRowIndex = tbv_event->SELECTEDROWINDEX.
IF selectedRowIndex <> 0.
DELETE model->AT_IUI_COSTASSIGNTRIP INDEX selectedRowIndex.
ENDIF.
ENDIF.
I can get a reference to my subcontroller from my main controller, but i don't know how that can help.
Any idea?
Message was edited by: Kevin Wong
Hi Kevin!
Dispatch_input( ) needs the appended sub-controller-ids to determine the controller which is responsible for handling the events. Hence, at least the do_handle_event( ) of your sub-controller should be called! Try to debug the method (set a breakpoint directly at the beginning of the method). If the sub-do_handle_event( ) is not called, then try to look if the sub-controller is correctly assigned to your main-controller (check attribute 'm_subcontrollers' in debugger)! This shouldn't be the problem because you assigned a component id to the sub-controller in your <bsp:call>-tag ..
If do_handle_event( ) is called correctly, than you should change the id of the table in the coding you posted in your first message:
tbv ?= CL_HTMLB_MANAGER=>GET_DATA(
request = request
name = 'tableView'
id = 'subcontrollerid_tbv_ExpRep' ).
Then the attribute selectedrowindex should be available in tbv.
Best regards,
Georg
Message was edited by: Georg Lang
Similar Messages
-
I have a tableView displaying a list of contacts from a Cloud Database. After selecting a contact, I push to a programmatically created MKMapView. Then I display the initial region (the view) that includes the users current location (starting point) and their selected destination (end point).
Now I want to display annotations (as described in the Location Awareness Programming Guide) that displays polylines which will represent the turn-by-turn navigation IN MY OWN APPLICATION, and not in the Map App currently used in IOS6.
Due to licensing and its becoming depricated in IOS 6, I do not want to get routing data from the Google Maps API. How do I get routing data from the IOS 6 Map App (powered by TomTom) so I can display the point-to-point annotations (turn-by-turn navigation) without leaving my own application?
I checked out Stack Overflow and other forums which basically left me with the impression that this is not possible. I also checked out the TomTom iPhone Mobile SDK User Guide from the TomTom Developer Portal and am still confused. It must be possible to retrieve routes, since the Map App can display turn-by-turn directions. How can I retrieve turn-by-turn data that I may display as a route within my own application?Thanks Michael. Apologies for the slow reply I was away for a bit (holiday blitz at work and visiting family madness etc.etc.) back now, I set both options you requested to "never " and retried the CMS software with no change.
I do have progress of a sort though, as a test I took a separate test PC and put a clean install of Win7 on and loaded up the CMS software (it worked perfectly) and then took the version of ole32.dll off that machine and put it onto the computer I had built
for her (using Linux) and...
got a new error code. Darn I was so sure I had found a clever solution this time lol.
Anyway now when the CMS fails it gives me a similar error but the offending module is "ntdll.dll" sooo... I tried taking the "working" version of ntdll.dll from the test box and moving it over (making sure to back up the existing ones
first so I could put them back if needed) to her new PC and the PC would not boot.
It seems to want the original versions of a few Dynamic Link Libraries and if I could somehow give it those while not breaking Win7 it should theoretically work seeing as it no longer errors with ole32.dll.
ntdll.dll however seems necessary for Win7 to boot.
So what I am wondering now is:
Is there some way to have both versions of the DLL file in the system32 folder (bypassing the "cannot have two files with the exact same name in the same folder" thing) or rename the original DLL's something else and somehow make the CMS look for
the new named versions so the system has the updated DLL's it needs to boot/run and the CMS has the old ones it wants to run or is there someway to have a self contained install of the CMS, say on a USB flash drive and give it it's own E:/windows/system32/needed
dll's path to the files it needs?
Willing to try any other options or settings you may have come up with as well.
Thanks again for your reply and my apologies for not answering sooner. -
Unable to get the values from ISearchResultList
Hi,
I am working on KM Indexmanagemnt API for searching with TREX, to build a search similar to msn or google.
I am following the example of Thilo Brandt, and after building the query, I am unable to retrieve the result from ISearchResultList, the results size its displaying is zero. But session.getTotalNumberResultKeys() is retrieving a value 20.
Here is the code I am using, please tell me where I am doing wrong.
public class SearchComponetOne extends AbstractPortalComponent {
public void doContent(IPortalComponentRequest request, IPortalComponentResponse response) {
com.sap.security.api.IUser nwUser =
UMFactory.getAuthenticator().getLoggedInUser();
com.sapportals.portal.security.usermanagement.IUser user = null;
try {
user = WPUMFactory.getUserFactory().getEP5User(nwUser);
} catch (UserManagementException e) {
response.write(e.getMessage());
response.write("<html><head><title>Search</title></head><body>");
ResourceContext c = new ResourceContext(user);
try {
IIndexService indexService = (IIndexService) ResourceFactory
.getInstance()
.getServiceFactory()
.getService(
IServiceTypesConst.INDEX_SERVICE);
SearchQueryListBuilder sqb = new SearchQueryListBuilder();
sqb.setSearchTerm("sap");
IQueryEntryList qel = sqb.buildSearchQueryList();
// get an instance of federated search
IFederatedSearch federatedSearch =
(IFederatedSearch) indexService.getObjectInstance(
IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
List indexList = new ArrayList();
String index = null;
if (index != null && index.length() > 0) {
// take a specified index from index= parameter
indexList.add(indexService.getIndex(index));
} else {
// take all available indexes
indexList = indexService.getActiveIndexes();
// it is recommended to use a search session object
// for searching execution
ISearchSession session = null;
if (session == null)
session = federatedSearch.searchWithSession(qel, indexList, c);
response.write("Inside doContent session.getNumberResultKeys() => " + session.getNumberResultKeys()); // output as 20
this.renderResultHeader(response, session, indexList);
// get all results from the search session
ISearchResultList results = session.getSearchResults(1, session.getTotalNumberResultKeys());
response.write(" from session => " + results.size() + " and size is : " + results.toString()); // I am getting the results.size() as zero
ThanksI think the problem is UME related. I had the same problem once. Try using a system user for searching, instead of the logged on user.
Like this:
com.sapportals.portal.security.usermanagement.IUser user = WPUMFactory.getUserFactory().getUser("cmadmin_service");
Please reward the points if this helps. -
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 -
How to get the values from a html form embedded in a swing container
Hi all,
I am developing an application in which i have to read a html file and display it in a swing container.That task i made it with the help of a tool.But now i want to get the values from that page.ie when the submit button is clicked all the values of that form should be retrived by a servlet/standalone application.I don't know how to proceed further.Any help in this regard will be very greatful
Thanks in advance,
PrakashBy parsing the HTML.
-
How to get multiple values from the list
I've a list of an item which I queried it from the database. I also created a button that will takes a selected items from the list when it was clicked. I used javabean to get the data from database.
<% // clicked on Select District Button
Vector vselectedDistrict = new Vector();
Vector vdistrictID = new Vector();
String tmpSelectDistrict = "";
tmpSelectDistrict = request.getParameter("bSelectDistrict");
if(tmpSelectDistrict != null)
// get multiple values from the list
String[] selectedDistrict = request.getParameterValues("usrTDistrict");
vselectedDistrict.clear();
vdistrictID.clear();
if((selectedDistrict != null) && (selectedDistrict.length != 0))
for(int i=0;i<selectedDistrict.length;i++)
vselectedDistrict.addElement(selectedDistrict);
vdistrictID = dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
for(int i=0;i<vdistrictID.size();i++)
out.println("district = " + selectedDistrict[i]); out.println("district ID= " + vdistrictID.get(i).toString());
%>
// get vdistrict from the database here......
<select name="usrTDistrict" size="5" multiple>
<% for(int i = 0; i< vdistrict.size(); i++)
%>
<option value="<%=vdistrict.get(i).toString()%>"><%=vdistrict.get(i).toString()%></option>
<%
%>
</select>
<input type="submit" name="bSelectDistrict" value="Select District">
Lets say the item that i selected from the list is 'Xplace' and I clicked on the Select District button,
what I got is this error message:
org.apache.jasper.JasperException: Unable to convert string 'Xplace' to class java.util.Vector for attribute usrTDistrict: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
So where is going wrong and what the message means?. Any help very much appreciated. ThanksThese are just guesses that might hopefully steer you in directions you haven't looked in yet.
I presume you used triangle brackets (< >) to avoid having the Jive Forum think it was the "italics" tag?
Are you certain this: dbaseInfo.getcurrentDistrictID(nstate,vselectedDistrict);
expects a Vector as its second parameter? And returns a Vector?
I don't believe you've shown how you use the javabean, or its code? Perhaps it should be rewritten to accept an array of strings instead of a Vector? -
Hi guys,
I am developing an integration with EWS based on php. I am using a library I found https://github.com/jamesiarmes/php-ews
In my case users have various calendars hanging from the root, I get access to the default calendar by this:
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CALENDAR;
$response = $ews->FindFolder($request);
I also get access to shared calendars by this:
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::PUBLIC_FOLDERS_ROOT;
$response = $ews->FindFolder($request);
But I am getting crazy to get all calendars hanging from the root. If I asked for all folders on the root I don't get those calendars. What service and params do I need to send to get all calendars from the root?
Thanks!!If you make a FindFolder Request set the Traversal to Deep and use a restriction on the FolderClass to IPF.Appointment that should return all the Calendar folders in a mailbox eg
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="
http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://sc
hemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xml
soap.org/soap/envelope/">
<soap:Header>
<t:RequestServerVersion Version="Exchange2013_SP1" />
</soap:Header>
<soap:Body>
<m:FindFolder Traversal="Deep">
<m:FolderShape>
<t:BaseShape>AllProperties</t:BaseShape>
</m:FolderShape>
<m:IndexedPageFolderView MaxEntriesReturned="1000" Offset="0" BasePoint=
"Beginning" />
<m:Restriction>
<t:IsEqualTo>
<t:FieldURI FieldURI="folder:FolderClass" />
<t:FieldURIOrConstant>
<t:Constant Value="IPF.Appointment" />
</t:FieldURIOrConstant>
</t:IsEqualTo>
</m:Restriction>
<m:ParentFolderIds>
<t:DistinguishedFolderId Id="msgfolderroot" />
</m:ParentFolderIds>
</m:FindFolder>
</soap:Body>
</soap:Envelope>
Cheers
Glen -
Get column values from list of values programmatically
hi all
how i get column values from list of values programmatically in the
returnPopupDataListener methodIf this answers your question , please close this thread by marking it as answered.
Thanks -
How can i get all values from jtable with out selecting?
i have one input table and two output tables (name it as output1, output2). Selected rows from input table are displayed in output1 table. The data in output1 table is temporary(means the dat wont store in database just for display purpose).
Actually what i want is how can i get all values from output1 table to output2 table with out selecting the data in output1 table?
thanks in advance.
rajaYou could set the table's data model to be the same:
output2.setModel( output1.getModel() ); -
I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?
You copy them from your old computer or your backup copy of your old computer.
The iphone is not a backup/storage device. -
How can I get a refund from another country that does not have an Apple Store?
While going to the US for the summer, I went to the San Francisco Apple Store.
I saw the Apple Gift Cards, and I was wondering if they would work on my Taiwan Apple ID, so I bought a $25 gift card and a 4 cards bundle pack each with $10 inside.
But then now, coming back to Taiwan, I realised the gift cards was only valid for US users so I asked for support from Apple
and this is what they replied:
I understand that you are unable to redeem the gift card to your account, the card purchased in another country. I know you must be eager to get this issue resolved at the earliest. I can do my best to help you.
Jonathan, I'm sorry to inform you that, iTunes Gift Cards are only redeemable in the iTunes Store for the country that is listed on the back of the card. I apologize for any inconvenience this may cause.
This did not help me at all...
There is only resellers in Taiwan, so there is no way I could get a refund from Taiwan
so what should I do in order to get my money back?
Or in other ways, an exchange upon other Apple products?I have now got an openoffice which I got from the internet. But the main thing is I paid £20.99 for this app and It is irriatting that the people who work for apple havent got back to me when I first reported a problem. I reported to them again and hoping that they will eventually get back to me.
-
Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
NamburiNamburi--
Remember, the getValues() method does not return the values from a column in
a TiledView. It is strictly for use by fields that can have multiple
values, like multi-select list boxes.
DO NOT remove the indexing feature from the field names, especially in the
case of checkboxes, because checkboxes aren't submitted back to the server
unless they are checked. By overriding the automatic checkbox tracking
feature JATO provides, you won't be able to tell which checkboxes were
actually checked by row--you'll simply get back a list the same size as the
number of checkboxes that were checked, without any placeholders for the
ones that weren't checked.
Instead, on submit, you simply need to move through the tiledView and check
the value of checkbox on each row:
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
You can use the same construct to build up an array or list:
List checkedList=new LinkedList();
tiledView.beforeFirst();
while (tiledView.next())
if (getDisplayFieldBooleanValue("myCheckBox"))
checkedList.add(new Boolean(true))
else
checkedList.add(new Boolean(false))
Todd
Todd Fast
Senior Engineer
Sun Microsystems, Inc.
todd.fast@s...
----- Original Message -----
From: <vnamboori@y...>
Sent: Wednesday, October 17, 2001 3:49 PM
Subject: [iPlanet-JATO] Getting the Values from a Tiled View
Hi,
I have a TiledView and I have checkbox in the tiled view. I am trying
to get the values of the checked boxes.
I have coded like this.
Object[] links = getRSystemLinks().getCbSystemUrl().getValues();
if I see the links.length i get only one. In html If I see the code
it appends the TileIndex in brackets. If I replace the TileIndex with
0 in all the fields in endCbSystemUrl method I get the correct values.
In the TiledView beginDisplay() method my code is like this.
if (getPrimaryModel() == null) throw new ModelControlException
("Primary model is null");
super.beginDisplay();
resetTileIndex();
pgCustomizeLinksViewBean parentBean = (pgCustomizeLinksViewBean)
getParent();
((DatasetModel) getDefaultModel()).setSize
(parentBean.SystemChoicesValue.size());
Any Suggestions on this.
Thanks
Namburi
[email protected] -
How to get the data from a cluster table to BW
Dear All,
I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
In SE11 Transaction the Cluster (table ZES) is showing invalid table.
I referred some Forums, but no use.
Can any body tell me procedure to get the data from a cluster (table ZES) ?
Waiting for you results.
Thanks and regards
RajeshHI Siggi,
Thank you for your reply..
I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
How can I use the Fields from the that table.?
What can I do now, can you please explain me about this point.
Waiting for your reply.
Thanks and Regards
Rajesh
Message was edited by:
rajesh -
Why do we get the data from a view to a report.
hi
why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?hi Jyotssna,
Suppose you are planning to get the data from multiple tables then you got to specify seveal condtions and make use of joins which results in poor performance in fetching the data . In order to improve the performance we make use of views where the conditions of different tables are defined and the data is fetched accordingly.
Regards,
Santosh -
Step 5.
5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here. For now, check out all the great free features of Creative Cloud! Get started with trials
I keep getting this.
The Bank and Paypal states that Adobe needs to process my transaction twice.
I have no order number/ no status nor contact from Adobe. I called customer service and he transferred me to sales where the phone rang with no answer.Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
Adobe contact information - http://helpx.adobe.com/contact.html
-Select your product and what you need help with
-Click on the blue box "Still need help? Contact us"
-or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
Maybe you are looking for
-
How can I check my iCloud email from an iPad?
When travelling i used to check my email using mobile me from any mac, pc or laptop. We have a family iPad with its own apple ID and iCloud account, I thought I would be able to use it via Safari to log onto my iCloud email remotely, but it always de
-
After navigating (sometimes downloading pictures, sometimes not) for approximately 10 minutes, I can no longer see contents of drop down menus, then Firefox freezes up and I have to use Ctrl/Alt/Delete to end my internet experience. == This happened
-
How do i transfer photos from 4s to 5?
Hello, I am getting ready to upgrade from a 4S to a 5. I do not use Photostream. I have about 6,000 photos I want transferred to my new 5. I have connected my 4S and saved all photos on to an external hard drive. In my Photos App, for some reason I h
-
Group and drill down and roll up by the most recent SCD2 type member in reporting period in SSAS
Hello, I am new to SSAS and cube world so my problem might not be big of a challenge for you but it is for me. Here is my challenge : My simplified datamart relation star schema model looks like this (2 dimensions and one fact): DATE dimension - Date
-
The load process runs in the SAP GUI and the GUI will timeout if someone do
Hi Our main issue: for loading DRW/BKT/Characteristics/Doc Files, I have already tested processing the Idocs in Background mode. All the Idocs failed because the background process on the SAP application server cannot access the doc files. (it has to