Edit mode in a table view with value node
Hi experts.
I'm trying to create a table view. This table is based on a structure that is filled with data with a RFC function module retrivening the data from another system.
The problem is that i'm unable to set it editable. There is for exemple a check box that i need to check / uncheck, but the field is always read only. We don't even go through the method get_i_.
In the do_prepare_output of the view, i have checked, as below, the view is in edit mode, but still i can't do anything.
*DAtA lv_str type abap_bool.
*lv_str = me->view_group_context->is_view_in_display_mode( me ).
Any ideas why ?
Thanks for your time and help.
Regards.
AW
Solved by sending X in IV_ALL_ROWS_EDITABLE.
cl_thtmlb_util=>translate_selection_mode(
exporting
iv_selection_mode = NODE->SELECTION_MODE
iv_all_rows_editable = 'X'
importing
ev_selection_mode = lv_cellerator_selectionmode
ev_edit_mode = lv_cellerator_editmode
ev_selection_column = lv_cellerator_selectioncolumn ).
Edited by: aw_crm on Jun 16, 2011 10:02 AM
Similar Messages
-
Navigate between View with Value Node.
Dear Expert,
I would like to know the best way to carrying data in Webdynpro between View.
For example, I have a Quiz applcation with 10 pages (View) of question. I would like to submit the answer at the end of the page (10th View). So, at the end of the page, I need the to retreive the answer from page 1 to 10 and submit it.
1. I am using copyToLocal. What that does it when the application fire Next event plug. it will
Quiz.<b>set</b>QuizAns1(Quiz.<b>get</b>QuizAns1)
and do the same thing for next 9 pages in order to bring the answer from page 1 to the end.
To simplfied, I am considering.
2. Model Beans
/people/valery.silaev/blog/2005/06/29/apojo--almostplain-old-java-objects-as-model
3. Session Beans.
Is any concern that I shouldn't use session bean in webdynpro??
Or any other way to make the Code more organize?
Thanks all.Hi,
The best way to carry data in WebDynpro views is through context attributes.
Create a context as below in component controller
Context
+Questions (node:cardinality 0..n,selection 0..n)
---Question
+Answers
---Ans (node:cardinality 0..n,selection 0..n)
Map the above context to all the views.
In the wdDoInit() of component controller create Ans elements under Answers node equal to question node.
for(int i=0;i<wdContext.nodeQuestions.size();i++)
wdContext.nodeAnswers().addElement(wdContext.nodeAnswers().createAnswersElement());
// This way we need not create the elements in each view before going to the next view.
Populate the Question attribute with Questions.
Through indexing show the question corresponding to views as
In first view (index 0)
wdContext.nodeQuestions.getQuestionsElementAt(<b>0</b>).getQuestion();
In second view (index 1)
wdContext.nodeQuestions.getQuestionsElementAt(<b>1</b>).getQuestion();
and so on..
// Note: The Answer node will not be populated intially with values as your answer might be multiple choice.
After the user gives answer store the answer in the corresponding index of Ans attribute under node Answers as
For the answer in first view
wdContext.nodeAnswers.getAnswersElementAt(<b>0</b>).setAns(<get the answer from the view>);
For the answer in second view
wdContext.nodeAnswers.getAnswersElementAt(<b>1</b>).getAns(<get the answer from the view>);
In your last view you can get the Questions and Answers by looping through the Questions and Answers node.
This way you will need only one attribute for Question and Answer respectively. -
Table View with Multiple Context Nodes
I want to create a table-view consisting of an object composition, e.g. multiple business objects. The chtml:configCellerator -tag supports just one context node which corresponds to just one business object.
How do you create a table composed by different objects, i.e. BTAdminH and BTAdminI ?
Edited by: romanglass on May 18, 2010 4:07 PMHi,
I would suggest to create a new component and not to disturb the standard ones. Because the super class of the header context node (BTAdminH in your case) must be inherited from CL_BSP_WD_CONTEXT_NODE_DTV - Deep table view.
The dependent nodes must be passed to return parameter rt_result of method GET_SUB_CNODE_DEFINITIONS.
This cant be done via wizard. I just tried to replicate your scenario. Below are the steps,
1. create a view with context node BTADMINH as tableview. Then change the super class of the context node to CL_BSP_WD_CONTEXT_NODE_DTV.
2. Add another context node BTADMINI and mark it as dependent to BTADMINH.
3. Now change the super class of context node BTADMINI to CL_BSP_WD_CONTEXT_NODE_TV (Table View).
4. Redefine method GET_SUB_CNODE_DEFINITIONS in context node BTADMINH.
In the view layout you should use cellerator and pass an iterator with interface IF_THTMLB_CELLERATOR_ITERATOR. The interface has a method RENDER_DEPENDANT_OBJECTS which returns the table of dependant objects.
Regards,
Arun
Edited by: Arun Kumar on May 19, 2010 1:01 PM -
How to create table view with reference table
Hi experts,
How to create table view with reference table in SE11, plz gve me stp by stp procedure.
pints grnded for hlp.Hi
Go to Tcode se11 choose view and enter the name and create a popup opens up choose database view option
enter the description
On the left hand side choose the table name.
Click on view fields tab and choose your table fields.Here you can choose which fields you want in your view.
Save and then activate.
Hope this helps.
Regards,
Harish -
Need help using GO URL to display table view (with sorting, pagination)
I'm trying to use the GO URL to get to a table view with the sorting and pagination functionality intact, but I don't want all the other links and input fields of a dashboard.
Is this possible?
I'm trying to consume table view report in an IFRAME within my web application using the GO URL, but without any luck.
For proof of concept, I'm trying to extend Sample Lite\KPI\Sample PKI which I can display as a dashboard in my IFRAME, but I would like the table view with the column sorting and pagination functionality intact without the dashboard links and fields up at the top.
I'm new to Oracle BI, specific explanation and step by step examples would help me tremendously.
I am on Oracle 11g v11.1.7.0 on RH linux.
The GO URL I am using:
http://myserver:port/analytics/saw.dll?Go&NQUser=username&NQPassword=password&Path=/shared/Sample%20Lite/KPIs/Sample%20KPI&ViewName=Table
Thanks.
BrianTABLES: bkpf.
TYPES: BEGIN OF ty_bkpf ,
belnr LIKE bkpf-belnr,
bukrs LIKE bkpf-bukrs,
gjahr LIKE bkpf-gjahr,
bldat LIKE bkpf-bldat,
waers LIKE bkpf-waers,
END OF ty_bkpf.
TYPES: BEGIN OF ty_bseg ,
buzei LIKE bseg-buzei,
shkzg LIKE bseg-shkzg,
END OF ty_bseg.
DATA: it_bkpf TYPE STANDARD TABLE OF ty_bkpf ,
it_bseg TYPE STANDARD TABLE OF ty_bseg .
DATA: ibinding TYPE salv_t_hierseq_binding.
DATA: xbinding TYPE salv_s_hierseq_binding.
DATA: gr_table TYPE REF TO cl_salv_hierseq_table.
SELECT-OPTIONS:
ndoc FOR bkpf-belnr,
empr FOR bkpf-bukrs,
anod FOR bkpf-gjahr.
START-OF-SELECTION.
PERFORM get_data.
PERFORM relat_tables.
PERFORM display_alv.
*& Form get_data
FORM get_data .
SELECT belnr bukrs gjahr bldat waers
INTO TABLE it_bkpf
FROM bkpf
WHERE belnr IN ndoc AND
bukrs IN empr AND
gjahr IN anod.
IF sy-subrc = 0.
SELECT buzei shkzg
FROM bseg
INTO TABLE it_bseg
FOR ALL ENTRIES IN it_bkpf
WHERE belnr = it_bkpf-belnr AND
bukrs = it_bkpf-bukrs AND
gjahr = it_bkpf-gjahr.
ENDIF.
ENDFORM." get_data
*& Form relat_tables
FORM relat_tables .
xbinding-master = 'BUKRS'.
xbinding-slave = 'BUKRS'.
APPEND xbinding TO ibinding.
ENDFORM. " relat_tables
*& Form display_alv
FORM display_alv .
cl_salv_hierseq_table=>factory(
EXPORTING
t_binding_level1_level2 = ibinding
IMPORTING
r_hierseq = gr_table
CHANGING
t_table_level1 = it_bkpf
t_table_level2 = it_bseg
gr_table->display( ).
ENDFORM. " display_alv -
Custom component Search and Result view using value node :pls help
Hi Experts,
I am creating a Custom component with Search and Result view using value nodes.
This is the code I wrote in the Search button event handler method.
The data which gets in lv_search I need to put in lv_col .
Can somebody guide me for this.
Points will be awarded .
METHOD eh_onsearch.
DATA : lv_current TYPE REF TO if_bol_bo_property_access,
lv_search TYPE zcrm_orgstruct_search, "Search value node structure
lv_result TYPE zcrm_orgstruct_result, "Result value node structure
lv_col TYPE REF TO if_bol_bo_col.
lv_current ?= me->typed_context->search->collection_wrapper->get_current( ).
CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search.
me->typed_context->searchresult->collection_wrapper->set_collection( lv_col ).
op_toresultview( ).
ENDMETHOD.
Regards,
LakshmiHi Lakshmi,
Could you please share with us how it was solved.
"CALL METHOD lv_current->get_properties
IMPORTING
es_attributes = lv_search."
Did you get any values in lv_search ?
Because while using value nodes for search view (which inherits from advance search controller class), the above method does not return any search values entered in the fields.
Please let me know how did you solve it.
Thanks & Regards
Vidhya -
RSS Table View with Tab Bar Code Error
I created an iphone app with a navigation controller that has a table view which displays an rss feed. My client wants it able to display multiple rss feeds through a tab bar. I have attempted several times and have messed up. If anyone could help me with this it would be greatly appreciated.
Hi Guy, and welcome to the Dev Forum!
I would recommend starting as follows:
1) Start a new project with the Tab Bar Application template;
2) Open MainWindow.xib and select Window->Document from the IB menu to make sure the xib window (the icon winow) is visible;
3) Locate the "View Mode" switch in the upper-left corner of the xib window and make sure it's in the Center position to display a 2-column table showing the view hierarchy as a tree of small icons to the left;
4) Expand the Tab Bar Controller branch, then delete (select and Edit->Delete) each of the two view controllers under the Tab Bar Controller. The only child of that controller should now be the Tab Bar;
5) Open the Library window (Tools->Library), drag a Navigation Controller into the xib window and drop it when it's on top of the Tab Bar Controller icon;
6) Repeat step 5 until you have as many nav controllers (one for each RSS feed) as you want (for this example, assume 4 RSS feeds);
7) The Tab Bar Controller should now have 5 children: the Tab Bar plus the 4 nav controllers; if not, drag the nav controllers until each of their icons is shown indented under the Tab Bar Controller just as the Tab Bar is;
8) Expand the first Navigation Controller branch, and expand it's Root View Controller; you should now see that root controller's Navigation Item;
9) Select the nav item, open the Attributes Inspector (Cmd-1), and change the Title to "RSS 1 Root";
10) Repeat 8-9 for the remaining 3 nav controller branches, so the root views will be labeled "RSS 2 Root", ... "RSS 4 Root" respectively;
11) Save the xib, return to Xcode, and click "Build and Go". The project should build and run without any warnings or errors. If not, return to step 1 and try to see where things went wrong.
Let us know if you need more help after you get the above skeleton app working. The next step will be to change the class of the "RSS 1 Root" controller to the class of the first table controller in your original project, and to add that controller's xib (you can delete FirstViewController.h/.m and SecondView.xib by selecting each in the Groups & Files tree of the Xcode project window and selecting Edit->Delete).
Please avoid the temptation to merge the above steps into your original project. In my experience, moving each of your files into the new skeleton, and testing at each buildable stage will reduce the chances for error while making it easier to spot any incompatibilities in your old code. The process shouldn't involve touching any of your XML parse or table display code, but you may need to override some additional table view controller methods such as viewWillAppear:
Btw, in case this hasn't been discussed yet, be aware you'll face a major decision soon: When tabbing to feed no. 2, what happens on the return to feed no. 1? If the user will return to the same detail view that was last displayed, you might need lots more memory and there will be lots more to go wrong. If the user will return to the home menu, the whole project will be much simpler. Estimate your effort accordingly.
Also be prepared for your client to say something like this during beta: "Oh... one or two of the links in feed no. 3 might be a mp3 or mp4 next month. That won't be a problem, will it?".
Hope that helps!
\- Ray -
[iPhone] UI Design pattern for table views with properties and children?
Hello,
I'm getting started with iPhone development and I have a question about the proper way to display a list that has both properties of the list itself as well as the ability to drill down into the members of the list. For example, my data is a Group (of people say). The Group itself can have properties - the name of the group, group email address, web page, etc. - and it obviously has members which also have properties - name, address, etc.
In my table view, I want to show the Group members and have accessory/disclosure buttons on each row to show the details of a person, but I also want to be able to edit the properties of the group - Group name, etc. What's the UI pattern for editing the properties of the table itself?
I thought about having a tabbar that toggles between the list and the properties of the list.
I also thought about having a parent table that lists the groups (so I could have more than one) and then have accessory buttons on each group row. The UI would then have to be that the user taps the row to drill down to the group members and taps the accessory button to edit the properties of the group. Is that "proper" - tap the bar or tap the accessory icon in a table row?
ThanksI don't think I'd use a tab bar.
You could break the table up into 2 sections, section 0 being the properties, section 1 the list.
Make section 0 just say 'Properties', then when you tap that row you drill down to a properties table, slap an edit button in the navigation bar to go into edit mode. -
Creating a pivot table view with two levels of headers
Hi,
I have a requirement in which i need to have a common heading for two or more columns.
For Example, I have two columns like total number of loans and Total loan amount. As per my requirement, i need to give a common header 'Total loan' as the main header and amount and Count as two subheaders under the main heading in the pivot table.
In table view, i would be able to make it using the display column and table header property. But, i need to get the same in pivot table as we have to use pivot table view instead of table view.
Please Help me on this issue.
Thanks in Advance
DeepakHello,
create one column in criteria and change it's fx to case when 1=0 then Products."Prod Name" else 'Tota Loanl' end
Now go to pivot and drag this column to Columns block of pivot. But keep this column up of Measure Labels and Now, go to column Format values.
Mention cell horizontal alignment to Center
see the following screenshot, Header is the column i created with the above functionality.
!http://i852.photobucket.com/albums/ab83/kishorg86/Header.jpg! -
I have pages on my site that have decided they don't want to display content either in Contribute (in edit
mode) or in DreamWeaver (in design view). They always look fine in Live view, prior to hitting the 'edit' button or when viewing in a browser. Using CS4 on Windows XP. I use Contribute for small edits and this renders that tool useless as there is no WYSIWYG. It's a pain in Dreamweaver to have to keep previewing in browser when I'm used to working in code/design view. Any help most appreciated. Here's the page I'm currently having the problem with:
http://www.pacaero.com/products/interconnect-medical.htmThat's odd because here's what I see ...
-
How can I directly update a SAP screen table control with values?
I have a need to update a table control on a standard SAP screen with values. Here's the scenario: The user will come into a standard SAP transaction (IQS2-change notification) and click on an action button which calls a function module. That function module will determine what needs to be added to the SAP screen table control (add additional task rows). When the function module returns with the row data to be added to table control, I would like to set those values as if the user input directly. The table control is located on it's separate tab (TASKS) in the transaction. I cannot find any user exists or BADI's for this transaction to allow me to affect the TASKS tab table control for this GUI. I'm trying to prevent from having to make a custom modification. If anyone has any ideas, please let me know. Thanks.
Hi,
Check these enhancements:
IWOC0002 PM/SM notification: Check whether status change is allowed
QQMA0001 QM/PM/SM: User Subscreen for Notification Header
QQMA0008 QM/PM/SM: User Subscreen for Additional Data on Notif. Ite
QQMA0011 QM/PM/SM: User Subscreen for Additional Data on Task
QQMA0013 QM: Default Values when Creating a Task
QQMA0014 QM/PM/SM: Checks before saving a notification
QQMA0015 QM/PM/SM: User-Exit before Call-Up of F4 Help on Catalogs
QQMA0016 QM/PM/SM: "User data" Function "Goto" --> "Task" Menu
IWO10026 User check on setting status 'Do not perform'
IWO10027 User exit: Generate user-defined settlement rule
IWOC0001 Create PM/SM notification: Determine reference object
IWOC0002 PM/SM notification: Check whether status change is allowed
IWOC0003 PM/SM authorization check of ref. object and planner group
IWOC0004 Change single-level list editing PM/QM/SM ALV settings
Regards
Appana -
Upload functin works in Edit mode but not in View mode
I am using the Oracle AS 10g PDK to integrate struts application into Portal. I found the upload function works fine in portlet edit mode, but it doesn't work in view mode (Go to the "The page cannot be found" and URL is "http://servername/portal/page"). Does anybody know the reason.
Hi there
Can you post a screen capture of what your Timeline looks like?
Odds are your Click Box is pausing in a weird place.
Cheers... Rick
Helpful and Handy Links
Begin learning Captivate 5 moments from now! $29.95
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcererStone Blog
Captivate eBooks -
How To Create Table View With Same Column name But Different Table?
Hi All,
I have the problem to create a tableview with same column name but in different table.
The Table that i have:-
Table - PAC051MPROFORMA
Column - mrn,visitid
Table - PAC051TPROFORMA
Column - mrn,visitid
Table - PAC052MTRANSBILL
Column - mrn,visitid
Then i want to create a table view to view that table. This is my SQL
CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
where
*(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
and
*(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
That SQL Return this error = ORA-00957: duplicate column name
Then I modify that SQL to
CREATE VIEW pacviewproforma (mrn,visitid)
As Select PAC051MPROFORMA.mrn,PAC051MPROFORMA.visitid,PAC051TPROFORMA.mrn,PAC051TPROFORMA.visitid,PAC052MTRANSBILL.mrn,PAC052MTRANSBILL.visitid
where
*(a.PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)*
and
*(a.PAC051TPROFORMA.mrn=PAC052TRANSBILL.mrn)*
This time this error return = ORA-01730: invalid number of column names specified
What should i do?
Thanks...Hi,
SQL> CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
2 As Select
3 PAC051MPROFORMA.mrn,
4 PAC051MPROFORMA.visitid,
5 PAC051TPROFORMA.mrn,
6 PAC051TPROFORMA.visitid,
7 PAC052MTRANSBILL.mrn,
8 PAC052MTRANSBILL.visitid
9 from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
10 where
11 (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
12 and
13 (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
CREATE VIEW pacviewproforma (mrn,visitid,mrn,visitid,mrn,visitid)
ERROR at line 1:
ORA-00957: duplicate column namePlease give different names to each column.
Something like this..
SQL> CREATE OR REPLACE VIEW pacviewproforma (MPROFORMA_mrn,MPROFORMA_visitid,TPROFORMA_mrn,TPROFORMA
_visitid,MTRANSBILL_mrn,MTRANSBILL_visitid)
2 As Select
3 PAC051MPROFORMA.mrn,
4 PAC051MPROFORMA.visitid,
5 PAC051TPROFORMA.mrn,
6 PAC051TPROFORMA.visitid,
7 PAC052MTRANSBILL.mrn,
8 PAC052MTRANSBILL.visitid
9 from PAC051MPROFORMA,PAC051TPROFORMA,PAC052MTRANSBILL
10 where
11 (PAC051MPROFORMA.mrn=PAC051TPROFORMA.mrn)
12 and
13 (PAC051TPROFORMA.mrn=PAC052MTRANSBILL.mrn);
View created.
SQL> DESC pacviewproforma;
Name Null? Type
MPROFORMA_MRN NUMBER
MPROFORMA_VISITID NUMBER
TPROFORMA_MRN NUMBER
TPROFORMA_VISITID NUMBER
MTRANSBILL_MRN NUMBER
MTRANSBILL_VISITID NUMBER
ORA-01730: invalid number of column names specifiedThe list of column nmae you specified during the CREATE VIEW should match with the SELECT list of the view.
Twinkle -
Create Table/View with Validity Date Control?
Hi,
does anyone know the easiest way for me to create a custom view that uses validity dates to control records by time periods, similar to time constraint 1 infotypes in HR?
For instance, if I define a table to store entries like so
Client (Key): 100
PSubArea (Key): C001
Grouping (Key): 01
End Date (Key): 99991231
Begin Date: 18000101
and I want to ensure that there can only be one record active on any given date, how can I prevent someone from creating a record from 20061107 - 20071107 that overlaps the existing record?
Is there a setting I missed?
Add conditions to generated view coding? Is there a good example?
ThanksK, so I found these
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/91/ca9fb3a9d111d1a5690000e82deaaa/content.htm">SAP Help - Time-Dependent Table/View</a>
<a href="http://help.sap.com/saphelp_nw04s/helpdata/en/c1/df5c3c3b067331e10000000a114084/content.htm">Generate Time-Dependence</a>
I'll give it a whirl now. -
Creating table view with text descriptions
Hello everyone,
I need to create a table view to a table ZMATERIAL (example) that needs to enter MATNR and MAKTX. But when i insert the material number and press enter, the view should automatically search the text description MAKTX of that material on it's respective table.
How can i do this ?
Thank you,
NunoHello Nuno
Most likely my variant works only for a single material number. In this case you have to use table maintenance events:
<a href="http://help.sap.com/saphelp_47x200/helpdata/en/91/ca9f0ea9d111d1a5690000e82deaaa/content.htm">Extended Table Maintenance Events</a>
Probably you have to use two or three events:
<b>- Event AA: Instead of the Standard Data Read Routine</b> (Here you read to material texts for both possible materials per record)
<b>- Event 05: When Creating a New Entry</b>
<b>- Event 08: After Correcting the Contents of a Selected Field</b> (when the user changes the second material number)
Regards
Uwe
Maybe you are looking for
-
How to get the cost center and division for a given FI vendor document...
Hello Experts, I am currently developing a report wherein I have to show the cost center and division used in the given FI document. These documents are vendor related transactions. In the file that was given to me by the user, she indicated the cost
-
Setup Sharepoint 2013 Extranet as separate farm
Hi All We currently have a Sharepoint 2013 Intranet and would now like to setup a Sharepoint 2013 Extranet/Portal to allow external customers/clients a shared collaboration area to work with internal users. The proposed site would be fairly basic an
-
Linking 2 portals together - can I do this?
I have a requirement to link 2 portals together. On the first portal would be a menu navigation item that the user would select to be taken (seamlessly and invisibly) to the second portal. The user shouldn't even know they're being directed to a seco
-
Can't convert from CMYK to RGB in Illustrator CS6
I'm moving art over to a new document. It was created in CMYK. The new document has a color mode of Basic RGB. After pasting the art I select it all, and choose Edit | Edit Colors | Convert to RGB. After saving and re-opening the document, the art on
-
Time Machine Freezes and Corrupts Disk
Hello, I have been attempting to set up one of my external hard drives for use in Time Machine, but every time I click "Erase" when Time Machine asks me to, Time Machine freezes, and my Hard Drive gets corrupt. After force quitting Time Machine and m