Attributes to NULL

Hi,
Am learning FIM, Can any help me to understand when to declare the attributes as NULL? Does the error "exported-change-not-reimported" clears if we make the attributes as null.
Thanks.

Hello Rahmaniya,
If you you to empty/clear values on a cs attribute, you can use the Delete() method in your ma extension code:
csentry["attributeName"].Delete()
Regards,
Sylvain

Similar Messages

  • Does Endeca Integrator Loads Attribute with Null value?

    I have a table in DB , with a column , lets say, supply_id. This is null for all rows.
    When i load data from this table using clover ETL graph and lets say source this data to another table , will my final table will have a column as supply_id?
    Or will this column will get dumped.
    I discussed on clover etl forum, it seems this column will be picked. However, when we use EID Intgrator the column is getting dropped always..
    I tried a sample graph passing an attribute having null value and having property nullable=true. But still it was dropped.
    I posted same question on clover etl forum long back. They explained its not something out of the box from Clover but a change Oracle EID made to the engine.
    http://forum.cloveretl.com/viewtopic.php?f=4&t=6508
    Could you please confirm if this is expected behavior and if so , is there any workaround?

    Yes, if an attribute doesn't contain any values that attribute doesn't exist in the Endeca Server. Why do you want an attribute that doesn't contain values?

  • Applet's Packages attribute is null

    Hi !
    I'm working on a JavaFX applet for a long time, and today I'm facing a really strange problem.
    The javascript object I get with document.getElementById("APPLET_ID") has no Packages attribute under Windows.
    I run my tests on Windows XP with IE8, FF and Chrome up to date, but it's the same problem under windows 7.
    Under Ubuntu with JRE 7u7 x64, no such problem.
    Here is my test code :
    package test;
    import netscape.javascript.JSObject;
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.scene.Scene;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.HBox;
    import javafx.stage.Stage;
    public class Main extends Application {
    private JSObject js;
    TextField tf;
    @Override
    public void start(Stage primaryStage) {
    js = this.getHostServices().getWebContext();
    HBox hb = new HBox();
    Scene s = new Scene(hb, 400, 400);
    tf = new TextField("MAIN");
    primaryStage.setScene(s);
    hb.getChildren().add(tf);
    primaryStage.show();
    runTest();
    public static void main(String[] args) {
    launch(args);
    void runTest(){
    new Thread(new Runnable() {
    @Override
    public void run() {
    try {
    Thread.sleep(5000);
    } catch (InterruptedException e) {
    e.printStackTrace();
    Platform.runLater(
    new Runnable() {
    @Override
    public void run() {
    tf.setText("" + js.eval("document.getElementById('applet_id').Packages == null"));
    }).start();
    Displays "false" under Ubuntu JRE7u7x64 and true under Windows JRE7u21 32bits, with all browsers.
    Anyone knowing this issue..?
    Filed on Jira : https://javafx-jira.kenai.com/browse/RT-30732
    Posted on Stackoverflow : http://stackoverflow.com/questions/16799694/applets-packages-attribute-is-null-google-chrome
    Posted on Oracle's Forums : Applet's Packages attribute is null
    Edited by: Pitt on 31 mai 2013 07:55

    Did you consider that you are perhaps just doing it entirely wrong and need to re-read the documentation, a current version of it?
    Yes, else I wouldn't ask : could someone just notice me if this is a all new bug, a deprecated access to Packages (didn't see any clue for this), or a known bug ?
    For example, a bit of googling turned up this for me:
    Thanks really much, indeed I didn't consider googling my keywords................. Unfortunately, this hasn't anything to do with my problem, as the concern of this page is the control of a webengine in a JavaFX application.
    The only way to access JS from an applet in an external browser is by using Application.getHostServices(). Am I wrong ?
    The way to access Packages from hosting page's JS is document.getElementById("myAppId").Packages may not be the good one. But I can't find an equivalent workaround...
    Maybe the obvious workaround can be found looking in mechanisms described in the current JavaFX 2 documentation (you are right on this, reading the current doc is the main point, so I guess you should already have found and read it before teaching me about googling) : http://docs.oracle.com/javafx/2/deployment/javafx_javascript.htm
    BTW, the link to the doc I provide gives us an example :
    var mapApp = document.getElementById("myMapApp");
    if (mapApp != null) {
    //City is nested class. Therefore classname uses $ char
    var city = new mapApp.Packages.testapp.MapApp$City(cityName);
    mapApp.navigateTo(city, mapApp.Packages.testapp.MapApp.ZOOM_STREET);
    return mapApp.currentZipCode;
    return "unknown";
    You'll soon see that it's exactly what I'm trying to do.
    As different JRE7 releases may have unpredictable behaviors, I just wonder :
    * Why is the Packages access unabled only since the last minor releases ? (at least 7u21)
    * Is it a bug or not ? If yes, the documentation should be updated.
    * What is the simplest workaround I can find as I don't want to add 120 methods breaking my model in my Application instance.
    Thank you anyway.

  • FRM-41014: Cannot set attribute of null canvas item PO_REQ_HDR.ATTRIBUTE8

    I am Doing Form Personalization on Dff in Requisition Headers form. My Requirement is
    requirement is like this
    Segment1 : Requsition Type
    Segment2: Project ID
    Segment3: CAF ID
    ATTRIBUTE7 will have two values
    1. Capex
    2. Opex
    if user selects Capex.. then ATTRIBUTE8 and ATTRIBUTE9 are manadatory
    otherwise optional
    i did personalization
    In Condition Tab:-
    I took Trigger Event as When-Validate-Record
    Trigger Object as PO_REQ_HDR
    Condition :PO_REQ_HDR.ATTRIBUTE7='Capex'
    When i validate it gives The Condition evaluates to false
    In Action Tab:-
    Type Property
    Language All
    Object Type Item
    Target Object Po_REQ_HDR.Attribute8
    Property Name :Required
    Value:True
    then i Pressed Apply Now then It fires Error:: FRM-41014: Cannot set attribute of null canvas item PO_REQ_HDR.ATTRIBUTE8
    Can Any one please sujjest what is the Cause of this Error.
    I am Using 12.0.4 application version.

    Please see these threads.
    Re: Personalization Problem
    How can I make a DFF segment diappear?
    Thanks,
    Hussein

  • FRM-41014: Cannot set attribute of null canvas

    Hi all,
    Whenever i am opening the Distributions window in Invoices in my home system, I am getting the following Pop Window telling :
    "FRM-41014: Cannot set attribute of null canvas item D_SUM_PROMPT.ORDER_BY1"
    Can anyone please throw some light as i am getting the error everytime i open and its really eating my brain.
    Regards
    Ramki

    the item named : D_SUM_PROMPT.ORDER_BY1 has its canvas property set to null or none. in the property palette of this item, select a valid canvas, then goto the physical->visible poperty to false.
    Francois

  • FRM-41014: Cannot set attribute of null canvas item CTL_GLOBALS_USERAREA

    Hello experts
    Has any one encountered the "FRM-41014: Cannot set attribute of null canvas item CTL_GLOBALS_USERAREA" error at any time? What was the fix? I thought setting the environment variable HRUSERAREA="OFF" in the env file would resolve this. But unfortunately, in one of our instances this is set and yet the same error shows up again.
    We are upgrading from 10.7 to R12. Linus is the OS. Any inputs? What else do we have to check between the instances where it works and the one that produces the error?
    Thanks for responding.
    Srikanth

    Vasanth
    Thanks for your response. The last post in that link seems to suggest that "the error will be shown only by clients, which used [en-gb] scheme in Internet Explorer." But in this case, the library HR_GEN.pll has the SET_ITEM_PROPERTY call which attempts to set the null canvas item's property. The function that helps in making the decision whether or not to make this item property call is done by a function called USERAREAENABLED within the library. This function calls a user exit to determine the value of the env variable $HRUSERAREA. Somehow this returns "ON" inspite of "OFF" value with which this variable is defined in the env file. Could something else be overriding this env file setting?
    Srikanth

  • RE: The selectBooleanRadio component's group attribute is null

    Hi all,
    i am using Jdeveloper 11.1.2.3.0
    I have one Read only table in my fragment which contains one Checkbox and one Radio button.
    Here i have one requirement that whenever i check the checkbox the radio button will get enabled.
    I have done all the things regarding my requirements that is whenever i check the checkbox the radio button is enabled with an error message  in log.
    The log message is as follows:
    The selectBooleanRadio component's group attribute is null. It must be set to a non-null value for the selectBooleanRadio component to function properly. The selectBooleanRadio component is meant to be used with other selectBooleanRadio components with the same group value.
    So, Can any one help me to resolve the above issue.
    Regards,
    Syam

    Hi,
    I think an error message cannot be more clear than this;
    The selectBooleanRadio component's group attribute is null. It must be set to a non-null value for the selectBooleanRadio component to function properly.
    selectBooleanRadio component's group attribute  ==> the selectBooleanRadio has a "group" property that you need to define a value for
    Frank

  • ViewObject attribute is null; ViewUsageName: (DetailGuestAttendeesVO);

    Hi
    I have added a new LOV created in JDEV to existing seeded page. This new LOV(BioPrescribersVO) is in new AM(TestAM). But the page has an underlaying seeded View Object DetailGuestAttendeesVO. I get this error when click on the torch light and select the values in the LOV window.
    I get this error 4 times as 4 rows are in this Advanced Table region.
    ViewObject attribute is null; ViewUsageName: (DetailGuestAttendeesVO); RegionItem: (item1)
    ViewObject attribute is null; ViewUsageName: (DetailGuestAttendeesVO); RegionItem: (item1)
    ViewObject attribute is null; ViewUsageName: (DetailGuestAttendeesVO); RegionItem: (item1)
    ViewObject attribute is null; ViewUsageName: (DetailGuestAttendeesVO); RegionItem: (item1)
    Please help
    Thanks

    This is the layout in my page. Please let me know if this correct. Thanks
    - Stack Layout: (BioStk)                        Yes
       -- Message Lov Input: Item1            Yes
          --- lovMappings
              ---Lov Map: (BioStk.lovMap1)
              ---Lov Map: (BioStk.lovMap2)
          --- lovContents
             ---List Of Values: (BioStk.region1) Yes 
                ---Table: Bio Table Yes
                   ---Message Styled Text: Last_Name Yes
                   ---Message Styled Text: First_Name Yes
                   ---Message Styled Text: Address Yes
    This is the LOV region details in JDEV
    --Region Style:Stack Layout
      Scope: Pubclic
      AM Def: bio.oracle.apps.ap.oie.lov.server.TestAM
      Stand Alone: True
      ----ID: Item1
          Item Style:Message LOV Input 
          Seatch Allowed:True
          View Instance: DetailGuestAttendeesVO
          View Attribute: Name
          Prompt: Item1
          ---LOV Mappings
             --lovMap1
               LOV Region Item: Last_Name
               Return Item: Item1
               Criteria Item: Item1 
             --lovMap2
               LOV Region Item: First_Name
               Return Item: Item1
               Criteria Item: Item1 
          --ID:Region1
            --Region Style:listOfValues
              AM Def:bio.oracle.apps.ap.oie.lov.server.TestAM
              Advanced Search Allowed:False
              ---ID:Bio Table
                 ----Region Style:Table
                     AM Def:bio.oracle.apps.ap.oie.lov.server.TestAM
                     Stand Alone:True
                      ---ID:Last_Name
                         Item Style:Message Styled Text
                         View Instance:BioPrescribersVO
                         View Attribute: X_Last_Name
                          Prompt: Last_Name
                      ---ID:First_Name
                         Item Style:Message Styled Text
                         View Instance:BioPrescribersVO
                         View Attribute: X_Fst_Name
                          Prompt: First_Name
                      ---ID:PR_PER_ADDR_ID
                         Item Style:Message Styled Text
                         View Instance:BioPrescribersVO
                         View Attribute: PR_PER_ADDR_ID
                          Prompt: PR_PER_ADDR_ID

  • V$Session module attribute is null

    Hi all,
    1. What is the use of the module attribute in V$SESSION
    2. I have a DB link with another DB server and while using that link like
    "select sysdate from emp@dblink " with in my procedure,
    i have found the module attribute of v$SESSION is null, by which this query keep on waiting for a long period of time.
    3. Is having null in module attribute for this query will make the Query not executable?
    Thanks,
    Ramesh.R

    Review the documentation "Supplied PL/SQL Packages Reference" for DBMS_APPLICATION_INFO this may help.
    {Sorry old name for same manual now "PL/SQL Packages and Types Reference" see below.....}
    its has an example:-
    BEGIN
    DBMS_APPLICATION_INFO.SET_MODULE(
    module_name => 'add_employee',
    action_name => 'insert into emp');
    So if your application has been written to update MODULE it will show in v$session.......... hope this helps.
    http://www.stanford.edu/dept/itss/docs/oracle/10g/appdev.101/b10802/toc.htm

  • Client attribute returning null value in adf

    hi i am using jdev version = 11.1.1.5.0
    I have 2inputs and 2buttons in my adf form.One of my input boxes calls a javascript function using client listener,I need ids of remaining 1input and 2buttons and I am using client attribute.
    All the controls have their respective client attribute which gets their id from managebean like following:
    <af:clientAttribute name="inpAttr1"  value="#{manageBean.inp1Binding.id}"/>
    <af:clientAttribute name="inpAttr2"  value="#{manageBean.inp2Binding.id}"/>
    <af:clientAttribute name="btnAttr1"  value="#{manageBean.btn1Binding.id}"/>
    <af:clientAttribute name="btnAttr2"  value="#{manageBean.btn2Binding.id}"/>
    This javascript function is called on key press event in input box 1.:
    function clientEnterKeyPressEvent(evt) {
          try {
              var evtSource = evt.getSource();
              var _inp1 = evt.getSource().getProperty('inpAttr1');
              var _inp2 = evt.getSource().getProperty('inpAttr2');
              var _btn1 = evt.getSource().getProperty('btnAttr1');
              var _btn2 = evt.getSource().getProperty('btnAttr2');
              evt.cancel();
          catch (e) {
            alert("Error caught:" + e.message)
    But here i get _inp2,_btn1,_btn2 values null.
    Using client attribute i am getting the id of only one control, on which the event is invoked at the time of event.
    WHat could be the issue?
    Thanks

    Frank ramandeep singh - oracle
    Yes i am getting all values on hardcoding it.
    But here the scenario is ,I am getting id of control which invokes the javascript function i.e when i enter something in input1 javascript function is called and i get id of input1 only,similarly when i enter something in input 2 respective javascript function is called and i get id for input 2 only.
    Hope you got the scenario

  • Empty object in cache? All attributes are null...

    This happens rarely, but after adding an object to the database, it is stored in the identity map, but all that's stored is the primary key, the rest of it is NULL. Subsequent queries on that object retrieve objects with all atributes set to null, even those initialized to new Vector()..
    Anyone noticed anything similar?
    Thanks!
    - Rustam -

    This sounds like the UnitOfWork post commit phase that merges the transaction's change-set into the shared cache has failed. Is there any code in your set methods that could lead to an exception being thrown during the merge?
    It is typically safer to use direct access. If you use method access the logic within the set methods must support the cache merge.
    As far as the previous issue goes I have not seen a TAR filed with support for this issue. Typically support will work with the customer to construct a reproducible test case which engineering can use to validate and fix the issue.
    Doug

  • How to force simple tags and null attributes to appear when using SQL/XML?

    Hello everybody:
    I'm developing a non-schema based XMLType view.
    When the XML document is generated, i noticed two things I need to manage in order to achieve the desired result:
    1. Oracle generates a <tag></tag> pair for each XMLELEMENT defined; in my case, some tags need to appear as <tag/>... how do I do? Is it possible when using schema based XMLType views? Is it possible while using a non-schema approach?
    2. When using XMLATTRIBUTE('' AS "attribute") or XMLATTRIBUTE(NULL AS "attribute"), no one attribute with label "attribute" and null value appears at the output; how do I force to Oracle DB to render those attributes which are with no values (needed to render those attributes as another parsing code will await for all the items)?
    3. Some tip about how to route the output to an XML text disk file will be appreciated.
    Thanks in advance.
    Edited by: Enyix on 26/02/2012 11:21 PM
    Edited by: Enyix on 26/02/2012 11:22 PM

    Hello odie_63, thanks for your reply:
    Reasons why needed single tags are these two next: Needed to generate a single XML file from 50,000,000 rows, where the XML ouput matches not only row data but another default values for another elements and attributes (not from database but using strings and types with default values); by using start and end tag, the generated file is as much twice bigger than using single tags; second, needed a very precise presentation for all the document.
    For generating that document, currently focus is based on using a batch process relying on Spring Batch with using a single JDBC query where a join happens between two tables. From my point of view, that approach uses: database resources, network resources, disk resources, and processing resources, including the price of making the join, sending to network, creating objects, validating, and making the file (Expending too much time generating that XML file). That processs currently is in development.
    I think possibly another approach is delegating the complete generation of that file to the database using its XML capabilities. My current approach following your recomendations is to generate a clob where I will put all the XML and putting it into a table. It leads me to another issues: Considering limitations on memory, processing and disk space, needed to append a single row-as-xml into the clob as soon as possible, and putting the clob inside the field as soon as possible, or putting the clob inside the field, and appending into it as the data is generated; so How do I manage the process in order to achieve that goals?. Seen these issues aren't related to my original question, so I'll open a new post. Any help will be apreciated.
    Thanks again in advance.

  • Control hints tab for an attribute of a view object shows null pointer erro

    hi
    I am using j developer 11g. I have a view object and it is working fine and i set control hints for an attribute , i set display label and length etc
    there. now i am taking the view object the control hints tab for the particular tab didnt shows and there displayed follwing error
    how can i rectiify this error.
    java.lang.NullPointerException
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.isOverridenProperty(ControlHintsPanel.java:662)
         at oracle.jbo.dt.ui.main.misc.ControlHintsPanel.processUIHintsOnEnter(ControlHintsPanel.java:577)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.initializeControlsFromContext(BaseControlHintsPanel.java:187)
         at oracle.jbo.dt.ui.main.misc.BaseControlHintsPanel.enter(BaseControlHintsPanel.java:340)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:806)
         at oracle.jbo.ui.wizard.JboWizard.selectPage(JboWizard.java:758)
         at oracle.jbo.ui.wizard.JboWizard.newMddPageSelected(JboWizard.java:827)
         at oracle.jbo.ui.mdd.MddTraversable.onEntry(MddTraversable.java:70)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:1213)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:1194)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:128)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1650)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1518)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1512)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
         at java.awt.Dialog$1.run(Dialog.java:1045)
         at java.awt.Dialog$3.run(Dialog.java:1097)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.awt.Dialog.show(Dialog.java:1095)
         at java.awt.Component.show(Component.java:1422)
         at java.awt.Component.setVisible(Component.java:1375)
         at java.awt.Window.setVisible(Window.java:806)
         at java.awt.Dialog.setVisible(Dialog.java:985)
         at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:164)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.setVisible(JboWizard.java:2557)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:142)
         at oracle.jbo.ui.wizard.JboWizard$MddWizardDialog.showDialog(JboWizard.java:2493)
         at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:549)
         at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:352)
         at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:330)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeEOAttributeDialog(JdxMenuManager.java:1295)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeAttributeDialog(JdxMenuManager.java:1277)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doEditMenuAction(DtuMenuManager.java:1776)
         at oracle.jbo.dt.ui.main.DtuMenuManager.performMenuAction(DtuMenuManager.java:1584)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doMenuAction(DtuMenuManager.java:1377)
         at oracle.jbo.dt.jdevx.ui.JdxMenuManager.doMenuAction(JdxMenuManager.java:892)
         at oracle.jbo.dt.jdevx.deployment.ui.JxdMenuManager.doMenuAction(JxdMenuManager.java:66)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1363)
         at oracle.jbo.dt.ui.main.DtuMenuManager.doAction(DtuMenuManager.java:1348)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoBaseEditor.doMenuAction(JeoBaseEditor.java:327)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.doMenuAction(JeoEditorPage.java:777)
         at oracle.jbo.dt.jdevx.ui.editors.view.VoeAttributesPage.doMenuAction(VoeAttributesPage.java:366)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseDoubleClick(JeoEditorPage.java:642)
         at oracle.jbo.dt.jdevx.ui.editors.common.JeoEditorPage.mouseClicked(JeoEditorPage.java:623)
         at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
         at java.awt.Component.processMouseEvent(Component.java:6044)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
         at java.awt.Component.processEvent(Component.java:5806)
         at java.awt.Container.processEvent(Container.java:2058)
         at java.awt.Component.dispatchEventImpl(Component.java:4413)
         at java.awt.Container.dispatchEventImpl(Container.java:2116)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3995)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
         at java.awt.Container.dispatchEventImpl(Container.java:2102)
         at java.awt.Window.dispatchEventImpl(Window.java:2440)
         at java.awt.Component.dispatchEvent(Component.java:4243)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

    I did try making a VO that extends the original VO, but with the attribute based on the SDO_NN_DISTANCE function call, which means that a call to SDO_NN MUST be in the WHERE clause.
    This works to some extent, in that the common attributes and methods are in the second VO, inherited from the first, without me having to write them again. However, I have to use them in my ViewController project as two separate VOs. For one thing, I need two separate result pages, one for when the query used the SDO_NN in the where, and needed the distance in the output, and one without. One uses the original VO, and the other uses the new one. Similarly, I need two separate pages for adding additional criteria. Doing it this way with pairs of nearly identical pages is going to be a pain, and will be difficult to maintain, since any change will have to be done twice. Or can .jspx pages be written that extend other .jspx pages, and in particular override the VO bindings in the pageDef? Could a single .jspx page decide dynamically which pageDef to use?
    I decided to try a different tack. Back to a single VO, I wrote a WHERE clause that calls SDO_NN, but returns all of the rows. That way, I can have a call to SDO_NN_DISTANCE in the SELECT for all queries, and I was even able to add a parameter that sets the Distance attribute to NULL if it is irrelevant to the query the user constructs. This is a good work around, but it is a little slow, because SDO_NN is doing a lot of work but returning every row when it hasn't been replaced with an "actual" SDO_NN where clause.
    One more possibility: Can I have a method that replaces the entire SELECT command for this VO dynamically? I assume that you need to make sure that the expressions in the SELECTed data still map to the attributes one to one, with the same aliases. After all, I am already replacing the WHERE clause dynamically, and it works fine.

  • Linq to XML query where clause excluding null attribute in child

    I'm quite new to linq/XML and although I'm making progress I'm stuck at combining two levels of elements in a where clause. The XML is something like this
    <employees type="cashier">
    <employee hired="Jun 1 2000" fired="Jun 1 2013">
    <stats name="jane doe">
    ... other stuff ...
    <stats />
    <employee/> <employee hired="Jun 1 2000">
            <stats name="john doe">
                ... other stuff ...
            <stats />
        <employee/>
    <employees/>
    I'm trying to retrieve all employees of type "cashier" that haven't been fired.
    I tried this
    IEnumerable<XElement> CashierElements = from el in xDoc.Root.Descendants("employees")
    where (string)el.Attribute("type")=="cashier"
    && (string)el.Element("stats").Attribute("fired") != null
    select el;
    But that returns entries where the fired attribute doesn't exist. I'm not even sure I can reference the stats element attribute in this way but VS2013 doesn't complain about it.
    I have managed to muddle past by using two linq selections, the one above without the stats comparison followed by a second on the results that checks for "fired" being null.
    How would I achieve this with one select statement?
    Thanks!

    Hi,
    1) Your XML contains the attribute "fired" on "employee" element. Your query search this attribute on the "stats" element.
    2) you say "that haven't been fired" by you search an attribute fired != null ? I'm not sure about your logic.
    If I understand your request, your LINQ Query is more than :
    IEnumerable<XElement> CashierElements =
    // Loop on <employees>
    from emps in xDoc.Root.Descendants("employees")
    // only 'cashier' type
    where (string)emps.Attribute("type") == "cashier"
    // Loop on <employee> in filtered <employees>
    from emp in emps.Elements("employee")
    // only the employee not fired
    where emp.Attribute("fired") == null
    // select the employee element
    select emp;
    Regards
    Yan Grenier
    Merci de bien vouloir "Marquer comme réponse", les réponses qui ont répondues à votre question, et de noter les réponses que vous avez trouvé utiles.

  • How to show an Default Image in case of Image  src attribute is pointing to  null

    Hi ,
    I am displaying Images on to DataGrid by reading an XML File .
    This works fine if the Image src is prsent.
    Now my question is that sometimes the Image  src might be null , then in which case i need to
    display some default Image .
    <mx:HBox id="hBox">
    <mx:Image source="{rep.currentItem.@src}"/>
    </mx:HBox>
    <images>
    <image src="images/One.png" />
    <image src="images/Two.png"/>
    <image src=""/>
    </images>
    Please tell me as how to show an Default Image in case of Image  src attribute is null .
    Please share your ideas on this .
    Thanks in advance .

    bind the image source to a function
    <mx:Image source="{getImage()}"/>
    then write a function to detect if an image is present
    private function getImage():String
         if  ( rep.currentItem.@src == null)
              return "default.png";
         else
              return rep.currentItem.@src;

Maybe you are looking for