Edit mode for a single section
Hi,
How can one enable edit mode for a single section in a UITableView with group sections.
Thanks.
Something like this should work for you:
@interface RootViewController : UITableViewController {
NSNumber *sectionToEdit;
@property (nonatomic, retain) NSNumber *sectionToEdit;
- (IBAction)doEdit:(id)sender; // test bed only
@end
@implementation RootViewController
@synthesize sectionToEdit;
- (void)dealloc {
[sectionToEdit release];
[super dealloc];
- (void)editSection:(BOOL)editing section:(int)section animated:(BOOL)animated {
UITableView *tableView = self.tableView;
self.sectionToEdit = editing ? [NSNumber numberWithInt:section] : nil;
[tableView setEditing:editing animated:animated];
// test bed driver
- (IBAction)doEdit:(id)sender {
static BOOL editing = NO;
editing = !editing;
[self editSection:editing section:2 animated:YES];
#pragma mark Table view methods
- (BOOL)tableView:(UITableView *)tableView
canEditRowAtIndexPath:(NSIndexPath *)indexPath {
if (sectionToEdit == nil)
return YES;
else if ([sectionToEdit intValue] == indexPath.section)
return YES;
else
return NO;
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath {
return UITableViewCellEditingStyleInsert;
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 3;
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {
return 3;
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
reuseIdentifier:CellIdentifier] autorelease];
cell.textLabel.text = [NSString stringWithFormat:@"Section %d - Row %d",
indexPath.section, indexPath.row];
return cell;
Note that once a section is selected for editing, the above locks out all the other sections until the edit of the selected section is finished. I assume this is what you'd want. However if you're also providing a standard editing button to put the entire table in editing mode, you might want to change the control structure a little. E.g. if the standard button remains enabled during a section edit session, its action should probably set SectionToEdit to nil before starting the animation.
- Ray
Similar Messages
-
How to get out of tex edit mode with a single button?
Hey,
Is there a way to escape from text edit mode with a single click or button?
So far I always hit CTRL+Enter, then V and then I click away from the canvas so that the paragraph ain't higlighted no more. But thats a pain in the butt! Cant there be a single button for this?
Thaks
AOSomething interesting I just noticed: Double-clicking outside a text box can have different effects according to context.
With the Pointer tool selected, double-clicking on a text box allows you to edit the text. In this "quick edit" mode, double-clicking outside the text box will return you to the Pointer tool.
If the Text tool has been selected manually, double-clicking outside a text box will create a new text box. -
How to set Compatibility Mode for a single site in ie10
This question was originally posted on the Answers forum -
http://answers.microsoft.com/en-us/ie/forum/ie10-windows_7/how-to-set-compatibility-mode-for-a-single-site-in/187152e3-142a-4d96-8d1b-af82ef571eec
I am having problem with getting ie10 to set ie9 compatibility for a single site (sharepoint.contoso.com).
When I add this website in Compatibility View Settings (Alt > Tools > Compatibility View Settings > 'Add this Website') it adds the domain 'contoso.com' and not the individual website (sharepoint.contoso.com).
This cause other sites (www.contoso.com) to be configured to use compatibility mode. Because this is a separate site (different web server) to the site sharepoint.contoso.com (sharepoint 2010 server) we need different compatibility settings.
Using a different example to explain the issue -
Microsoft has three websites that are different websites created by different developers written in different programming languages and they only work with certain browsers.
microsoft.com (Website1 created by Developer1) - compatible with ie8/ie9/ie10
msdn.microsoft.com (Website2 created by Developer2) - compatible with ie8/ie9
technet.microsoft.com (Website3 website created by Developer3) - compatible only with ie10
The only thing the three website share is the URL contains 'microsoft.com'.
Marking 'msdn.microsoft.com' to run in compatibility mode affects the other 2 websites - mainly technet.microsoft.com which will not work now since it only runs in pure ie10 mode.
Should you be able to add an individual site to the compatibility list instead of all sites that have .microsoft.com in the URL? Am I missing a simple setting in the ie10?
As a workaround I am using the F12 Developer Tools to set the Browser Mode which temporary sets the compatibility mode. However this is not a nice solution to the end users at our organisation.problem is not solved for non corporate environments...
You could start your own thread. Then if you got that answer and it was marked Answered you would have the ability to unmark it. The OP of this one seems satisfied. Also note that this is TechNet. Consumers can get help on Answers
forums.
Robert Aldwinckle
Oh! I wrote it wrong: I should have said: This is not solved for NON-AD environments. No demands what so ever to use Window 7/8 professional in a small corporation or on a big corporation with Island of smaller departments for example offshore.
The problem is that the thread is not "Answered" by the OP, its is marked answered by a moderator (and same moderator that did the answer) so no way of telling if the OP is satisfied.
But you are right in the fact that I am almost kidnapping the thread. But a complete answer would benefit all in this case I would presume.
Regards
/Aldus -
Purchase Orders form in Query Only mode for a single user
Hi All,
I want to make the Purchase Orders form as query only for a single user. I tried by giving 'Query_only=Yes' in the parameters section. I am getting 'FRM-04151: You cannot query records here' message more than 10 time. I know we get this message and this is applicable to all the users. But this message is comming more than 10 times.
Is there anyway that I can restrict the Query only mode to a single user and please suggest about the message also.
Thanks in Advance,
NareshPlease post this question here: OA Framework
There are so many special conditions and restrictions for E-Biz Suite that this forum is not the right place to ask these questions. The Apps forum at this location is the right place. -
How-to synchronize edit forms for a single View Object tree node entrie
Hi all,
I created a tree from a single View Object,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/32-tree-table-from-single-vo-169174.pdf]
then i want to create and synchronize edit forms for tree node entries,
follow this [http://www.oracle.com/technetwork/developer-tools/adf/learnmore/50-synchromize-form-treeselection-169192.pdf]
but it not working when i click child node!!
i found the latter tree from many View Object ,but the former tree from single View Object.
what should i do?
Thanks in advanceHi,
say the tree is built from ViewObject1. In the AM model, create a second View Object instance for this. Say ViewObject2. Create the form from ViewObject2 and the tree from ViewObject1. When creating the tree, use the"Target Data Source" option at the bottom to reference the iterator of ViewObject2. Then create a PartialTrigger on the paneFormLayout that holds the synch form. In the partial trigger property, reference the tree so that when the tree selection changes, the form is updated. Then create a PartialTrigger property on the tree and point it to the submit button of the form so you can show updated values in the tree.
Frank -
Can you create an album in Edit mode for Elements 8?
I use a netbook and my screen resolution is maximized at 1024 x 600. I found another post that stated the screen will be cut off if there was less than 1024x768.
When I create an album I am not able to click "Done" at the bottom of the panel. This doesn't happen in Edit mode, only Organizer
I'm new to the program. Is there a way around this?
ThanksPerfect, thank you. It worked. When I r
ight-clicked on the menu bar, "preoperties" didn't come up, but it did give me a "size" option.
Thanks for your help -
Presets or Editing Mode for MJPG
I am trying to figure what Preset or Editing Mode in the General tab to start with for the following.
I tried to use DV NTSC but I get the red bar on the bottom edge of my time line. doesnt this mean that my file and Premiere dont match?
General
Complete name : E:\VelocityHD_Processed\Watts\Watts_0004_NTSC-HD_18_fps.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 11.3 GiB
Duration : 6mn 11s
Overall bit rate : 262 Mbps
Video
ID : 0
Format : JPEG
Codec ID : MJPG
Duration : 6mn 11s
Bit rate : 262 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 4.215
Stream size : 11.3 GiB (100%)
ThanksSome previous discussions that may help... you don't give your camera brand, so I am putting all 3 discussions
MJPEG http://forums.adobe.com/thread/730396
- problems with Samsung codec http://forums.adobe.com/thread/699493
- and Fuji http://forums.adobe.com/thread/1015922 -
Edit Autofill for a single field?
There's a form I use a lot. I simply enter currency amounts into it in the form of xx.95. IOW, two digits, decimal, 95. So, when I wanted to enter 11.95, I had only to enter "1". One time, when I wanted to enter 11.95, I accidentally entered 11 and left out the .95. Now, when I enter "1", I get two choices:
11
11.95
I would like to edit out the "11" so that I can go back to just typing "1" to get 11.95. I do NOT want to delete the Autofill for the whole form because there are a LOT of data in the other fields that I don't want to lose.
So my question is: can one edit Autofill for one field in a form?Hi
It would be nice to selectively edit these forms, as I have a few I'd like to change. Unfortunately, there is no easy way to edit selective entries for a particular auto-fill. I say "no easy way" as I'm sure someone has a more in-depth understanding of where this information is stored and how to edit/access that file. Such information is beyond my Universe.
Within Safari, the only way to correct the entry is to remove it, then re-enter the information. -
JTREE request edit mode for one node
hello,
my jtree is editable
tree.setEditable(true); // double click on a node and it goes in "edit mode"
I would like to set a specific node into "edit mode" (just like when you create a new folder in windows - new folder appears in edit mode - you just have to type the name of the folder)
//set the node selected
setSelectionPath(new TreePath(newfolder.getPath()));
// set the node in edit mode - does not exist ???
setEdit((new TreePath(newfolder.getPath())); ????
Second question:
how can I avoid a specific node from being editable ?
// set all the nodes editable !!
tree.setEditable(true);
thanks a lot !polo777 wrote:
I would like to set a specific node into "edit mode" (just like when you create a new folder in windows - new folder appears in edit mode - you just have to type the name of the folder)[JTree.startEditingAtPath|http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTree.html#startEditingAtPath(javax.swing.tree.TreePath)].
how can I avoid a specific node from being editable ?Override [JTree.isPathEditable|http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTree.html#isPathEditable(javax.swing.tree.TreePath)]. -
How to create editable tablecells for a single table row dynamically?
Hi
How to make the cell of a tablerow editable based on flag in backing list object bound to row? I can't decide the editable property while creating table columns. So i can't use setCellFactory() during creation. However setCellFactory() makes all cells in table column editable.How to make non-editable table row cell editable and vice-versa based on flag?hi
good
if you want to create two different view for a same table than you cant give the same name for the same view,otherwise it would allow you to create the view.Try out with different view name as well as the function group name,i hope this ll work.
thanks
mrutyun^ -
Querying up AR Customer OA page in read-only mode for a Single Customer
We are building a Custom Form in which associated Customer <defined in AR> would be queried up.
Now we want to give an option to the User to view the complete details of the Customer. We would be giving a menu option in Tools 'View Customer' thru which he would see the Full Customer Details. <AR Customer OA page>
We have two requirements
1> The Full Customer Details should show up in Standard OA Customer Page the moment page comes up. The user should not be required to query the details.
2> It should be read-only and user should not be able to update any field.
How can we achieve this requirement? I did some RnD but did not see any place in EBS where we display the Customer Page in read-only mode and that too quried up for one particular customer.
Thanks
ArunHi Arun,
Please let me know if find any solution for this. We have a similar scenario in which we need to call the customer Page with all the inforamtion populated, related to one customer.
Thanks in advance,
Mannuru -
How to view NEF (RAW) photos when in editing mode for PSE 9
When I want to open a NEF photo to edit, all I cannot see the actual photo. I have to go into another program to view the photos so that I can determine which file name I want to open and edit.
In the editor, go to Help >Updates and see if it updates camera raw for you.
-
Elimination of Edit Mode for Views
Hi all,
I have created a view with a condition which says Activity is not "Save Request" . This is from within studio.
When I deploy the process and see the workspace, I do see the condition being applied but I also see that the condition created from within studio appears as Editable inside the workspace for that view.
I want to not show this condition to the end-user but at the same time, want to apply such a condition.
How can I do this?
This is in OBPM 10GR3.You have a property in the view called isHidden that I think is what you are looking for.
Regards -
Non-editable mode for customer master data in VA01 and VA02
Hi all,
User requirement is they don't want to give permission to change customer master data (payer & ship-to ). I didn't find any user exit to do screen non-editable.
Can any one help me in this..
Regards,
SudhakaraHi Sudhakar Reddy,
For this transaction code user exits available :
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly
V45L0001 SD component supplier processing (customer enhancements
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing
For ur requirement whixh exit is suitable plz check it out. other wise put breakpoint for userexit and check it out.
Rewards somr points.
Rgds,
P.Nag -
Hello everyone,
Do someone meet this issue ? Do you know if it has a link with customization of ppm or customization of ITSM ?
Many thanks in advance for your replies !It seems that I've solved this issue. To get it work:
1. Select checkbox Time Recording and Travel Expenses via CATS for project type. Path: SPRO —> SAP Customizing Implementation Guide —> SAP Portfolio and Project Management —> Project Management —> Structure => Define Project Types
2. Run/schedule a synchronization with the report DPR_CATS_CPR_TRANSF (Transfer of CATS Itemizations to Project Management Application).
Time Recording from a Request for Change to a PPM ProjectTask - Working with Projects - SAP Library
Regards,
Alex
Maybe you are looking for
-
Problem with Purchase Order (PO) script
Hi all, I am having a problem in my PO layout. In my layout when I take the print preview of the layout for Purchasing Organization PAPL it shows me the Info record Text for only first item whereas it does not show it for other line items. However w
-
How to copy restricted key figures in query designer ?
hi, i have created a query in query designer (BI 7.0). How can i copy existing restricted key figures ? i can't find anything. i always have to create a new one, and then i have to do all the things like 'details of selection' etc.... manually. that
-
How to find out changes in order in APO
Hi, I have with me order number. I want to know what changes are done in APO in particular time period through which transactions. I mean I want to see changes particular order in particular time period. I tried with /SAPAPO/C3 But in 24 hours period
-
Can you pull a still picture off of video
Can you pull a still photo off of a video in any program on MAC's?
-
IPhoto does not import HD video/MTS files for Panasonic Lumix DMC-LX5.
Hello, everyone. I'm using iPhoto '11 on an iMac i7. I recently bought the Panasonic Lumix DMC-LX5, which records HD video (AVCHD Lite). When I insert the memory card into my iMac, it recognizes and imports all photos. However, the videos are left on