Wether it is possible

Hi Experts,
i need two help .. On my application i have two buttons say (save and add) and my task if i press add button the a new row as to be added in my JTable(Default Table model) and the added row are Editable
i edit data in the newly added row and i press save .. till this no problem i able to do.. but the problem i am facing is that i can add more that two rows and edit at a time ..if i edit the any duplicate row say i have transport_id as one of my column and it as value like 1001,1002.. if i entered 1001,1002 again the datas i entered in to database how can i do this...
i am using default table model.. and iam displaying row and columns in my JTable from the database dynamically..
Second help: Wether it is possible in my application the PREV and NEXT Operation(DEfaultTableModel).
Please kindly help me over this tasks...

Thanks for your reply..
i have return my own validation for this just tell me wether this work outs..
public void primaryCheck()
          lblStatus.setText("");
          DefaultTableModel md1 =(DefaultTableModel)info_table.getModel(); // info_table is my JTable instance
          Vector vctinfotab = md1.getDataVector();
         String Custidpri =vctinfotab.elementAt(1).toString(); //getting the first column for the info_table
         System.out.println(Custidpri);
         int cust2 =info_table.getEditingRow();
         Vector vCustid1 = new Vector();
         vCustid1 =(Vector)data1.elementAt(cust2);
         String Custidpri1 =vCustid1.elementAt(1).toString(); // getting the eddited first column for the jtable info_table
         if(Custidpri.equals(Custidpri1)) // comparing
              lblStatus.setText("Entered Customer Id Already Exists");
         else
// i nsert newly added row data here

Similar Messages

  • Is it possible to change the position of beining of text in a standard report

    Hi,
         I am wondering wether it is possible to change the position of the test (the starting point) in a standard report. I would like to print a label with different texts at different positions. If its not possible in a standard report is there any other way to do it.
    Thank you,
    Mudda.

    Hi Mudda, I don't see any way myself to set any particular starting position for your text. It looks like the best way to emulate this behavior would be to add a new line with lots of tab characters or spaces to place your new text at a specific offset from the left. You can also use Append Table to Report and wire in a 2D string array with only a few positions filled in with your various text labels as shown below. This will space text labels pretty well across the page. Try it out and see if it works for you. You could be more clever and build the 2D array programmatically if you wanted more control over position.
    Message Edited by Jarrod S. on 06-02-2006 05:37 PM
    Jarrod S.
    National Instruments
    Attachments:
    Set_Report_Position.JPG ‏69 KB

  • Is it possible to set up a split audio track....

    ...while recording and create 2 channels with their own effects settings. I have a Tascam US-122MKII audio interface. If one guitar is plugged into LEFT channel and one into RIGHT channel, can they be split up while recording?  I don't quite know if the TASCAM allows for this I'm not seeing anything in the manual and don't see wether LOGIC is capable of doing that? The idea is to record 2 guitars at once but split up the stereo into seperat tracks and then add effects so that each player has a different sound. The TASCAM allows 2 intruments ie: voice/guitar,or right and left XLR input but so far everything is imported to 1 stereo track...Any ideas on wether it's possible? Thanks everyone.

    Hi
    What I'm saying is:
    Make a new MONO audio track (use the + button). Assign it to input 1
    Make a second new MONO track, assign it to input 2
    Name both tracks, record-enable both tracks, and record.
    You could, of course, make both tracks in one go via the new track dialog box, and hav ethem automatically assigned to ascending inputs.
    CCT

  • Possible to change the front and back speaker volume ?

    Hello, as it says in the topic, i was wondering if it is possible to change the volume of the front and the back speakers (the same way it is possible to change the volume of the center speaker).
    If anyone could tell me wether this is possible at all i would largely appreciate.
    Specs:
    Creative Inspire T5900 speaker system
    Creative SoundBlaster Live! 5.1 Digital
    Windows XP

    The older Mac Pros had a separate board for the front panel connectors. Looking at pictures of the 2009 Mac Pro back-plane board I can't see any soldered on connectors. Based on the link below for an older Mac Pro it looks like it could be as easy as making a cable to replace the front panel board USB cable with one that could connect to a USB PCIe card (when they are available for Macs).
    http://ep.yimg.com/ca/I/lovemacs2113427757506
    Edit: Assuming that there is no additional circuitry on the front panel board that has to be USB3 compliant.
    Edit (again): I missed the fact that USB3 uses a different connector so you would have to replace the entire board with one that has USB3 connectors on it. It is unlikely Apple or even a third party would make one.
    Message was edited by: Martin Pace
    Message was edited by: Martin Pace

  • Website watcher possible to code in java?

    Hello,
    I would like to know wether it is possible to code a website watcher for my own usage in java and what classes i would need for it. Could someone also
    tell me how the checksum calculating for a watched website works? counting the number of tags ?

    You are going to need to look at the API and become familiar with URL and URLConnection and String functions. You're also going to need to look up various readers for I/O.
    Becoming familiar with regular expression probabaly would not hurt either.
    BTW: a simple google will probably give you a comple program source for what you need.

  • Is cutomization possible in NWA for having Daily Monitoring?

    Hi All,
    I'm working on NWA Administration & Monitoring stuff & need to know, wether customization is possible in it, by which i can have Daily monitoring stuff going in it by way of Common Tcodes like SM21, ST22 etc? I know this can be done in EP, but can i get this developed in NWA too?
    Waiting eagerly for reply.

    hi,
    I think you can use JSF
    cheers
    Trajano

  • Want the data store values to be displayed in input field of form

    Hi,
    I wanted to know wether is there possibility of displaying the data in a input field instead of expression field.
    In our model i have used a form which has material type,plant and Vendor connected to data service1 in turn gives the out put in chart and i also have the second input form which has To(0CALMONTH) combo box which is connected to Data service2 and gives the data in table.
    But what i wanted is to i also want to use the input fields of first form to second Data service2 and get the data based on on inputs of form1 and form2i.e also To field.
    We can connect the port from form1 to DS2 but problem is we need to click the submit of form1 and form2 and it doesnt gives the output according the input of form1 and form2 as it gives the output of that form when we click that submit button.
    I have followed help.sap for data tore procdure.
    So i have used a datstore where i will store the values of form1 and call it in expression field which i will add and hide it in form2(hide because user should not see that input fields).
    Formula used in data store for expression field.
    IF(CONTAINS(STORE@matltype,@Material_Type),STORE@matltype,STORE@matltype &(IF(LEN(STORE@matltype)>0,'; ',''))&@Material_Type)
    But whats happening is the value is getting concatenated when i goon change the values in input field, so i wanted to get the values to be replaced as soon as i change input field of form1(if  use replace function its not working) and also it would be more preferrable if we use input field instead of expression field.
    I would also like to know is there any alternate solution for the above requirement instead of datastore.
    Thank You
    K.Srinivas

    Hi,
          I have Form1 connected to Data service1 displays the data in a Chart and i have another Form2 connected to Dataservice2 displays the data in table.
    In form1 there are Material Type,plant, and Vendor and form2 i have To (0CALMONTH)SO now i want also Form1 inputs for Table which gets teh data from Dataservice2.
    What i have said earlier is connecting Form1 to Dataservice doesnt fetch the data correectly,its because if i click submit in form1 i get the data of those 3 inputs and i need to click the submit button in form2 after giving input which shows the data accordingly where it doesnt fulfill the requirement.
    So i wanted some solution for that.For that reason i have used the data store and the procedure i have followed the help.sap as i said in my above mesage.
    If Data store is also suggestable than i want to display the data in Text input Field  instead of Expression field which should replace the previous values as soon as values change in data store.
    Hope i have tried to be clear if still it is not i am ready to explain again.
    Thank You
    K.Srinivas

  • Sales order charge to several different GL account instead of to customer

    Hi Guru,
    We have a process that need to create a sales order and charge to three different GL account instead of charging to a customer.
    The following details the situation:
    In regular sales order:
    Debit customer  $1000
    Credit Sales $1000
    In this business process,  we need to
    Debit (to GL accounts instead of customer but split as follows)
    GL 1234  $500
    GL 4567  $300
    GL 7890  $200
    Credit
    GL 6688  $500
    GL 8989  $300
    GL 5231  $200
    We set up the system to use the cash sales process so that instead of debiting to a customer account,  it is debiting to a GL account.  However,  SAP sums up the debit to $1000 and is posted to the first GL account.
    Is there a way that we can split the debit??

    Hi
    I came to this kind of process in construction industry with some other SAP ERP
    there i managed to enter debit line items in the documents
    Please check wether this is possible in R/3
    Sandeep

  • How can I find the URL for an iCal calendar in iCloud so I can make a link to it on a web page.

    I have a single iCal calendar that I want people to access through my webpage.  How can I find the URL so that they can view the calendar without having to subscribe to it.  I converted to iCloud from .Mac and I can see that changes to this calendar are not showing up.

    Mmmh.. i see... I don't know wether it is possible for people just check calendars without subscribing to them... I have been sharing some calendars in my website (maybe you can have a look at it in order to check wether it could be a possible solution for you)
      http://web.me.com/andreabruschi/englishplanet/English_Courses.html
    Cheers
    Andrea

  • Allowing clear-text logins for multiple users

    I'm not sure if this is the correct section to place this question in, so Mods, please move if needed.
    As many know, Apple changed the AFP Client defaults in 10.5.x so that clear-text logins to servers are disallowed by default. You can edit the afpcleartextallow option in ~/Library/Preferences/com.apple.AppleShareClient.plist to enable it on a per user basis.
    What I wish to know is wether it's possible to allow clear-text logins on a global basis. I've looked at /Library/Preferences/com.apple.AppleShareClient.plist and it does not contain the afpcleartextallow option, and adding the option and setting it to "yes" (without editing the file in the user's preference folder) does not allow clear-text logins.
    Is there some global preference file that this option could be added to that would preclude me from having to edit the preference file for every user? Part of the reason it's a problem is if you have multiple user accounts on multiple machines, or network based home folders stored on an AFP server that only supports clear text, for example, a Netware 6.5 server running NFA for Mac.
    One problem I've seen is that until the user is actually at the desktop (well I think it's specifically when the Finder loads and reads the per-user preferences) the OS will prevent clear-text logins, regardless of the setting in the pref file, thus you cannot automatically mount volumes at login if the server only supports clear-text.
    Any suggestions or advice greatly welcomed.

    If you are familiar with the exchange man shell, use the new-mailboxsearch powershell cmdlet in your code.  You can pass it a list of -SourceMailboxes(use get-content to pass your .txt to a variable, you'll want to place each name on a new line) to
    search on/set the in place hold.. Here is the technet material on new-mailboxsearch. 
    http://technet.microsoft.com/en-us/library/dd298064(v=exchg.150).aspx

  • How check what's stored in the data store at different steps in the model?

    I would like to place a table or form temporarily within the model to display the values in the data store as they change at different points at runtime.
    I tried simply adding a form, creating the same field types as are in the store, and then mapping the form fields' default values to the data store's fields. This does not work as it doesn't update automatically.
    Tips?
    Henning

    Hi Jarod,
                I have the similar problem of using the data form datastore as input for getting results.
    I wanted to know wether is it possible to use input field instead of expression box so that i can click submit button based on input displayed from data store.
    Also if i use expression box the values are getting concatenating instead i want to overwrite(dont know wether expressionbox value can be used as input) i couldnot overwrite the values.Can you let me know what is the function i need to use in the formula of expression box.
    I have posted the same in a thread
    want the data store values to be displayed in input field of form
    Thank You
    K.Srinivas

  • HT3642 Does anyone know of an app for the Kindle Fire that will allow me to access my movies from my iTune account?

    I just purchased a Kindle Fire HD 8.9. I would like to be able to access my iTunes account to play my movies that I have purchased. Does anyone know if it is possible to do this and if so how? If not is there a way to download the movies to my computer so I could transfer them via USB?

    Since the documents are on the server and not your work computer it doesn't matter that your work computer is off.
    Usually computers on a work network are firewalled from the internet. Without knowing the details of your network it is impossible to know wether it is possible. Perhaps you should speak to the IT person at your work.
    If it is possible you will probably need an app that can access the documents on the server using a compatible protocol. I am not aware of an app that handles standard Windows file sharing. Goodreader can do ftp and webDAV. You may require something like webDAV enabled on the server.

  • Macbook pro 2012 as second screen for imac 2013 via thunderbolt cable

    Hello,
    I was wondering wether it is possible to use my macbook as a second screen for my imac using a thunderbolt cable.
    I want to use my imac as primary mac because the specs are better.
    Thanks

    Most new monitors will support standard DVI and VGA connections. Some may support Mini-DVI ports. That's about all I can tell you.
    As for other factors I would look at monitor reviews - as many as you can - for the size and resolutions in which you are interested. There are a lot of products out there. You might try first doing a Google search to learn more about the meanings of the various specs the manufacturers provide so you might wade through the smoke and mirrors in search of meaningful information.

  • Apple tv as wireless screen

    Hi!
    I have tried to find information on the Internet wether it's possible to use the Apple tv as a receiver between my MacBook Pro and the TV, so that I can use the TV as a wireless display for the MacBook. But all I can find is about steaming and if I have understood it right, it doesn't support all video formats. But maby if you can use the TV as a display, you could go around that problem?
    Or am I wrong?
    Also, isn't it strange that there is no RCA or 3,5 mm output jack from it. I think I would miss that since I want to plug in my stereo. And no, it does not have optical inputs :-(
    Jonas

    Hi again!
    I have to re-open this post due to the new iOS5... If you have, for instance, an iPad, iPhone, etc, you can use the Apple tv to mirror the devices screen to the TV. Should it not work the same with an ordinary computer as well?
    Or have I maby missunderstood the concept of the Apple tv? That it's just a media center?
    And also, can you use the wireless keyboard, mouse or trackpad with it?
    Jonas

  • Improvements for s60v5

    I believe that hardware of s60v5 is quite powerful but it is not being fully use. The things that I would like to have in s60v5 phones 1 support for apps like nokia social which integrate contacts with social sites. Another softs like bubbles, sleeping screen, augmented reality, etc 2.Improved gallery like photo browser from betalabs 3. Widget home screen: home screen of these phones offers enough functionality but no one would like to have just four shortcuts on big touch screen. More customization of home screen, ability to add widgets and move them.

    Wether it is possible or not is somewhat irrelivent , it won't happen, the resources required are simply not practicle for Nokia's plans ! I'm sure there will be support and some improvements offered to S60v5 but the main support (untill it stops in 2014 will be for the current and future Symbian^3 phones. I have the N97 which I expect to remain as it is as the hardware is nor capable of any more performance than it already has, and NO software improvement can increase the size of the C memory. I also have the E7, which with the adequate memory and processing power is a thoroughly enjoyable experience. My suggestion would be to get one of the current range and enjoy what's left of Symbian development before it finally gets killed off !
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

Maybe you are looking for

  • HR_MAINTAIN_MASTERDATA Multiple Address is not getting updated

    Hi All, I am using HR_MAINTAIN_MASTERDATA for creating employee it's working fine but i am not able to handle multiple sub type. For example sub type for Address it's having multiple values 1 Permamant address 2 Office address 3 Emergency Address. An

  • The disk you inserted was not readable by this computer-I KNOW!

    Hello Does anybody know how can I make the Finder ignore a certain volume and not prompt me to initialize it every time I plug it in? I have an external disk encrypted with a third-party utility (TrueCrypt) which means that OS X cannot mount it. The

  • Under which license type are InDesign Script provided ?

    Hi guys, At work we use ID CS3. It comes with a script called "CropMarks". It's a great script but it doesn't really fit ours needs. I modifyed it (add bleed management & doesn't draw marks inside the selection) to fit ours wishes. Some other people

  • Install Camera for Adobe Photoshop Elements 11

    I have a Canon camera and I cannot get Adobe Photoshop Elements 11 to reconize it.  I have taken Christmas pictures and want to upload them to Adobe.  I can't find any information on how to do this.  Please help me.

  • Want to transfer my ipods songs to another machine

    hi folks. my question is I want to transfer songs from machine 1(my playlists ) to another- machine 2 I tried to transfer to machine 2 and my ipod prompts and says I am linked to another PC(machine 1). if I continue, it will erase all I have on my ip