Set default 3 empty rows on edit (in the table view)
Hi
i need to add 3 empty rows, currently only 1 rows gets added by default on edit..
i tried using the add method of collection wrapper.. i did not find any differrence..
its adding only one row.
has anyone worked on similar requirement or any help on this..
thanks
Dinesh.
hi Ravi,
thank you very much for the reply, but i even gave 10,10 but there is no change in the display..
even before edit and after.. in the insert button.. i am able to add 3 new empty rows but on edit
its not working.. through collection wrapper->Add or insert methods..
is there any other way to insert new empty rows through program on edit or is there any configuration...
thanks
DInesh
Similar Messages
-
How to make a single row as editable in a table view?
Hello Friends,
As per the requirement,i have created a new table view with table row level actions. But I am able to achieve the delete functionality. But for edit action, if i lock the corresponding entity also it is not becoming as edit.
Let me know any ideas to achieve this??
Thanks in Advance.
Regards,
RaviHi Raviteja,
In your row level buttons if you want to edit a row you have to fallow this steps..
1) get the selected record by using index.
2) get the action mean which action you want to perform ( edit or delete like).
3) lock the current entity.
4) get the custom or comp controller instance based on get the current record.
5) edit the row..
sample code for this..
DATA:
lv_index TYPE int4,
lr_current TYPE REF TO if_bol_bo_property_access,
lr_entity TYPE REF TO cl_crm_bol_entity,
lv_event TYPE string,
lv_dummy TYPE string,
lr_core TYPE REF TO cl_crm_bol_core,
lv_one_click_lock TYPE sysubrc,
lr_col TYPE REF TO if_bol_bo_col,
lr_coco TYPE REF TO component ctrl class name (impl class),
lr_cuco TYPE REF TO custom cntrl class name ( impl.)
CALL METHOD cl_thtmlb_util=>get_event_info
EXPORTING
iv_event = htmlb_event_ex
IMPORTING
ev_index = lv_index.
CHECK lv_index IS NOT INITIAL.
* Get the current entity
lr_entity ?= me->typed_context->urcnode->collection_wrapper->find( iv_index = lv_index ).
CHECK lr_entity IS BOUND.
* Get the action clicked on
SPLIT htmlb_event_ex->event_defined AT '.' INTO lv_event lv_dummy.
* Try to lock the current entity
lv_one_click_lock = cl_crm_uiu_bt_tools=>set_one_click_lock( me->typed_context->cnode->collection_wrapper ).
CASE lv_event.
* Edit the current Partner
WHEN 'EDIT'.
IF lv_one_click_lock <> 2 AND lr_entity->is_send_active( ) = abap_true.
lr_coco ?= me->comp_controller.
CHECK lr_coco IS BOUND.
lr_current = lr_coco->typed_context->cnode->collection_wrapper->find( iv_bo = lr_entity ).
* if entity is not yet there: add it to component controller collection
IF lr_current IS NOT BOUND .
lr_coco->typed_context->cnode->collection_wrapper->add( lr_entity ).
lr_current = lr_coco->typed_context->cnode->collection_wrapper->find( iv_bo = lr_entity ).
ENDIF.
CHECK lr_current IS BOUND.
lr_cuco ?= me->get_custom_controller( 'compname/cnameCuCo' ). "#EC NOTEXT
lr_cuco->typed_context->cnode->on_new_focus( lr_current ).
me->set_editable( ).
ENDIF.
if this is not work then go through this link..
OCA edit button problem
Thanks & Regards,
Srinivask -
Set back ground color to a particular cell in table view
hi,
iam working on a jspDynpage and have a htmlb table view for which i need a way to set back ground color to a particular cell in table view, the color has to be set based on a value..is there a way to do it without using an iterator...well iam using a cellRenderer for the table but cant find a way to set the colors...if anyone does have a way please do reply...regardsYou can mention the color in <b>textview</b> as well as <b>Label as follows:</b>
<htmlb:textView text = "<span style='background-color: #00FF00'>My Textview</span>"
design = "EMPHASIZED" />
<htmlb:label for = "MyLabel"
text = "<span style='background-color: #00FF00'>Label </span>"
encode = "false"/>
Reward each helpful answer
Raja T
Message was edited by:
Raja Thangamani -
Multiple row selection capability in the table
Hi
I have a group with table layout style and I want to set the rowSelection property of the generated table to "multiple" but it seems that there is no way to do that from JHs unless using the group as LOV, which is not desired for me. Here is the code which sets this property in tableGroup.vm :
#if (! ($JHS.current.group.useAsLov && $JHS.current.group.multiSelect))
selectionListener="#{#BINDINGS_TABLE().collectionModel.makeCurrent}"
rowSelection="single"
#if( ! $JHS.current.group.useAsLov )
selectedRowKeys="#{#TABLE_BEAN().selectedRow}"
#end
#else
rowSelection="multiple"
selectedRowKeys="#{#LOV_PAGE_BEAN().selectedRowKeySet}"
selectionListener="#{#LOV_PAGE_BEAN().selectionListener}"
#end
Is there any reason to not allowing to have multiple row selection capability in the table when it is not in LOV mode?
Thanks
FerezFerez,
No, but if you want to have multiple selection, there is typical a custom action you want to apply to the selected rows, which cannot be defined in the Jheadstart Application Definition editor.
However, it is perfectly fine to use a custom tableGroup.vm template and enable multi-selection.
Steven Davelaar,
JHeadstart team. -
How to select a row in a single-select table view?
Hello folks,
I have a table view with a 'details' button. When a row is selected and 'details' is pressed, the table view disappears and a form view is displayed (like the toggle button in PCUI). I have implemented this using a navigation link. When I press 'cancel' in the form view, another navigation link takes the user back to the table view.
My problem is, when the table view reappears, there is no row selected (the row that was selected previously, is de-selected). How do I make sure that the row remains selected?
I tried using the collection_wrapper->mark() method in the inbound plug of the table view, but it works only for multi-select table.Hi Masood,
Thanks for your reply.
I had already tried using MARK ( iv_index = lv_index ), but it did not work because the first statement in the MARK method is
check ME->MULTI_SELECT = ABAP_TRUE.
Mine is a single-select table. So, using the MARK of the iterator object, with either the IV_BO or the IV_INDEX parameter also does not work. Is there any other way for a table with single row selection?
Thanks!!!
Rohan. -
Capture the rows selected in a multiselect table view (BSP)
Hi,
My requirement is:
I have a table view in which I can select multiple rows.
I will be selecting some rows, and pressing a button.
Functionality of button is written in Javascript, to open a popup window.
But how will I capture which all rows were selected ?
Should I use a Java code or ABAP code ?
And where should I put that code ?
I tried calling the method cl_hrrcf_iterator=>get_tv_attr in the Javascript of the button. But it doesnt work. But if its in DO_HANDLE_DATA it works. Why is it like that ?
Is it possible in BSP, to use the function htmlbevent.obj.getSelectedRows() ? If so, how should the code be ?
Could you please tell me some of the possible solutions.
Would definitely appreciate quick replies.
Thanks,
Nisha Vengal.Hi Nisha,
You can have the ABAP code itself. I had also faced with then same issue. Use the below piece of code form your requirements.
In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_ROW_START*
* Data : M_ROW_REF type <Structure type>
*m_row_ref ?= p_row_data_ref*
In *IF_HTMLB_TABLEVIEW_ITERATOR~RENDER_CELL_START*
* DATA : CHK TYPE FLAG
*case p_column_key.*
when ' <Column Name>'.*
CHK = m_row_ref-><Column Name>.*
p_replacement_bee = CL_HTMLB_CHECKBOX=>FACTORY(
id = p_cell_id
checked = CHK ).
In *Do Request*
Data : loc_table_event type ref to cl_htmlb_event_tableview
call method cl_hrrcf_iterator=>get_tv_attr
exporting
p_tv_id = '<Tabe View ID'
p_component_id = me->component_id
po_request = me->request
importing
po_tv_event = loc_table_event.
The above methods are used to get the values which are selected in the table view and operated further.
Reward points if useful.
Regards,
Gokul.N -
Selecting all rows currently visible in the table
Hi ,
we need to add the "Select all" functionality for the a table used in one of the screens. The examples I have found for this would select all the elements of the node bound to the table. However, we need to select only those elements which are presently visible on the screen, which would change if the user presses the previous or next button.
Please guide me on how it can be possibly done .
Edited by: Dhruwat Bhagat on Dec 28, 2007 11:45 AMHi Dhruawat,
Modify the example functionality SelectAll like this:
Create visRow context attribute of type int. Bind this to firstVisibleRow property of table.
Check visibleRowCount value (default is 5)
//for loop on the table node
for(int i=visRow ;i<(visRow + visibleRowCount value );i++)
select the element;
// end of for loop
regards,
Siva -
Assertion Failed with switching between editing mode of table view
I'm writing an app that can switching between edit mode of a table view
- in edit mode a new line appear at the bottom
- out edit mode this line will disappear
I used insertRowsAtIndexPath and deleteRowsAtIndexPath to achieve this effect, but then during testing, if I switching edit mode too frequently, I got an assertion failure
Assertion failed: (cache->size >= g->size), function evictglyph_entry_fromcache, file Fonts/CGFontCache.c, line 836.
It seems someone has also encountered this before, but I have found no solution yet. Anyone know how to fix it or work around it?Hi,
Please check if you have entries on the table RSTRANRULE with:
GROUPID = 'space'
GROUPTYPE = 'space' or 'S'
REF_RULE <> 'space'
If there are inconsistent entries in the RSTRANRULE table such as:
TRANID *
OBJVERS *
RULEID *
SEQNR *
GROUPID 00
GROUPTYPE space or GROUPTYPE 'S'
RULETYPE space
REF RULE *
Delete these entries from the table.
Activate the affected transformations.
More info check the note 998730.
9987300-ASSERTION_FAILED when calling or changing groups, group 00.
Thanks,
Walter Oliveira. -
Can I Edit From the Remote View?
This always bites me.
When I go to Manage Sites and pull up my clients website and
I go to the Remote View, I can't seem to open the file and edit it
and it be done from the server.
Do I always have to download it and it overwrites my Local
View copy and then "Put" it back up on the Remote View site?
Does this not work like Microsoft Frontpage did where I could
edit the server files "Live"?
The problem I have with my Local copy versus the Server copy
is I don't know if the client has edited any files or not.
Any help on this Get and Put stuff would be very much
appreciated.> Do I then have to upload all of those 218 files back to
the Remote server?
Yes sir. That's the biggest argument against using Library
items.
> And won;t that overwrite the Remote server files?
Yes - it should do so.
> And how do you do that?
It's a pain. You have to make sure that ALL files at the
remote site are
current edit level files. This means that if anyone else is
working on
files they must either save and publish them or discard their
edits. Then
you would have to downsynch to your local site, make the
change and then
upsynch back to the server.
Library items and Template ONLY change local files. Period.
They have no
function on the server at all.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"KTPUB" <[email protected]> wrote in message
news:[email protected]...
>
quote:
Originally posted by:
Newsgroup User
> > The problem I have with my Local copy versus the
Server copy is I don't
> > know
> > if the client has edited any files or not.
>
> So continue to do it the way you are. Double click on
the remote site,
> and
> get all dependent files. Make your edits, and put with
all dependent
> files.
>
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
> ==================
>
>
> But I have a change on a Library file: a menu .lbi file
that affects 218
> other
> files. So when I make my change from the Remote Server
file it wants to
> update
> the 218 Local View files.
> Do I then have to upload all of those 218 files back to
the Remote server?
> And won;t that overwrite the Remote server files?
> And how do you do that?
>
>
> -
How can I set default value to a transient parameter in the VO
I have created a transient parameter in the VO, which is type of boolean.
When I try to input the "true" or "True" or "Y" in the 'default value',
and then running the programm, but all failure.
so I don't know how can i do.
Genuinely waiting for you help, thanks in advance.Hi Sumury,
First of all you could check if this transient attribute is read only. to check this, edit the VO and select the transient attribute under the Attributes tab. Then verify if it is marked as "Updateable Always" on the right-hand section.
If it is updateable, then try setting the default value on the VO Implementation class: open the xxxVOImpl class, go to the transient attribute's setter (setxxx()) and change it to:
<code> if (getXXX() == null) setAttributeInternal(XXX, "Y");
else setAttributeInternal(XXX, value);</code>
This might work. If it does not, then please post the exact message you are receiving when running the app.
Hope this helps!
Thiago -
Windows 8, set default application for example adobe reader, customize the start screen
I have two questions, Im going to deploy Windows 8 to our company, but have 2 big issues.
1) I need to customize the start screen, but cant find anywhere in the gpo´s? How can I do this without sysprepping etc (deploying with SCCM2012 SP1)
2) I need to set the default programs for adobe reader, mspaint etc, how can I do this? It doesnt work with the GPP and folder options, anyone have done this?
Thanks in advanceHi,
Thanks for posting your question in the forum. First of all, if you want to deploy customized Windows 8 Start Screen for domain users, I suggest we could refer to the following similar threads
and article.
Group Policy for Windows 8 Start
http://social.technet.microsoft.com/Forums/en-us/winserver8gen/thread/13a13c25-a1b2-4665-ab67-a2f9bc3b9bba
GPO Management for Windows 8 Start Screen?
http://social.technet.microsoft.com/Forums/en-US/W8ITProPreRel/thread/2d4bdcc6-3733-470e-939f-8b6eb0ef4492/
Windows 8 Start Screen Customization with MDT
http://blogs.technet.com/b/deploymentguys/archive/2012/10/26/start-screen-customization-with-mdt.aspx
Regarding the second question, since you want to set the default programs via Group Policy but it didn’t work. Would you please let me know how did you configure the setting? Please refer to
the following steps to configure the GPO setting.
To create a new Open With preference item
Open the
Group Policy Management Console. Right-click the Group Policy object (GPO) that should contain the new preference item, and then click
Edit.
In the console tree under
User Configuration, expand the Preferences folder, and then expand the
Control Panel Settings folder.
Right-click the
Folder Options node, point to New, and select
Open With.
In the
New Open With Properties dialog box, select an Action for Group Policy to perform.
Enter Open With settings for Group Policy to configure or remove.
Click the
Common tab, configure any options, and then type your comments in the
Description box.
Click
OK. The new preference item appears in the details pane.
For details, please refer to the following article.
Configure an Open With Item
http://technet.microsoft.com/en-us/library/cc732272.aspx
In addition, I suggest we could collect the following information to narrow down the cause of the issue.
GPMC.log
==================
a. On domain controller, click Start ->Run, type GPMC.MSC, it will load the GPMC console.
b. Right click on "Group Policy Result" and choose wizard to generate a report for the problematic computer and user account (please place appropriately). (Choose computer and select
the proper user in the wizard)
c. Right click
the resulting group policy result and click the "Save Report…" => save report to save the report to a HTML file.
Hope this helps.
Best Regards,
Andy Qi
TechNet Subscriber Support
If you are
TechNet Subscription user and have any feedback
on our support quality, please send your feedback here.
Andy Qi
TechNet Community Support -
Setting default value for a jcombobox based on the value not the index
I am trying to set the default value for my combobox to the current year. One way I thought of doing it was to get the index of the value representing the current year and then use setSelectedInex to make it the default. Any ideas?
The relevent section of code is below.
GregorianCalendar gregorianCalendar = new GregorianCalendar();
int year = gregorianCalendar.get(Calendar.YEAR);
String currentyear = year + "";
int startyears = 2000;
int numyears = 25;
JComboBox endyearcombobox = new JComboBox();
endyearcombobox.setBorder( BorderFactory.createLineBorder(Color.DARK_GRAY));
endyearcombobox.setFont(standardfont);
endyearcombobox.addActionListener( new ActionListener() {
public void actionPerformed( ActionEvent event ) {
endyearcombobox = ( JComboBox )event.getSource();
endyear = endyearcombobox.getSelectedItem();
boolean same = endyear.equals(oldItem);
oldItem = endyear;
String[] endyearlist = new String[numyears];
for(int i = startyears; i < startyears+numyears; i++){
String item = new Integer(i).toString();
endyearcombobox.addItem(item);
Thanks
GedThanks mate,
That was what I was looking for. I still had a little more manipulation to do, but sent me on the right track and have got it working now. I don't know why I didn't think of it in the first place.
Ged -
Setting default value for form field assoc with a table column
On a "Create Record" situation I was trying to set the default values of some form fields using a page level "Process". These form fields have Source Type = Database Column. It wasn't working, I could only set non-db assoc form field values no matter when the "Process" was set to exec. From some other posts it seems that this is by design, ie. not being able to programatically set the initial values of form fields that are sourced to db columns. I was hoping to have just one "Process" that would exec to set these initial values in one place rather than scattered about for each field that needed a default value. These particular default values come from ref tables and may be different for each user.
So, it looks like I have to use a "Default Value" plsql chunk for each field on the form itself or else set their value on the calling form's Redirect in the "Set these Items" area.
Is this correct?You could define a database function which accepts the name of the item and the user ID of the user running the application. Based on the item name and the user ID have the function return the appropriate initial value. Invoke this function in a "Default Value" PL/SQL block.
Does that help in centralizing your initial values? You could have one function per page or one function per application. I would do one function per application. -
How to modify the default settings of the Table View
Hi,
I saw that in the Coloum Properties Popup under the tab Column Format I have 2 different option (and one default) for the "Value Suppression". I have to check the "Repeat" choice for each report I've done, but, of course, I don't wanna do it manually ...I could get crazy!!
Is there any way to set the "Repeat" option as default?
Thanks,
Nazza
Edited by: user641641 on 16-Oct-2008 04:19the mail send by webmail will enter the channel from
"tcp_intranet" by default,could i change these mail
enter from other channel?I suppose that might be possible. Why would you want to do this?
Please be a little more detailed about what "some checking" actually means.
i want to do some checking for those mail,but i can't
set the rule to "tcp_intranet" because some mail that
come from others MTA will enter from tcp_intranet
channel also.so i have to modify the webmail's
default channel.
but don't how to do it ,and any other way can do it
thx~!I would handle it this way:
1. Create a new smtp listen on another port. This is done in the dispatcher.cnf Associate this port with whatever new channel you like.
2. Set webmail to connect to that port.
3. Create your new channel, say, "tcp_webmail" in imta.cnf
4. Add rewrite rules, similar to the tcp_intranet rules that are already there.
run:
imsimta cnbuild
imsimta restart
when you're done editing the files. -
How to avoid displaying a blank row in the table component
Hi,
I have a create insert button and a table as in a read only form.
Each time i click on a create insert button a popup appears were the person enter the corresponding values and on clicking submit button it has to show changes in the table and on clicking cancel button it has to go back to the page.
But even when i click the cancel there is still an empty row is shown in the table. Is there a way to avoid it ?
Thanks in advance.I am using this managed bean to refresh the table.
public class popupRefreshBean
private RichTable refreshTable;
public popupRefreshBean()
public void refreshTable(ReturnEvent returnEvent)
AdfFacesContext adf=AdfFacesContext.getCurrentInstance();
adf.addPartialTarget(this.getRefreshTable());
// Add event code here...
public void setRefreshTable(RichTable refreshTable)
this.refreshTable = refreshTable;
public RichTable getRefreshTable()
return refreshTable;
}
Maybe you are looking for
-
SSO for External application not part of the portal framework
Greetings, I am desperate!!! I am trying to do the following: I have a pl/sql application that presents to the user a set of external applications links.When the user activates a link, I would like to make a call the SSO server so it can do external
-
Windows look and feel instead, in InternalFrameDemo.java
Hi all, I am learning swing and I am trying to modify the InternalFrameDemo.java source from http://docs.oracle.com/javase/tutorial/uiswing/examples/components/index.html#InternalFrameDemo My idea is to add the line JFrame.setDefaultLookAndFeelDecora
-
Same usernames, internal vs. external domains, conflict when usingWebAccess
Currently running GW 8.0.2hp2 on NetWare 6.5sp8. We have a single domain and single post office, and a single WebAccess and single GWIA gateway. We about 25 external domains setup to allow using external users' e-mail addresses our in internal corpor
-
I am making a video game using Adobe Flash 2.0. I need to be able to show what I have through a website (my portfolio) and/or insert it into an interactive Indesign PDF file. The game needs to be able to be played and be used and tested by whoever I
-
MacBook Pro Mid2012 does not detect external monitor
After i upgraded to MAVERICKS now using my " BELKIN HDMI TO THUNDERBOLT ADAPTER " when i connect it to TV the monitor flashes black and nothing happens no signal on TV go to settings display and sound there is nothing and when i disconnect HDMI it fl