How can we performed the validation on the Name
Hi All,
I have a requirement that in the data list pane it is not possible for a user to add duplicate name i.e. unique name for the row create.
Can anybody tell me how to perform the same in advance list pane.
ID
Name
Role
Action
1
A
ZZ
2
B
YY
In the above example if now a user want to enter the A value again, he will get an error "Enter unique name" and the entry will not be saved.
Thanks & Regards,
Malkit Singh
Ok,
Option 1:
When you click on Save you can read the current data using this keyword and on the query result you can read each record using foreach() loop and check if any other record exist for the same value or not.
Option 2:
You can also create custom query based on Name parameter and execute the custom query with exclude option and pass the current value(name) into it and check the same if any other record exist with same name or not.
I hope this will be helpful.
Regards,
Mithun
Similar Messages
-
How can I perform the conversion of .pdf files in Cyrillic script to Word files in Cyrillic script. The .pdf file is too small for me to read without a magnifying glass, and the document is more than one thousand pages.
This answer was not helpful. First of all, I could not find "tech specs"
anywhere on the Acrobat 11 homepage. And secondly I purchased this software
for the specific purpose of converting .pdf files to Word. It was only
after I had completed the purchase that I learnt that Acrobat does not
permit the conversion of .pdf files in Cyrillic to Word files in Cyrillic.
I feel that Acrobat should have provided this crucial information before I
allowed my credit card to be debited. That is why I am now asking for my
money back. But thanks for your attempt to solve my problem, even if it was
not successful.
Julyan Watts -
How can I change the name of item in TableViewController iOS
How can I change the name of item in TableViewController? I want to be able to change the title of an item if I added one. Code:
// ViewController.m
// Movie List
// Created by Damian on 20/02/15.
// Copyright (c) 2015 Tika Software. All rights reserved.
#import "ViewController.h"
@interface ViewController ()
These outlets to the buttons use a `strong` reference instead of `weak` because we want
to keep the buttons around even if they're not inside a view.
@property (nonatomic, strong) IBOutlet UIBarButtonItem *editButton;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *cancelButton;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *deleteButton;
@property (nonatomic, strong) IBOutlet UIBarButtonItem *addButton;
// A simple array of strings for the data model.
@property (nonatomic, strong) NSMutableArray *dataArray;
@end
#pragma mark -
@implementation ViewController
- (void)viewDidLoad
[super viewDidLoad];
This option is also selected in the storyboard. Usually it is better to configure a table view in a xib/storyboard, but we're redundantly configuring this in code to demonstrate how to do that.
self.tableView.allowsMultipleSelectionDuringEditing = YES;
// populate the data array with some example objects
self.dataArray = [NSMutableArray new];
NSString *itemFormatString = NSLocalizedString(@"Movie %d", @"Format string for item");
for (unsigned int itemNumber = 1; itemNumber <= 0; itemNumber++)
NSString *itemName = [NSString stringWithFormat:itemFormatString, itemNumber];
[self.dataArray addObject:itemName];
// make our view consistent
[self updateButtonsToMatchTableState];
#pragma mark - UITableViewDelegate
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
return self.dataArray.count;
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
// Update the delete button's title based on how many items are selected.
[self updateDeleteButtonTitle];
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
// Update the delete button's title based on how many items are selected.
[self updateButtonsToMatchTableState];
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
// Configure a cell to show the corresponding string from the array.
static NSString *kCellID = @"cellID";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellID];
cell.textLabel.text = [self.dataArray objectAtIndex:indexPath.row];
return cell;
#pragma mark - Action methods
- (IBAction)editAction:(id)sender
[self.tableView setEditing:YES animated:YES];
[self updateButtonsToMatchTableState];
- (IBAction)cancelAction:(id)sender
[self.tableView setEditing:NO animated:YES];
[self updateButtonsToMatchTableState];
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
// The user tapped one of the OK/Cancel buttons.
if (buttonIndex == 0)
// Delete what the user selected.
NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
BOOL deleteSpecificRows = selectedRows.count > 0;
if (deleteSpecificRows)
// Build an NSIndexSet of all the objects to delete, so they can all be removed at once.
NSMutableIndexSet *indicesOfItemsToDelete = [NSMutableIndexSet new];
for (NSIndexPath *selectionIndex in selectedRows)
[indicesOfItemsToDelete addIndex:selectionIndex.row];
// Delete the objects from our data model.
[self.dataArray removeObjectsAtIndexes:indicesOfItemsToDelete];
// Tell the tableView that we deleted the objects
[self.tableView deleteRowsAtIndexPaths:selectedRows withRowAnimation:UITableViewRowAnimationAutomatic];
else
// Delete everything, delete the objects from our data model.
[self.dataArray removeAllObjects];
// Tell the tableView that we deleted the objects.
// Because we are deleting all the rows, just reload the current table section
[self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationAutomatic];
// Exit editing mode after the deletion.
[self.tableView setEditing:NO animated:YES];
[self updateButtonsToMatchTableState];
- (IBAction)deleteAction:(id)sender
// Open a dialog with just an OK button.
NSString *actionTitle;
if (([[self.tableView indexPathsForSelectedRows] count] == 1)) {
actionTitle = NSLocalizedString(@"Are you sure you want to remove this movie?", @"");
else
actionTitle = NSLocalizedString(@"Are you sure you want to remove these movies?", @"");
NSString *cancelTitle = NSLocalizedString(@"Cancel", @"Cancel title for item removal action");
NSString *okTitle = NSLocalizedString(@"OK", @"OK title for item removal action");
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:actionTitle
delegate:self
cancelButtonTitle:cancelTitle
destructiveButtonTitle:okTitle
otherButtonTitles:nil];
actionSheet.actionSheetStyle = UIActionSheetStyleDefault;
// Show from our table view (pops up in the middle of the table).
[actionSheet showInView:self.view];
- (IBAction)addAction:(id)sender
[self.dataArray addObject:@"New Movie"];
// Tell the tableView about the item that was added.
NSIndexPath *indexPathOfNewItem = [NSIndexPath indexPathForRowself.dataArray.count - 1) inSection:0];
[self.tableView insertRowsAtIndexPaths:@[indexPathOfNewItem]
withRowAnimation:UITableViewRowAnimationAutomatic];
// Tell the tableView we have finished adding or removing items.
[self.tableView endUpdates];
// Scroll the tableView so the new item is visible
[self.tableView scrollToRowAtIndexPath:indexPathOfNewItem
atScrollPosition:UITableViewScrollPositionBottom
animated:YES];
// Update the buttons if we need to.
[self updateButtonsToMatchTableState];
#pragma mark - Updating button state
- (void)updateButtonsToMatchTableState
if (self.tableView.editing)
// Show the option to cancel the edit.
self.navigationItem.rightBarButtonItem = self.cancelButton;
[self updateDeleteButtonTitle];
// Show the delete button.
self.navigationItem.leftBarButtonItem = self.deleteButton;
else
// Not in editing mode.
self.navigationItem.leftBarButtonItem = self.addButton;
// Show the edit button, but disable the edit button if there's nothing to edit.
if (self.dataArray.count > 0)
self.editButton.enabled = YES;
else
self.editButton.enabled = NO;
self.navigationItem.rightBarButtonItem = self.editButton;
- (void)updateDeleteButtonTitle
// Update the delete button's title, based on how many items are selected
NSArray *selectedRows = [self.tableView indexPathsForSelectedRows];
BOOL allItemsAreSelected = selectedRows.count == self.dataArray.count;
BOOL noItemsAreSelected = selectedRows.count == 0;
if (allItemsAreSelected || noItemsAreSelected)
self.deleteButton.title = NSLocalizedString(@"Delete All", @"");
else
NSString *titleFormatString =
NSLocalizedString(@"Delete (%d)", @"Title for delete button with placeholder for number");
self.deleteButton.title = [NSString stringWithFormat:titleFormatString, selectedRows.count];
@endHey JB001,
Sounds like you have more going on than just a simple issue with Home Sharing and more dealing with Wi-Fi syncing. Start with the article below and see if that may resolve it.
iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi syncing
http://support.apple.com/kb/TS4062
If it does not work out, then may I suggest contacting Apple for further assistance to walk you through it or just take that time that you were talking about to sort it out.
Contact Apple Support
https://getsupport.apple.com/GetproductgroupList.action
Regards,
-Norm G. -
I had to restore my iPhone 4s and now my recent calls show only phone numbers instead of the contact's name. How can I restore the names to my recent calls list?
Are the contact details in your contacts app, the phone app uses the contact app to put names against telephone numbers.
-
How can I change the name of a Materialized View?
How can I change the name of a Materialized View?
Oracle permitted renaming the snapshot in the earlier versions of 8i. However, it does not permit renaming the materialized view in 9i or 10g.
SQL> rename mymatview to mymatview2;
rename mymatview to mymatview2
ERROR at line 1:
ORA-32318: cannot rename a materialized view
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options
SQL> rename mymatview to mymatview2;
rename mymatview to mymatview2
ERROR at line 1:
ORA-32318: cannot rename a materialized view
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - 64bit Production
With the Partitioning option
JServer Release 9.2.0.3.0 - Production -
How can I change the name of a computer I'm getting rid of?
How can I change the name of the computer to my granddaughter's name? It's now called "My name" G5 iMac. I would also like to delete that computer icon in my Devices on my MacbookPro.
I guess my reply to these questions in your other topic did not help?
The name of the computer is in System Preferences Sharing pane.
If something appears under DEVICES in a Finder window sidebar, you can click hold on it and drag it off the sidebar. If it appears under SHARED, it should no longer appear there once if that iMac is no longer on your local network, or if you turn off its shared services in the Sharing pane. -
How can I change the name of a PDF in the bookcase
How can I change the name of a PDF in the bookcase
Hi,
It is possible to edit the dictionary, but not recommended.
It is recommended to use exp/imp to "rename" a schema
HTH
Laurent -
How can I change the name of a Sub Circuit in Multisim
How can I change the name of a sub-circuit in MultiSim?
For example:
I have a sub-circuit named "Output Channel 1" and its RefDes is SC1. How do I change its name to 'Input Channel 1'?Hi,
If what you want to change is the RefDes you can do it by right-clicking the sub-circuit and selecting properties. If what you want to change is the name, you can right-click the sub-circuit in the Design Toolbox. -
How can I get the name of the column in Cursor
hi,
how can i derive the name of the columns in cursor
e.g
suppose I have a cursor
cursor c is select * from emp;
c1 c%rowtype.
for c1 in c
I want to display the name of the column how can I do. i don't
remember the name, but i need it to be displayed tooo.
thanx in advance
SreekantYou can only do this by DESCing the tables in the cursor and
then coding eg. v_no := c1.empno;
APC -
How can i pass the name of the file polled by the file adapter to next step
Hi XI guru's ,
How can i pass the name of the file polled by the file adapter to next step in a BPM..?
regards,Use Adapter-Specific Message Attributes and map that value in udf to the BPM message.
Also see this
/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
Regards,
Prateek -
How can I get the name of an internal table in a textfield?
Hi,
I have defined an internal table in a program. Now I need the name of thist table (<u>NOT</u> the components!!!) in a textfield.
Example for Data-Definitions in my Program:
data: begin of it_tab occurs 0,
feld1 like icon-id,
feld2 like icon-name,
end of it_tab.
data: tabname(30) type c.
How can I transfer the name "IT_TAB" into the field tabname?
Thanks in andvance!No, it has to by 'dynamic'. I don't want to transfer it hard, because it should work for any internal table name.
The requirement is: There are many function modules that have an input field TABLENAME. I have to give the tablename in the Form 'IT_TAB'.
But I look for a possibiltity not to write:
tabname = 'IT_TAB'.
For DDIC-Tables its not a problem, but I dont know a way for internal tables. -
How can I get the name of a output module template
Hey guys,
SDK newbie here.
How can I get the name of every output module template?
Thanks
Zhiqiang LiOk. Bravo
Please mark this as 'Answered' - it will help others on the forum - -
Network : How can I get the name of all computers in the lan ?
Hi.
Network : How can I get the name or the IP of all computers in the lan ?Easiest way to find all IPs would be to scan the network. Ping every possible IP in the network and all IPs that replied to the ping exist.
Since I don't know how to do a ping in Java, I would scan for some Ports used by OS Services.
Since I don't know which ports are used by windows, I think you should look for a ping class (or library).
Scanning all ports for every IP in a class C network shouldn't take too long. And after finding one port you don't have to try the other ports for that IP, since it has to be online ;) -
How can I know the name of the file that the user has currently open ?
Hello
I'm developing a module for x3dv.
http://hiperia3d.blogspot.com/search/label/X3DV%20Module%20For%20Netbeans
I am going to add a button to open the files when I click it.
I just need to know how can I know the name of the file that the user has currently open in the editor. What variable holds it in Netbeans?
Thank you
JordiIf you are using the JFileChooser to open the document, I would create another class with this included:
//initiate class variables
private File f;
//create JFileChooser
JFileChooser fc = new JFileChooser();
fc.setMultiSelectionEnabled(false);
fc.setFileSelectionMode(JFileChooser.FILES_ONLY)
//set the chooser to initialise File f with the file selected
int status = fc.showOpenDialog(null);
if (status == JFileChooser.APPROVE_OPTION)
f = fc.getSelectedFile();
public File getFile()
return f;
} -
How can I change the name of my Mac. I am using it with a different company now and told want the old company name showing up on emails etc.
Thanks. When I rep;y to an email I get this
SOS Medical <[email protected]>
I would like to replace the SOS Medical with my company name -
How can i change the name of my wifi connection on my Airport express?
The name of my wifi is Réseau de Francois with an accent on the letter E.
Now, i have many conflict with other electronic components because they do not accept french accent.
How can if change the name to reseau de francois without an accent on the letter E on my airport express 4th or 5th generation
thanksairport utility in the utilities folder.
Maybe you are looking for
-
Wifi and internet sharing glicth
Hi folks, it seems I found a bug on Lion 10.7.3 regarding the internet sharing and the wifi. I activated the internet sharing through the wifi, everytihng worked properly, and put the computer in sleep mode. When I got back to it awaking, the interne
-
Urgent help in needed for StorProc
Hi All, How are you today? We have a package in which we have a SP called SERVICE_TO_PRNTMNGR. Database Version 11.2.0.2 The issue now is- The store procedure checks if all print jobs which have the same Fulfillment id (which is kept in PrintJobQueue
-
Confusion in group by function
Hi, I always have a doubt regarding the group by function i.e. if we are using a group by function and we want to display some columns which are not to be grouped by then how do we display those. Like for eg. to display last name, department no and a
-
Created Migration Repository by accident as Apps User! Can I undo it?
I am a very stupid fool, and I am scared that I might have done something to one of our clones on PROD via something I just did in SQL Developer. I am too much of a coward to mention it to one of our DBAs as violence may result from my admission! I w
-
Hi All, How can I change the layout for alll the users, When i have chnaged it is showing only for me and not for others