How to get updateable and not updateable rows in a single GridControl

Hi,
i am using a gridControl based on an objectView "customer" with the attributes "cust_nr, cust_name, cust_updateable".
If customer data is updateable or not updateable set by the flag cust_updateable (true or false).
When the cust_updateable=false the user should not be able to update customer data in this row.
When the cust_updateable=true the user should be able to update customer data in this row.
Anyone who can help me?
Thanks !
null

Three possibilities come to mind:
If you want to manage this at the Application GUI level: If you want to prohibit them from ENTERING into a cell or EDITING a cell in the row, that's a different issue. ( I like blocking problems as early as possible ). I can see how one would do that with their own TableModel ( isCellEditable method, set FALSE if you do a getValueAt(thisRow,editableIdx)=="Y" or somesuch ). That might be a direction you might want to research and see if it is possible to do something like that with a gridControl. ( And post what you find! )
If you want to handle it at the DBA level: You might also look at "virtual private databases" in the Oracle dbms. Again, those rows would be trapped at commit time rather than "verb" time ( on the application screen ). The nice thing about that is that it protects the table against ALL comers, not just those that are going through a middle tier.
Your best bet if you want to follow the BC4J framework level: go into the Entity/ View Object impl and find the setMyAttribute method, and check the appropriate cust_updateable attribute ( in the same EO/VO ) and fire an exception. That'll trap it at data entry time, as well, and if you try and set it programmatically your try/catch block will fire up.
Good Luck
null

Similar Messages

  • How to get values and not index in case of SOC?

    I have created a SOC and i need the values in the bean on valuechange event which are present in the dropdown(i.e 20,50,100). But in this case instead of value me getting the index value(i.e 0,1,2)
    How can i get the values and not the index value.
    Query which returns the value is as follow:
    SELECT Id,CODE FROM table_name WHERE TYPE = 'ROWS' AND NVL(DISABLED_FLAG,'N') !='Y' ORDER BY TO_NUMBER(CODE)
    <af:selectOneChoice value="#{bindings.Row.inputValue}"
    label="#{uiBundle.ROWS}"
    required="#{bindings.Row.hints.mandatory}"
    shortDesc="#{bindings.Row.hints.tooltip}"
    id="soc5" autoSubmit="true"
    valueChangeListener="#{pageFlowScope.Bean.rangeChanged}"
    binding="#{pageFlowScope.Bean.row}">
    <f:selectItems value="#{bindings.Row.items}" id="si5"/>
    </af:selectOneChoice>
    Thanks in advance.

    See if it helps:
    http://mjabr.wordpress.com/2011/03/19/reading-the-selected-value-of-a-select-list-in-java/

  • How to get calendars and notes from my iPhone into iCloud?

    Hello all,
    yesterday I got a new MacBook Pro Retina at work. This upgrade me to OSX 10.8 from 10.6, so I planned to use iCloud to sync my iPhone 5 and my Mac this way. So far I synced the devices manually via iTunes.
    However, so far I only got Contacts to sync with iCloud correctly. Calendars and notes just don't do it, although their sync is turned on on the iPhone as well as on the Mac.
    All my attempts to get it to work obviously destroyed the possibility to sync calendars via iTunes - after a sync there is just nothing showing up in Calendar. This is really bad as now I can only access my calendars via the iPhone.
    Since my iPhone now contains the most recent calendar and note data the question is even more simple: how can I get these data from my iPhone into iClous so they will also sync with my Mac (and from then on on all devices)?
    It doesn't work by just turning calendar sync on on the iPhone. When I do this, I now see two calendar groups "From my Mac" and "From iCloud". Great, but what I want is to replace "From iCloud" with "From my Mac".
    I have already reset iCloud, but this didn't help either.
    I'm close to desperation, so any hints are very much appreciated!
    Thanks and best wishes,
    Thomas.

    Solved - it was a general sync problem. Today I was not even able anymore to sync my calendars via iTunes. Problem and solution see https://discussions.apple.com/thread/5505069.
    Best,
    Thomas.

  • How to get AFP and not SMB

    i am trying to set up a chronosync between my laptop and desktop and i am being told by the good folks at chronosync that i am having an issue because i have an SMB connection and not an AFP connection.
    they have provided pretty specific instructions on how to change this but i am feeling like a caveman trying to do this.
    i /attempted/ to disconnect my macpro and my time capsule from the left pane under "shared" but this did not seem to work so i simply turned off the wifi. then i deleted my network passes in the login section of keychain and am in the Connect To Server section but all i am seeing is a "Favorite Servers" listed as "SMB://MyHomeFolderNameOnMyMacPro.
    my understanding is that i am supposed to find an AFP connection.
    so now i am looking in the little gear icon for recent servers (there is one named "Mirch's Computer" in there which seems odd...) anyway can i CLEAR these recent servers and ADD my MacPro as AFP or what am i doing here?
    thanks...

    Confirm that you have "Share files and folders using AFP" set in the Options in the File Sharing section of the Sharing system preference. Then use the Go To Server and try:
    AFP://servername/sharename
    For more information, see:
    http://support.apple.com/kb/PH3748
    Regards.

  • I installed new OS to my IPhone 4 and now phone gets hangs and not able to type or chat .. how to resolve it now

    i installed new OS to my IPhone 4 and now phone gets hangs and not able to type or chat .. how to resolve it now

    Try a reset to begin with. hold down the Sleep and Home key until Apple logo appears on the screen.
    Regards,
    Steve

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • Stuck in restart - how to get out and reboot

    I have a MacBook that is stuck in restart mode. Any advice how to get out and restart? Thanks

    Welcome to Apple Support Communities. We're all users here.
    Try powering off and restarting in 'Safe Mode': The instant you hear the startup tone, hold down the shift key and keep it held down as explained in this Apple support note:
    http://support.apple.com/kb/ht1455
    A Safe Mode restart does take much longer than a normal start, because the computer checks the hard drive and ignores cached kernel extensions that normally speed boot-up.
    http://support.apple.com/kb/TS1884
    Note that not all devices and services, notably WiFi, may be available after a Safe Mode start.
    This is not necessarily an indication of a hardware error.
    After your computer starts in Safe Mode, you should shut down, and attempt to restart normally.

  • When trying to creat a desktop icon, it does not go to the URL.....instead I get 'script' and not a website......the script has http//etc but I am not directed to the website......I previously had IE 8 (on Vista).....is that the problem...

    Question
    When trying to create a desktop icon, it does not go to the URL.....instead I get 'script' and not a website......the script has http//etc but I am not directed to the website......I previously had IE 8 (on Vista).....is that the problem?I do not have any installed plugins....at least none that I know of.....remember I am a new user......Basically, the desktop icon is not going directly to the Mozilla FF to get me to the web site I need to go to.....FF works when I use the Mozilla FF icon.....just not the icons I create.....THANKS!!! I have also tried reinstalling FF and get the same results.....HELP!!!

    The address beginning with file:/// denotes a saved file (local file). The file may not be present. You can try dragging the site icon of this page on the left edge of the location (Address) bar and release it on the desktop. Please try opening it. If it still shows an error it could be a problem with the system's zone permissions. You can try setting each zone in the Windows Control Panel or IE > '''Internet Options''' > '''Security''' tab to '''Default Level'''.

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • How to get vendor and company code based on logistic invoice document

    how to get vendor and company code based on logistic invoice document in abap/4?

    Hello Kumar
    When you call BAPI_INCOMINGINVOICE_GETDETAIL using
    INVOICENUMBER = <number of invoice>
    FISCALYEAR = <fiscal year>
    the returned HEADERDATA contains what you are looking for:
    HEADERDATA-COMP_CODE
    HEADERDATA-DIFF_INF
    Regards
      Uwe

  • When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet. Example- MIME-Version: 1.0 X-Document-Type: Workbook Content-Type: multipart/related; boundary="====Boundary===="

    I have a Macbook Air. I have MS office installed and work in Excel often with no issues. But When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet.
    Example-
    MIME-Version: 1.0
    X-Document-Type: Workbook
    Content-Type: multipart/related; boundary="====Boundary===="
    --====Boundary====
    Content-Location: file:///C:/HOLD.XHT
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="utf-8"
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    <HEAD>
    <meta name="Excel Workbook Frameset">
    <xml>
    <x:ExcelWorkbook>
      <x:ExcelWorksheets>
       <x:ExcelWorksheet>
        <x:Name>BTB</x:Name>
        <x:WorksheetSource HRef="./IBIT0001.xht"/>
       </x:ExcelWorksheet>
       <x:ExcelWorksheet>
        <x:Name>GSM</x:Name>
        <x:WorksheetSource HRef="./IBIT0002.xht"/>
       </x:ExcelWorksheet>
       <x:ExcelWorksheet>
        <x:Name>RODetail</x:Name>
        <x:WorksheetSource HRef="./IBIT0003.xht"/>
       </x:ExcelWorksheet>
      </x:ExcelWorksheets>
    </x:ExcelWorkbook>
    </xml>
    </HEAD>
    </HTML>
    --====Boundary====
    Content-Location: file:///C:/IBIT0001.xht
    Content-Transfer-Encoding: 8bit
    Content-Type: text/html; charset="utf-8"
    <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns="http://www.w3.org/TR/REC-html40">
    <HEAD>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <style>
    <!--table
            {mso-displayed-decimal-separator:"\.";
            mso-displayed-thousand-separator:"\,";}
    @page
            {margin:1.0in .75in 1.0in .75in;
            mso-header-margin:.5in;
            mso-footer-margin:.5in;
            mso-page-orientation:landscape;}
    tr
            {mso-height-source:auto;}
    col
            {mso-width-source:auto;}
    br
            {mso-data-placement:same-cell;}
    .style21
            {color:blue;
            font-size:10.0pt;
            font-weight:400;
            font-style:normal;
            text-decoration:underline;
            text-underline-style:single;
            font-family:Arial;

    Try search/ask in the forum devoted entirely to Excel issues:
    http://answers.microsoft.com/en-us/mac/forum/macexcel

  • How to get tools and other bars back in view after deleting show-bar?

    How to get tools and other bars back in view after deleting show-bar?

    Hello Jouko.
    You can go into View > Toolbars and select the ones you want to see. If you can't see the menu bar you can simply tab ALT on your keyboard (I think F10 works too) to show it.

  • How to get max and min salary in a table

    How to get max and min salary in a table

    SQL> select max(sal),min(sal) from emp;
      MAX(SAL)   MIN(SAL)
          5512        800
    SQL>

  • How to get instrument and plug in files to logic8?

    How to get instrument and plug in files to logic8?
    I lost mine in a hard drive crash.
    I cant use my DVD jam pack
    This is my spec
      Modellnamn:          iMac
      Modellidentifierare:          iMac8,1
      Processornamn:          Intel Core 2 Duo
      Processorhastighet:          2,4 GHz
      Antal processorer:          1
      Totalt antal kärnor:          2
      L2-cache:          6 MB
      Minne:          3 GB
      Busshastighet:          1,07 GHz
      Boot ROM-version:          IM81.00C1.B00
      SMC-version (system):          1.29f1
    iMac, OS X Mountain Lion (10.8.2)

    I think you want to get the latitude and longitude information of client accessing the web application. In the web application you cannot directly get the client location information as the nature of the web application is different from windows applications.
    I advise you to develop a Silverlight component and in that Silverlight component use geolocation classes to get client location. Please refer this article for getting data in Silverlight http://www.c-sharpcorner.com/UploadFile/82b980/getting-geo-location-of-user-in-silverlight/
    And once you get the location information you can send that data back to ASP.net webpage or call any javascript method as shown here http://ovaismehboob.wordpress.com/2013/06/22/bridging-data-between-asp-net-and-silverlight/
    Hope this helps!
    Ovais Mehboob Ahmed Khan http://ovaismehboob.wordpress.com

  • Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

    Today my money is deducted Rs.60 when I try to download paid applications of any amount and I am getting message transaction declined, so why my money is deducted. I lost almost Rs 480 rupees . So how to get refund and how to make card working?

Maybe you are looking for

  • HotSpot Virtual Machine Error, Internal Error

    HI , When i am starting my weblogic server instance it displays following error . Pls. advice me. thanks HotSpot Virtual Machine Error, Internal Error Please report this error at http://java.sun.com/cgi-bin/bugreport.cgi Java VM: Java HotSpot(TM) Cli

  • Apple remote is not working with Logic Pro 8

    Hi all Anyone any idea why, it would really help me as I need to remotely activate the record button. Many thanks Dave

  • Shortcuts - How do I create a shortcut to enter some text?

    Hello, is it possible to setup a shortcut so that when you type, for example, control & b my e-mail address is entered in an internet site text box or MS Word etc. I was able to do this on my old PC but cannot find out how to do this anywhere. I woud

  • Unable to download episodes of my podcast

    Hello, As suggested by a great guy, I just ask here my issue : My own podcast is available from iTunes : "Tablette Café" (with a "é") ; I can download episodes from iTunes on Mac, but it seems impossible for everybody to download episodes from iTunes

  • Mail alerts

    In Mail (OS 10.3.9) there is, of course, the little red indicator on the dock icon showing there is mail in your mailbox and how many messages are there. Nice to be able to just look down and know there's mail by seeing the little red dot. However, i