Change a property of the attributes (VO) doctors use?

Hello

I use JDeveloper 11.1.2.4

We use MDS in our application of user-level customization.

We have an af:query and its corresponding table in our page. Based on responsibility, the columns of the table are visible/hidden.

This part works very well the doctors use. However, there is a requirement more. The attributes to add to the option of advanced search for FY: query must also be based on responsibility.

Now if an attribute will be displayed in the advanced search of af: query depends on the searchable property of the attribute to display.

We use the following tag in the xml customization file in the model layer:

< mds: change

element = "(xmlns (mds_ns1 =http://xmlns.oracle.com/bc4j)) [/ mds_ns1:ViewObject[@Name='SearchView']/mds_ns1:ViewAttribute[@Name='LocationId'] " ">

< mds:attribute

name = "IsQueriable".

value = "true" / >

< / mds: change >

Note: The two model and VC use the same customization file (configured in the ADF - config.xml.) The searchable property for all attributes by default is false.


The question we face is that if I have 2 users A and B with different responsibilities. If a connection first, then whatever the attributes to display for one will be shown in B and vice versa (connections B if first, then both A and B will see the same attributes, i.e. user B). MDS selects the layer that is correct for the first user of the connection once the application has been corrected. However, after which never has connections, see the same attributes as the first connection.


What Miss me?

Thank you



See http://docs.oracle.com/cd/E16764_01/web.1111/b31974/customize.htm#BABEGABC

34.1.2 content static and dynamic personalization

Customizations can be classified as static or dynamic. Static customizations have value to a single layer in force for all executions of the application, while dynamic customizations can have values that vary based on the execution of the application context. If a customization can vary for different users running the application, it is dynamic. If a customization has the same value for all users running the application it is static.

When you implement customizations in ADF Model objects and ADF business components, customizations remain the same for any performance of the application. This is because these objects are loaded only once for an application and reused for the duration of the application. For example, you have a validation rule custom value of Healthcare company #1 site layer that limits the salaries for this site at 3300. It comes to static content for personalization.

However, you can also implement customizations to the level of the controller or view allowing the value of the layer to determine at run time, based on user roles (responsibilities) or other application-specific criteria. For example, you can design an application that allows users of different organizations see different sets of fields on a given screen. It comes to dynamic content personalization.

The determination of the question whether a customization is static or dynamic takes place in the class of customization. In the class of customization, if the getCacheHint() method returns ALL_USERS , then the layer of customization is static. For more information on CacheHint , see Section 34.2.2., "what you need to know about customizing Classes."

All objects may have a static customization layer, depending on how personalization classes are implemented. But for ADF model and components items trade, customizations cannot be static.

Tags: Java

Similar Questions

  • ADF BC: Changing the mandatory property for the attribute EO executing

    Hi all

    I have an attribute of the entity, which should be obligatory for all new, not yet stored engaged; _ but it is not mandatoryfor all others, existing line (in the database). How to acquire it?

    You will need to write a validation method to achieve this:
    Check if:
    getEntityState() is Entity.STATUS_NEW or Entity.STATUS_INITIALIZED

    To show * required indicator on the UI, you can use the property above exposed through some transitional attribute of bean property/VO...

  • Property of the attribute VO not reflected in the page

    using jdev 11.1.1.3
    Editing an attribute of your (width example) property is reflected in the Jspx page that uses this VO.
    the component is a 60 maximum width text entry field that reflects varchar2 (60) in the table.
    I put the VO attribute for shippingContents to width 60 and in the jspx page I like default width when referred to which is columns = "#{bindings." SHIPPINGCONTENTS.hints.displayWidth}.
    Please let me know how it could be defined if she could be defined and why mine does not work

    Hello

    You try to set the maximum length of a component of af: inputText?
    If so, try with this property:

    maximumLength="#{bindings.SHIPPINGCONTENTS.hints.precision}"
    

    AP

  • Change SQL VO, but the attribute does not change, how to solve?

    Hi all

    I use p4045639 with OFA 5.7 Jdev

    I create VO for SQL query. later, I add a new column to the table (view) basic and edit the sql code of the VO.

    Everything seems ok, but will not be added the attribute and mapping would be incompatibility between columns and ViewAttribute.

    How to solve this problem?

    The first time I have not found this shift and this would cause a SQL statement error when make the method executeQuery in VO. And this exception cannot be caught in the java VO code so that I don't even see the full error stack.

    I have used Jdev and OFA higer version, don't forget isn't a similar error. Can someone tell me how to solve this problem?

    Thank you.

    Scott

    Hi Scott,.

    Please open the VO by double-clicking in JDeveloper.
    Click attributes in the left panel.
    Remove all the attributes of the right panel.
    Click the SQL in the left pane
    Paste your query, test and then click mappings of attributes. It will work

    Thank you
    Anoop

  • The attribute value set using plugins

    Hi Experts,

    I am confronted with error when you set the value of the attribute in the event "OnInvestigationStartedEvent". Any suggestion to solve the problem

    Code:

    Its session = onInvestigationStartedEvent.getSessionContext () .getInterviewSession () .getRuleSession ();

    Start of attribute = ses.getGlobalEntityInstance () .getEntity () .getAttribute ("test_start_time");

    Date start_date = new Date();

    start.setValue (ses.getGlobalEntityInstance (), start_date);

    Error:

    25750 [http-Apr-8080-exec-9] INFO com.oracle.determinations.engine.Session - setting test_start_time attribute, global entity, name of the world body, session 1 value user 21/07/13 14:17

    25752 [http-Apr-8080-exec-9] ERROR com.oracle.determinations.web.platform.templatingengine.ErrorRenderer - a change to the Session of the rule has been detected.

    com.oracle.determinations.interview.engine.exceptions.CorruptSessionException: an unauthorized at the Session of the rule changes was detected.

    at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.checkSessionIntegrity(RuleSessionManager.java:760)

    at com.oracle.determinations.interview.engine.data.local.RuleSessionManager.getRuleSession(RuleSessionManager.java:144)

    at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getRuleSession(LocalInterviewSession.java:203)

    at com.oracle.determinations.interview.engine.data.model.InterviewEntityInstanceIdentifier.findEntityInstance (InterviewEntityInstanceIdentifier.java:73)

    at com.oracle.determinations.interview.engine.local.AttributeGoal.getNextScreen(AttributeGoal.java:112)

    at com.oracle.determinations.interview.engine.local.LocalInterviewSession.getNextScreen(LocalInterviewSession.java:222)

    at com.oracle.determinations.web.platform.controller.actions.InvestigateAction.getResource(InvestigateAction.java:65)

    at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.doGet(WebDeterminationsServlet.java:112)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at com.oracle.determinations.web.platform.util.CharsetFilter.doFilter(CharsetFilter.java:46)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)

    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)

    to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:589)

    to org.apache.tomcat.util.net.AprEndpoint$ SocketProcessor.run (AprEndpoint.java:1852)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (unknown Source)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (unknown Source)

    at java.lang.Thread.run (unknown Source)

    Thank you

    Vinay

    Vinay,

    When you work in an engine of the interview event handler, you can use objects of the engine of the Interview to set the values. Take a look at the example 'use of the OnInterviewSessionCreatedEvent to start in a session data newly created' in the 'the Oracle policy Automation Developer's Guide'.

    Your code should look like:

    get the globalInstance of a new InterviewUserData;

    Data InterviewUserData = new InterviewUserData();

    InterviewEntityInstance globalInstance = data.getGlobalInstance ();

    the value of the test_start_time

    Date start_date = new Date();

    globalInstance.setValue ("test_start_time", start_date);

    submitting data to the session of the interview.

    Result TransactionResult = session.submit (data);

    I hope this helps.

    See you soon

    Frank

  • Clips change of position on the timeline when you use temporal

    First Elements 10, Win 7 x 64,

    I've implemented a timeline that had four video tracks. When I added a fifth track I started to have problems. More specifically, when I put a picture clip or video yet on the fifth time track used on this new addition clip, existing clips on the third and fourth titles changed their position on the timeline in response to stretching the time applied to the clip on the title above. Why does this happen? I think the clips on the lower video tracks to do not move NOT in response to a stretch of time change for a clip on a track that precedes. How can I get to stay put during the handling of the duration of the clips on the slopes above them?

    Thank you for the ideas.

    I enclose three images to make what I feel clearer that perhaps my words describe above.

    (top) Picture 001: timeline before changing

    (in the middle) 002 image: timeline after you have added a video track 5 and adding a fixed image to this track

    (bottom) Picture 003: chronology after application in time to clip image again on track 5, showing the movement of clips on tracks 3 & 4

    001.jpg

    002.jpg

    003.jpg

    The other tracks are just "ripple".

    To override the ripple, hold CTRL (Cmd on a Mac key) that you add, remove, or edit clips on the timeline.

  • How to access a custom property for the attribute and command in .vm file?

    Hello

    I have created custom in OPM for attribute properties and also apply only to assign properties.

    But if this value in the .vm file access?

    I've accessed the help

    $attribute.getProperty ("ScreenProp", "default")

    but it is not functional but is even worked for the custom property screen

    It already is the answer in my first answer in the thread How to access custom in the .vm file properties :

    $control.getProperties () .get ("PropertyName")

  • Cannot change limit property of the TextInput via ActionScript

    Please tell me why this doesn't work, or suggest a work around.

    This example of debugging must change the TextInput to allow a dash when the box is checked, Yes?

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:fx s:Application ' http://ns.Adobe.com/MXML/2009 "
    xmlns:s = "library://ns.adobe.com/flex/spark".
    xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

    < fx:Script >
    <! [CDATA]
    public function chkClicked (): void {}
    {if (CHK1. Selected)}
    trace ("box checked, allow-");
    TI1. Restrict = "0-9. \- » ;
    }
    else {}
    trace ("box unchecked, reject-'");
    TI1. Restrict = "0-9";
    }
    }
    []] >
    < / fx:Script >

    < mx:VBox >
    < s:CheckBox id = "chk1" click = "chkClicked ()" / > "
    < s:TextInput id = 'ti1' width = "60" limit = "0-9" / >
    < / mx:VBox >

    < / s:Application >

    Each of the restrict strings will work when it is applied directly as an mxml attribute.

    Thank you

    Al

    You must ESCAPE from the dashboard.

    Try.

    {if (CHK1. Selected)}
    trace ("box checked, allow-");
    TI1. Restrict = "0-9. \\- » ;
    }

    If this post was helpful please mark it as such.

    Post edited by: UbuntuPenguin

  • Can't access "Change Date" property of the DataSet

    Hello:

    Ive had similar messages, but nothing seems to match what I would make in 2012 tiara.

    I want to get a time stamp from a set of data to show exactly when the test was run.  The data I work with have a datetime string, but it is set by default to the time in the past (the supplier of material coding errors) so that the information is useless for me.

    The "date modified" (in the details in the file in the browser panel Explorer) is the exact time I want.  Is it possible to call this value?  Specifically, I would like that this value to propagate in a text box.

    Thank you!

    Option Explicit
    "Select channel of your file.
    Sun chO: chO value = Data.Root.ChannelGroups (1). Channels (1)
    ' Deteremine filepath
    Dim filePath: filePath = chO.Properties ("sourcedatafilepath"). Value & chO.Properties ("sourcedatafilename"). Value
    ' Attributes for file access using file system object
    Dim modifiedDate: modifiedDate = CreateObject ("Scripting.FileSystemObject"). GetFile (filePath). DateLastModified

    MsgBox FilePath & + "\n" & CSTR (modifiedDate)

    This code can be used to access the file system properties.

  • Change height property over the animation of scenario

    Hi all

    I have a scene with a top button. When I hit the button, I want to expand the scene (increase in the height of 300). But I want to do this in an animation.

    If I write

    stage.setHeight(800);
    

    This works. But inside the object KeyValue, javafx needs a doubleProperty and not a readOnlyDoubleProperty as in this example don't DO NOT WORK:

    Stage stage = (Stage) expand.getScene().getWindow();
    final Timeline timeline = new Timeline();
    timeline.setCycleCount(1);
    timeline.setAutoReverse(false);
    final KeyValue kv = new KeyValue(stage.heightProperty(), 800);
    final KeyFrame kf = new KeyFrame(Duration.millis(500), kv);
    timeline.getKeyFrames().add(kf);
    timeline.play();
    

    How can I solve this problem?

    Thank you

    Hauke

    PS. : I work with JavaFX 8

    Try

    final Stage stage = (Stage)expand.getScene().getWindow();
    // ... create timeline as before
    final DoubleProperty height = new SimpleDoubleProperty(stage.getHeight());
    height.addListener((obs, oldValue, newValue) -> stage.setHeight(newValue));
    final KeyValue kv = new KeyValue(height, 800);
    final KeyFrame kf = new KeyFrame(Duration.millis(500), kv);
    timeline.getKeyFrames().add(kf);
    timeline.play();
    
  • Include the attribute custom report using the disc

    I'm to customize a script provided by Alan Renouf in his PowerGUI Powerpack.  The script I'm customization in the Powerpack is named 'VM disk sizes.

    His screenplay does everything we need from a point of view of output except that we can also include a custom attribute (Custom Field) VM as well as the information of the disk space.  I have included the below custom script, please note that this is a script/PowerGUI PowerPack we customize but was initially written and provided by Alan Renouf and all credit for this original work must be given to Alan.

    I have included our custom below script and have "in bold Red" line in the script that does not work:

    $AllVMs = get-View - ViewType VirtualMachine. Where {-not $_.} Config.Template}
    $SortedVMs = $AllVMs | Select *, @{N = "NumDisks"; E={@($_. Guest.Disk.Length)}} | Sort-Object-down NumDisks
    {ForEach ($VM to $SortedVMs)
    $Details = new-object PSObject
    $Details | Add-Member-Name name-value $VM.name - Membertype NoteProperty
    $Details | Add-Member - MemberType NoteProperty-name CustomFields-value (($VM.)) CustomFields | %{"$($_. Key) = $($_.) (Value)'}) - join ',')
    $DiskNum = 0
    Foreach ($disk in $VM. Guest.Disk) {}
    $Details | Add-Member-name "drive$ ($DiskNum) path"-MemberType NoteProperty-value $Disk.DiskPath
    $Details | Add-Member-Name "Disk$ ($DiskNum) Capacity (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) Capacity / 1 MB))
    $Details | Add-Member-Name "Disk$ ($DiskNum) FreeSpace (MB)"-MemberType NoteProperty-value ([math]: round ($disk.) FreeSpace / 1 MB))
    $DiskNum ++
    } # end foreach nested
    $Details.PSTypeNames.Clear)
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VMGuestDisks) '
    $Details.PSTypeNames.Add ('Virtu-al'.PowerPack.VM) '
    $Details
    } # end foreach

    When you use the Get view as seen on the first line of the script, it appears the CustomField information not available in the generated view.  How to develop the view to include CustomFields/CustomAttributes for each virtual computer in our environment and then report on their subject?

    Please let me know if I did a poor job explaining the scenario and what I'm after here.  Any help is greatly appreciated!

    Hello, jSun311-

    Yes, you are right - there is no such thing as the "CustomFields" property on a managed object VirtualMachine .  You can always get the names and the corresponding values of the custom fields, you just have a little.  For example, you could change the line to:

    ...## make a comma-separated string that holds the custom field key/value pairs, like "cust0 = myValue0,cust1 = myDateInfo"$Details | Add-Member -MemberType NoteProperty -Name CustomFields -Value (($VM.Value | %{$oCustFieldStrValue = $_; "{0} = {1}" -f ($VM.AvailableField | ?{$_.Key -eq $oCustFieldStrValue.Key}).Name, $oCustFieldStrValue.Value}) -join ",")...
    

    and you should be happy as a clam.

    BTW, this call Get-view on your first line could be optimized a little using the - Filter parameter, like:

    $AllVMs = Get-View -ViewType VirtualMachine -Filter @{"Config.Template" = "false"}
    

    Pretty minimal in this case, but can be very useful in other scenarios of Get-View.  And, you may want to retrieve only the properties of the managed VirtualMachine object that you plan to use, so that the memory usage is reduced to the minimum, speed is optimized, etc. (do you this by using the - Get-mode property param).

    Anyway, how does do for you?

  • How to change or add to the e-mail program uses the mailto protocol in Windows 8.

    How can I change the path of a program that is used as the default e-mail program in Protocol preferences? When I click on the line for the messaging protocols, I get the following box:

    I want to continue to use Foxmail, but after a relocation, it is on my C: drive. (Don't ask why is once stood on my G: drive.) The explanation is too boring). How can I change the current Protocol to change the G and C, or how can I simply add the version of the C: drive as a new Protocol?

    The question is not essential, but I'm curious why Microsoft has replaced the much simpler method under Windows 7 with her bugaboo limited-option.

    Thank you

    Ron

    Thanks, Zig - Zag...

    Minutes after posting my question, it occurred to me that I could make changes to the registry, I did and who does not, so far.

    Interesting on your first proposal - choose Foxmail in the list of programs that can be selected as default values - Foxmail is not among them. Nor are any other programs that you expect to be in the list, such as Photoshop, Notepad, BitTorrent, WinZip, Clipmate, and in fact most of the programs I have which are alternatives to Ms programs

    Ron

    I don't work for Microsoft either.

  • In a paragraph style, is it possible to automatically change a space in the area of district using GREP sty

    I create a menu template that will be used by my client. I'm using a font that has a very wide space between the two words. I can combined a quarter space instead of a regular space between words. This works for me, but won't work for the customer.

    If I create a paragraph style, is it possible to use GREP to automatically change the space in the area of district? and if so, what this text GREP would look like?

    Jump_Over, that did the trick! I'm just starting to learn more about the power of GREP in indesign and have still a long way to go.

    Thanks for your help!

  • Property of the canvas

    Hi guyz,

    How can I programmatically set the property of the canvas?

    IM using oracle 6i

    Concerning

    Houda

    Published by: houda Shareef on November 21, 2009 23:16

    Hello

    It depends on the height of your window. If its height is over (only 439), then increase the canvas only will suffice. However, if the height of your window is less, and you try to increase the height of the canvas to more, it wouldn't work.

    So, in this case, its better to increase the height of the window but also at the height of the canvas.

    Something like:

    SET_WINDOW_PROPERTY('window2',HEIGHT,440);
    SET_CANVAS_PROPERTY('canvas2',HEIGHT,439);
    
  • AF:table - change disabled property of input text according to the value of the attribute line

    Hello

    I use Jdev 12.1.2.

    I have a table with the number of lines.  Each line has a FutureCode attribute and other attribute FutureComments.  I want to make sure FutureComments is disabled unless the FutureCode of this line is is 'OTHER '.

    I tried to go to the text of the FutureComments component in the table and setting the property to the expression for disabled:

    #{row.bindings.FutureCode.inputValue == 'OTHER'? false: true}

    But it does not work.  I messed around with the parameters in the table (distribution of content, immediate change), but I did not get a configuration so that it can work.

    A little more information, the text input component are always disabled.  I also tried using the expression evaluator in the debugger to check the value of my #{row.bindings.FutureCode.inputValue}, but it is null, no doubt because he does not know what line I'm talking about.

    Any idea on this?  Thank you.

    Hello

    There the lov on future code?

    will not have operator you used? Try

    #{row.bindings.FutureCode.inputValue! = 'OTHER'}

    If this does not work

    Try

    #{row.bindings.FutureCode. attributeValue ! = 'OTHER'}


    Thank you

Maybe you are looking for

  • Boot Camp Partition Storage

    I have a MacBook Air (13 inches early 2015), with a 1.8 Ghz Intel Core i5.  My OS is OS X El Capitan (10.11.13) I tried to install Windows 8.1 on Boot Camp. I went through all the steps, and it wouldn't let me install because the Boot Camp has not be

  • Satellite C660-108 - slow response keyboard

    The keyboard on my Satellite C660-108 is very slow in response. Some characters are not at all, some only after a short delay. It's very embarrassing when I type text and passwords (!) because I have to double check any type (and 1 / 3 words has spel

  • Satellite L300 - fails during the installation of recovery

    Today I took delivery of a recovery disk bright, shiny, new, directly at Toshiba. I was under the impreession it would erase all HDD and recreate a factory install with the recovery of HARD drive partition (which is what I want), but it fails every t

  • Hard Drive replacemsnt and number of shared folder

    I share a folder with several subfolders between 2 computers, both running Windows XP - Pro I set up sharing so that changes in the files would be reflected on two computers - the drive on one of the computers failed although the data was recoverable

  • Out of several users on my computer only one can access the internet

    Original title: Internet connection There are several users on my computer, but only one of them can access the internet, pls help. THX Fred