It is possible to have a dynamic Oracle Label Security procedure/script to configure data label (compartments and data label)  for multiple rows at same time?

A single script which can be run below mentioned commands...  instead of using multiple manual steps for configuring data labels. Is that possible and how? Having bulk of data where OLS need to be applied.
exec LBACSYS.SA_COMPONENTS.CREATE_COMPARTMENT
exec SA_LABEL_ADMIN.CREATE_LABEL
exec SA_POLICY_ADMIN.APPLY_TABLE_POLICY

Have you ever answered this question? If not, have you tried to use the "HIDE" property on your table_options?

Similar Messages

  • Dynamically Changing Labels for Multi Row Block Buttons

    Forms [32 Bit] Version 9.0.4.1.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    On my local: Windows 7 OS
    I am having a difficult time in doing the following in forms, and not sure if it can be done?
    I have a multi row block,based on DB table, which displays filename and another column from the table.
    It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
    a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
    b) View File (Display the file from file system)
    c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
    I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
    I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
    Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
    Any expert advice is highly appreciated.
    Thanks in advance for your time:
    Libran_Girl
    Edited by: libran on Aug 30, 2011 8:04 AM
    Edited by: libran on Aug 30, 2011 8:05 AM

    <p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
    Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
    </p>
    This is the code you have to put one triggers of your based block:
    When-New-Record-Instance trigger: (based on the EMP table)
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;When-Create-Record trigger:
    declare
         LN$N    pls_integer ;
         LN$Rec  pls_integer := :system.cursor_record ;
         LC$C    Varchar2(15) ;
    Begin     
         if get_block_property('EMP',TOP_RECORD) > 1 Then
              LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
         else
              LN$N := :system.cursor_record ;
         end if;
         If LN$N > 0 Then
              Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
         End if ;
    end;Post-Query trigger:
    declare
         LN$Pos  pls_integer ;
         LN$Rec  pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
         LN$Max  pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
         LC$C    Varchar2(15) ;
    Begin     
         LN$Pos :=  LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
         If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
         If LN$Pos > 0 Then
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
              -- Add the new item --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
              -- Set some properties --
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
              If :EMP.JOB = 'MANAGER' Then
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
                Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
              End if ;
              If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
              Else  :GLOBAL.I := :GLOBAL.I + 5 ;
              End if ;     
              LC$C := To_Char(LN$Rec) || ','
                   || To_Char(255) || ','
                   || To_Char(255-:GLOBAL.I) || ','
                   || To_Char(255-:GLOBAL.I) ;    
              Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
              Synchronize;
         End if ;
    end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
    Enjoy it,
    Francois

  • Is it possible to have the lid open on a MacBook Pro connected to a Cinema Display and have the Mac display blank with the Cinema in highest definition?

    Is it possible to have the lid open on a MacBook Pro connected to a Cinema Display and have the Mac display blank with the Cinema in highest definition?

    Hi,
    Create a play list that you wish to burn. Select playlist, the file from main menu which gives to an option to burn the playlist. A pop up box appears allowing you to select burn speed and disc format.
    Jim

  • I am a hold out to an I Pad.  Help change my mind!  I travel and while gone, for several months at a time, have always managed my photos on my laptop on a daily basis.  This means deletions, naming, filing in folders.  Is this possible on an I Pad?

    I am a hold out to an I Pad.  Help change my mind!  I travel and while gone, for several months at a time, have always managed my photos on my laptop on a daily basis.  This means deletions, naming, filing in folders.  Is this possible on an I Pad?  I have just returned from a 2 month trip with several thousand photos.  If I had waited to name and file these until I got home, it would be misery. 

    The iPad is a great device but it can't do all things. To accomplish all the tasks you mention I feel a laptop is the best tool.

  • I was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ?

    i was backing up my iPhone and importing photos onto iPhoto at the same time , then suddenly it says no more space available (i had 48GB before i do this and now i have 18GB) i can't find the back up or the photo anywhere , how can i delete them ? i dont need the pictures or the back ups , i want to delete them but they are not there

    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • HT4085 So does this mean that I cannot have rotation lock off and the mute function off at the same time? In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same

    So does this mean that I cannot have rotation lock off and the mute function off at the same time? In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same time?

    In other words, can I have my screen rotate automatically as I hold my iPad in either portrait or landscape AND hear sounds from my apps at the same time?
    Yes, you can. You can configure the Side Switch (above the volume button) either as Mute switch or Rotation lock.
    Settings > General > Use Side Switch to: choose what you like the Side Switch to function as.

  • HT204053 Can I have 2 different countries billing address under one Apple ID? I mean 2 countries credit card for payments at the same time under unique Apple ID.

    Can I have 2 different countries billing address under one Apple ID? I mean 2 countries credit card info for payments at the same time under one Apple ID.
    I do travel very often to overseas. I'm having problem with few apps that can not be updated when I'm using another countries store. I do have 2 countries billing address. So when there is an update I need to switch my county &amp; billing address for few selected apps. I was wondering if I have option to add both countries as my billing address that would be great under same Apple ID. Is this option available?

    You can only have one credit card and billing address on your account at any one time.

  • I have an 11" Macbook Air. When I use Garageband it opens in a window so large that the bottom corner is not accessible so I can't decrease the window so that I can see the top and bottom of the window at the same time. Any suggestions?

    When I use Garageband the window is so large that I can't reach the bottom corner to decrease the window to fit inside the display so that I can see the top and bottom of the window at the same time.
    Any suggestions?

    You can reduce the window by grabbing any edge or corner.   You don't have to use the bottom right anymore.
    You could also temporarily move the dock to the left/right so you can reach the bottom.

  • TS3989 Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    Only some of the photos I have taken on my iPhone appear in the photo stream on my iPad even thou they were taken at the same time. Why is this and how can I import the other photos from my iPhone to my iPad?

    If older photos are missing it may be because photo stream photos are only held in iCloud for 30 days.  After that they are removed from iCloud but will remain (up to 1000 photos) on your device until deleted.  Also, only photos taken after enabling photo stream are added to your photo stream, and only when the camera is closed, your device is connected to wifi and you have at least 20% battery life remaining.
    To transfer the missing photos you can either create a shared photo stream containing them and invite yourself to it (see http://help.apple.com/icloud/#mmc0cd7e99), import the photos to your computer and sync them to your iPad, or use an app like PhotoSync to transfer them to your iPad over wifi.

  • TS1646 I want to pay 4.99 for my game, however, it shows "your purchase could not be completes." I have no idea how to solve it. btw I just changed my location and payment option for my APPLE ID.

    I want to pay 4.99 for my game, however, it shows "your purchase could not be completes." I have no idea how to solve it. btw I just changed my location and payment option for my APPLE ID.

    If you are getting a message to contact iTunes Support then to do so (these are user-to-user forums) :
    - go to http://www.apple.com/support/itunes/ww
    - click on your country's flag
    - click on the Contact Support at the bottom of the left-hand column
    - click on Contact iTunes Store Support on the right-hand side of the page
    - then Purchases, Billing & Redemption

  • I have Lightroom 3 and have installed it on my Retina iMac running Yosemite. It will not show me any of the modules..error when attempting to change modules.. and keeps asking for my serial number every time. Is it compatible?

    I have Lightroom 3 and have installed it on my Retina iMac running Yosemite. It will not show me any of the modules..error when attempting to change modules.. and keeps asking for my serial number every time. Is it compatible?
    David

    This is a duplicate thread - see here

  • I have an Iphone 6 plus. Can the bluetooth connect to the cars speaker system and a Garmin HUD unit at the same time?

    I have an Iphone 6 plus. Can the bluetooth connect to the cars speaker system and a Garmin HUD unit at the same time?

    Hi,
    Normally yes, Bluetooth can connect to multiple devices at the same time, so yes.
    The only thing is that you'll be able to send sound/music to only one at a time, but I understand the Garmin HUD doesn't play sounds.
    cheers

  • Is it possible to have an attribute whose label is dynamic on an Entity Screen?

    Hi,
    I have an entity control on a screen that has an attribute which uses a label(say, %label%) as the question text. This text is supposed to change dynamically depending on the value selected for another attribute on the same screen. This doesn't seem to be happening, the attribute displays "%label%" in all the entity instances instead of the dynamic text. Is there a work around for this problem?
    Thanks in advance,
    Shwetha

    You must use custom javascript or some other means to modify the appearance of a screen without submitting it (i.e based on something on the same screen).  In OPA, an attribute only has a value once the screen is submitted, not at the time when the HTML control is edited.  Subsequent screens can use values of attributes from prior screens for dynamic labels, but not on the same screen.

  • Is it possible to have a dynamic web-xml ?

    Hi all,
    I have the following problem: the mapping of a Servlet
    is subject to change depending on the host on which
    application resides. That is if my Servlet is installed
    on Host1 the mapping will be:
    <servlet-mapping>
    <servlet-name>
    myservlet
    </servlet-name>
    <url-pattern>
    /host1
    </url-pattern>
    </servlet-mapping>
    if on the other hand it's installed on "AnotherHost" it should be:
    <servlet-mapping>
    <servlet-name>
    myservlet
    </servlet-name>
    <url-pattern>
    /AnotherHost
    </url-pattern>
    </servlet-mapping>
    Is it possible to have it done without changing web-xml every
    time I move the application from one host to another?
    Thanks a lot
    Francesco

    Hi,
    Is it possible to have it done without changing
    web-xml every
    time I move the application from one host to another?You could change this during your build process (e.g. Ant) if you have one, otherwise I think you'll have to manually edit it yourself.
    Cheers,
    Matt

  • Is it possible to have two or more virtual machines point to a shared instance of SQL Server 2008 R2 for systems administration?

    Hello All,
    I am the Systems Admin for a production box running SQL Server 2008 R2.  I have been ask to do the following and and trying to figure out if it's even possible.
    1. The Production Server is named ProductionA
    2. Create 3 Administrator accounts on ProductionA each with access to the SQL Server instance on ProductionA.  Use Standard SQL Server login for credentials. i.e. Username/Password and assign the role sysadmin.
    3. Install 3 Virtual Machines on ProductionA each with Windows 2008 R2 64 bit operating system.
    4. For each Virtual Machine, Install SQL Management Studio and write down the IP Address assigned to each VM.
    5. Using Remote Desktop Connection, connect to each virtual machine to be able to manage the SQL Server.
    Is this possible?  And, why am i doing it?  Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box
    to manage the SQL Server, I figure why not create a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M

      Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA.  Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
    a separate VM for each one of them and they can RDC into those instead.
    Does this make any sense?
    Any tips are greatly appreciated.  The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
    Thanks for your help.
    M
    Hello M,
    Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
    is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
    I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
    Your option will also work but you need to create 3 VM for that .Which is more tedious task.
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

Maybe you are looking for

  • Payment Milestones in SRM?

    Hi At the organisation I work at, we have restricted back end SAP purchasing access and are pushing out the use of SRM instead as primary method for users to raise shopping carts, and have a number of catalogues setup for core commodities such as sta

  • Does turning off iPod erase iPod diagnostic data

    When ever safari crashes I understand that it keeps that data and next time you connect it appears as diagnostic data. I always turn off/on my iPod touch when that happens. My question is that turning off iPod erase iPod diagnostic data? Is it necess

  • Regarding using of LDB PNPCE  in sap hr

    Can some one please tell me how to disable some of the selection screen fields and blocks of LDB PNPCE selection-screen which are not used in my report selection-screen? Thanks, Phanisreedhar.L

  • [Mac InD CS4] default save location?

    I just upgraded from InDesign CS3 to CS4 on a Mac running OS 10.6. When I open an InDesign document and do a save, the dialog does not direct me to the location of the old file. Is there a way to set a preference so that "save" brings me back to the

  • Having trouble getting my music to play on my iPad 2 (5.1.1)

    Having trouble getting my music to play, this really annoys me because I spent MY money on itunes for these songs and suddenly they won't work anymore. They've worked in the past so I don't understand what could be going wrong. Only the songs that I'