The problem posed by comparison ADF!

Hi all

I have a problem when I try to compare dates between two VO a relationship master / detail. For the original Version of the child, in the date field I created a business rule and made higher than the VO - VO parent attribute. The problem is that (as told in the hind) date is dependent only on the first line of the parent company VO - ' Hint: first line attribute will be used for comparison.

Can someone tell me why? and how can I fix this and make my child date depending on the date of its parent VO?

Thank you

OK, I'm sorry, I made a mistake in the ViewLink in fact, I'm connecting them in the opposite direction. Thanks a lot for your time, because you have helped me a lot!

Tags: Java

Similar Questions

  • String to the problem posed by the...

    I'm a string (from Date of toSting method) and this shot is not supported by the httpparser how can I convert to sting? and the string I get Date toSting method could be in different formats depending on whether the zone is available or not... How can I handel it.. ?

    Kind regards

    Kedar

    I use this date format because it is the default format you will get when you do date.toSting... and this was my requirement... that I get the date from the server in the from of a chain... I used the the substing and got a solution yet... but I would really appreciate if you could provide the solution so that I could make improvements in mine if necessary...

    Thanking you,

    Kaddy

  • Select the problem posed by the query?

    Hello

    I use 10g and here is my example query adds nothing. I know there are records in the database. It must be linked with my date conversions.

    SELECT a.gm_cd, a.draw_cd, NVL (b.cpns, 0) cpns, NVL (b.clms, 0) SSAC, NVL (b.amn, 0) amn FROM (SELECT gm_cd, draw_cd, TO_DATE (draw_tm, ' DD/MM/YYYY') draw_tm TO draw WHERE gm_cd = 10105 AND TO_DATE (draw_tm, ' DD/MM/YYYY') = TO_DATE (sysdate-1, ' DD/MM/YYYY')) a, (SELECT SUM (DECODE (a.from_draw, a.to_draw, a.cpns * b.sing_ind 0)) cpns) (, SNSOT SUM (a.clms* b.sing_ind), amn SUM (a.amn* b.sing_ind) OF draw_sales a, ACC_TYPE b WHERE a.tp = b.cd AND a.DT = TO_DATE(sysdate-1, 'DD/MM/YYYY') AND a.gm_cd = 10105) b ORDER BY a.gm_cd, a.draw_cd

    Any ideas?

    Furthermore, draw_tm is a column DATE (05/11/2013 03:59:59) and the DT is also a column DATE (10/05/2013)

    raysefo wrote:
    Hello

    I use 10g and here is my example query adds nothing. I know there are records in the database. It must be linked with my date conversions.

    SELECT a.gm_cd, a.draw_cd, NVL (b.cpns, 0) cpns, NVL (b.clms, 0) SSAC, NVL (b.amn, 0) amn FROM (SELECT gm_cd, draw_cd, TO_DATE (draw_tm, ' DD/MM/YYYY') draw_tm TO draw WHERE gm_cd = 10105 AND TO_DATE (draw_tm, ' DD/MM/YYYY') = TO_DATE (sysdate-1, ' DD/MM/YYYY')) a, (SELECT SUM (DECODE (a.from_draw, a.to_draw, a.cpns * b.sing_ind 0)) cpns) (, SNSOT SUM (a.clms* b.sing_ind), amn SUM (a.amn* b.sing_ind) OF draw_sales a, ACC_TYPE b WHERE a.tp = b.cd AND a.DT = TO_DATE(sysdate-1, 'DD/MM/YYYY') AND a.gm_cd = 10105) b ORDER BY a.gm_cd, a.draw_cd

    Any ideas?

    Furthermore, draw_tm is a column DATE (05/11/2013 03:59:59) and the DT is also a column DATE (10/05/2013)

    If draw_tm is a DATE data type, then you shouldn't do a TO_DATE on it, as you don't need to convert it to a date. If you try to remove any component "hour" of him, then you must use TRUNC (draw_tm).

    Similarly, with sysdate, you must use TRUNC to truncate. Never use TO_DATE datatypes in other data you causes an implicit conversion in varchar2 who depend on your NLS settings and may fail.

  • case statement and the problem posed by the...

    Hello..

    Here is the code I use in my pl/sql anonymous block:
    DECLARE
    
     X555 NUMBER;
    
     P1_X2 varchar2(10) := to_char(sysdate, 'dd.mm.yyyy');
     
    BEGIN
    
    case 
    
    when 
    P1_X2 = to_char('sunday') 
    then
    SELECT COUNT(*) into X555 FROM biwh.ORGANIZ Tbl 
     WHERE SAM_FORMA IN ('16') and IDEN_N_TAR in to_date(/*:*/P1_X2, 'dd.mm.yyyy')-3;
    
    else
    
    SELECT COUNT(*) into X555 FROM biwh.ORGANIZ Tbl 
     WHERE SAM_FORMA IN ('16') and IDEN_N_TAR in to_date(/*:*/P1_X2, 'dd.mm.yyyy')-1;
    end case;
    
    dbms_output.put_line(X555);
    
    end; 
    I want to do something like this:
    If it's Sunday, leave this part of the labour code:
    SELECT COUNT(*) into X555 FROM biwh.ORGANIZ Tbl 
     WHERE SAM_FORMA IN ('16') and IDEN_N_TAR in to_date(/*:*/P1_X2, 'dd.mm.yyyy') -3; 
    can you tell me the correct syntax of the code? where did I did mystake?

    SRY for my English...
     P1_X2 varchar2(10) := to_char(sysdate, 'dd.mm.yyyy');
    
    BEGIN
    
    case 
    
    when
    P1_X2 = to_char('sunday') 
    

    In the light of the foregoing, you set P1_X2 to a string value that resembles '05.10.2009' and then try to compare it to a string that looks like "Sunday".

    I'd be tempted to define P1_X2 as a DATE, then check against that for example

      p1_x2 DATE := trunc(SYSDATE);
    
    BEGIN
    
     CASE TO_CHAR(p1_x2,'fmday')
        WHEN 'sunday' THEN
          SELECT COUNT(*)
          INTO   x555
          FROM   biwh.organiz tbl
          WHERE  sam_forma IN ('16')
          AND    iden_n_tar = p1_x2 - 3;
    
        ELSE
    
          SELECT COUNT(*)
          INTO   x555
          FROM   biwh.organiz tbl
          WHERE  sam_forma IN ('16')
          AND    iden_n_tar = p1_x2 - 1;
      END CASE;
    

    The above assumes that you store iden_n_tar as a 'date at midnight '.

    You could go further and have a single query that moves from the "cause" of the where clause:

          SELECT COUNT(*)
          INTO   x555
          FROM   biwh.organiz tbl
          WHERE  sam_forma IN ('16')
          AND    iden_n_tar = p1_x2 - CASE TO_CHAR(p1_x2,'fmday')
                                                      WHEN 'sunday' THEN 1
                                                      ELSE 3
                                                   END;
    
  • In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Mr President

    In my adf application, I use sequences, the problem that I face, is that this sequence break at 2:21 or three insertions. Any reason?

    Concerning

    How can I correct this situation?

    Well, look at your definition of the sequence and correct

    There are CACHE 20 then change or recreate your sequence and use NOCACHE

    Dario

  • problem on the flow of tasks of adf and dynamic region

    JDeveloper 11.1.1.5

    I created a page jspx for making fun of the home page.

    In the facet of the beginning, there are 2 Ref order link in the region (for the 2 workflow)
    In the facet of the Center, there is a dynamic region. Once you click on the order link, the region will be changed.

    The problem is:

    the workflow has 3 displays (View1-> 2-> the View3), if I run mode 2, when I click on the link even in the facet of the beginning, it does not refer to the View1.

    I want the page back to View1 when I click the link, how can I apply?

    Hello

    You must reload the region to start again. To do this, you can assign to the refreshCondition for connection of the region, in such a way that when it is resolved to true, the region will be reset. No doubt, you can add a parameter to the region and set its value through setActionListener for the click on the link.

    Check this: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm#CHDEIFBB

    Arun-

  • Problem with string comparison

    I have a web service that I use two compares two strings, one from the service web xml of my application.

    XML retrieves a string when I compare it like this

    If (xmlVersion == 'true') {}

    }

    It never enter the if condition when I print the value I get from the service I think like this (real).

    So, what's the problem here?

    The way you wrote the comparison. you simply compare the addresses of the two strings.

    Try this instead:

    xmlVersion.equals ("true").

    In fact, you might want to consider getting these out to the back to avoid would be Null Pointer Exceptions, like this:

    If (true".equals (xmlVersion)) {" "}

    }

  • Missing an option "Open" in the download dialog in page ADF when used in IE 11

    Hello
    I have an ADF page with download function. In IE 9, when I click on the download option it shows me under dialogue.

    img2.jpg

    When I click on the same link in IE 11, I see not 'Open' option.

    img1.jpg

    I use jdev 11.1.1.7.0 with the patch patch 18277370, to support IE11.

    Can someone help me with this problem?

    Thank you.

    I am able to solve the problem by setting the file name in the header respose.  According to the forums IE11, security levels are enhannced in it, and they expect the header contains the information of the file.

    Add this line, file name with extension

    response.setHeader ("Content-Disposition", "attachment; filename = "+ file name)."

    After you add it, the file name is displayed correctly and 'opens' option is available in the dialog box.

    Thank you.

  • How to create a generic method to programmatically access the DB sequence in oracle adf

    Hello

    I am trying to create a generic method to access a programmaticall DB Sequence in oracle adf. My version of JDeveloper is 11.1.2.4.

    I created a method getSequenceNumber (String seq) and saved in my application module. Also added to the links of my page.

    I followed the instructions below link for this.

    ADF Code corner: Oracle OTN JDeveloper harvest xx / 2010

    Note: The problem with this approach is that I have to create separate methods to access the different sequence numbers.

    In my managed bean, I wrote the code below to get the method name.

    OperationBinding getNextSequence = ADFUtils.findOperation ("getSequenceNumber");

    How can I pass my sequence DB name to this method?

    Thank you

    Hello

    getNextSequence.getParameterMap.put ("seq", "yuorseqname");

    getNextSequence.execute ();

  • AF:dialog cancel the problem on the new line of VO

    With the help of 11.1.1.4.

    I have an af:popup that contains an af:dialog which itself contains entrable components mapped to attributes of VO, the first being an af:selectOneChoice (list of the part of the body). The list of the part of the body draws from a LOV configuration on the underlying VO attribute. LOV rowset is initialized in the model of the line layer whenever the popup is called to make sure that it contains all the allowed values.

    Everything works fine except when:

    (a) user adds a new row to the underlying VO and invokes the popup to initialize the values of the new line, and
    (b) the user selects a value in a list of the part of the body, and
    (c) user chooses to cancel the dialog box

    The PopupCanceledEvent triggers a Delete on the underlying VO in the case above operation, to remove the new line has been added.

    It all works very well, but if the dialog box is now called either for another new line or an existing line, the list of the part of the body indicates the value that has been selected to b) above and not on the value as it is in line with model (this has been verified). If I add and remove line using the Delete operation out of an icon above the table of VO (outside), then no problem. The problem is not correct itself unless / until the user goes in the new dialog box and completes the process of adding line by pressing the button of the OK dialog box. User can then delete this new line using the icon and then edit and add all operations work fine again.

    All about the model seems very well, the problem seems to be that the user interface components in the dialog box are not properly initialize values which I know to be in the model WHEN AND ONLY WHEN the dialog box was canceled on the addition of a new line (cancellation of a change does not cause the problem). I tried various RPP requests to try to synchronize the items with related values, but not luck.

    Does anyone have any suggestions as to what might be going on here?

    Thank you

    Check this box:
    http://www.adftips.com/2010/10/ADF-UI-resetting-or-clearing-form.html

    Thank you
    Nini

  • OPPS. the problem of forum.

    Dear experts,

    In the morning from trying to log in to this forum.but no luck.

    @ the end of the day, it's logined. Please am facing this problem sometimes.

    What is the problem. why I can't do anything. ? only, I can view the page. but not able to connect

    If any problem in adf means that we can come to this forum. but, but. the problem in the forum means where we go? ;)

    Oh my God I... i. lost a day. :(

    I don't have to take care of this forum, I guess that if one of these people

    John, Timo, Frank, Shay. is to take the Forum

    face this problem twice in this week.

    problem says:

    by some partial content error and blah blah.

    Yes, the problem is well documented in {forum: id = 29}. This is a problem with a server, I believe, but you can keep trying (close your browser between attempts) until it works.

  • Visible = "true" and partialtriggers of the problems when you are using "necessary".

    Hi, I think that I have not had my coffee today, but is it possible to have the following?

    Panelformlayout with a selectOneChoice and three inputText elements. "Visible" from each inputText attribute is based on the value selected in the selectOneChoice. The selectOneChoice a autosubmit = true and each inputText has the selectOneChoice as a partialTrigger. It all works fine, until I try to do the required selectItems = true. The hide-dynamic stops working, and the entries are marked as empty (but the selectOneChoice shows the new value).

    I tried to play with the addition of additional checks for the indicators 'immediate' and 'compulsory', for example, required = "#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal1}" but that seems to make no difference. " Someone at - it ideas?

    Example of project: (uncheck the box to display the form works well without defined the required indicator and check to enable the problems I see)

    http://www.mediafire.com/?immky4ynxqi

    In the event that the link above does not work, here is the source:

    JSP:
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" title="test thing">
          <af:form id="f1">
            <af:panelStretchLayout id="psl1">
              <f:facet name="center">
                <af:panelFormLayout id="pfl1">
                  <af:group id="grp1">
                  <af:selectOneChoice label="Select" id="selOne"
                                      value="#{pageFlowScope.testBean.selectValue}"
                                      autoSubmit="true" immediate="true">
                    <af:selectItem label="Show: Value 1" value="reqVal1" id="si1"/>
                    <af:selectItem label="Show: Value 1 + 2" value="reqVal1_2" id="si3"/>
                    <af:selectItem label="Show: Value 1 + 2 + 3" value="reqVal1_2_3" id="si2"/>
                  </af:selectOneChoice>
                  <af:inputText label="Value 1" id="it1"
                            visible="#{pageFlowScope.testBean.showVal1}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal1}"/>
                  <af:inputText label="Value 2" id="it2"
                            visible="#{pageFlowScope.testBean.showVal2}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal2}"/>
                  <af:inputText label="Value 3" id="it3"
                            visible="#{pageFlowScope.testBean.showVal3}"
                                partialTriggers="selOne"
                                required="#{pageFlowScope.testBean.requiredSet and pageFlowScope.testBean.showVal3}"/>
                  <af:inputText label="Value 4" id="it4"/>
                  </af:group>
                    <af:selectBooleanCheckbox
                                            label="Make Vals1-3 required" id="sbc1"
                                              value="#{pageFlowScope.testBean.requiredSet}"
                                              autoSubmit="true"/>
    
                </af:panelFormLayout>
              </f:facet>
              <f:facet name="bottom"><af:spacer width="10" height="10" id="s1"/></f:facet>
              <f:facet name="end"><af:spacer width="10" height="10" id="s2"/></f:facet>
              <f:facet name="start"><af:spacer width="10" height="10" id="s3"/></f:facet>
              <f:facet name="top"><af:spacer width="10" height="10" id="s4"/></f:facet>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    TestBean, as managed pageFlowScopeBean:
    package com.testapp.view;
    
    public class TestBean {
    
        private String selectValue = "reqVal1";
        private boolean requiredSet = false;
    
        public TestBean() {
            super();
        }
    
        public void setSelectValue(String selectValue) {
            this.selectValue = selectValue;
        }
    
        public String getSelectValue() {
            return selectValue;
        }
    
        public boolean getShowVal1(){
            return "reqVal1".equals(selectValue)
                || "reqVal1_2".equals(selectValue)
                || "reqVal1_2_3".equals(selectValue);
        }
    
        public boolean getShowVal2(){
          return "reqVal1_2".equals(selectValue)
              || "reqVal1_2_3".equals(selectValue);
        }
    
        public boolean getShowVal3(){
            return "reqVal1_2_3".equals(selectValue);
        }
    
        public void setRequiredSet(boolean requiredSet) {
            this.requiredSet = requiredSet;
        }
    
        public boolean isRequiredSet() {
            return requiredSet;
        }
    
    }
    Thank you
    Barry

    Nick Haralabidis wrote:
    Hello

    The behavior is as expected: you make a value of 1, the value 2 and 3 value required and you autoSubmit on the selectOneChoice. Thus, when you make a selection, value 1, 2 and 3 of the value value are tempted to submit because of the partialTrigger. But since they are required, the validation is triggered.

    No, the validation is thrown in a different phase. The selectOneChoice is immediate and his calls renderResponse ValueChangeListener then the validation phase is never executed. It would be the case if the 3 values were also immediate, but it is not so.

    Nick Haralabidis wrote:

    If you don't want the postings through the Select and always have value 1, 2 and 3 of the required value value, follow these steps:

    (1) remove all partialTriggers of the jsf page

    (2) linking the panelFormLayout to support bean as in:


    Binding = "#{pageFlowScope.testBean.panelMain}" > "

    (3) add a valueChangeListener to the selectOneChoice as in:


    value = "#{pageFlowScope.testBean.selectValue} '"
    autoSubmit = 'true' immediate = "true".
    valueChangeListener = "#{pageFlowScope.testBean.onSelectionChanged}" > "

    (4) in your valueChangeListener add a partialTarget in the Panel as in:

    {} public void onSelectionChanged (ValueChangeEvent valueChangeEvent)
    AdfFacesContext.getCurrentInstance () .addPartialTarget (this.panelMain);
    }

    I tested it and it works :)

    Yes, it's another way to do it.

    Kind regards

    ~ Simon

  • Messages of the Sierra and the problems of continuity iMessage

    I took these communities to try to resolve a problem which, for me, is as old as the first day iMessage became available for Mac.

    I can't emphasize how incredibly boring, it is completely out of sync how both are. The problems are always the same:

    (1) never are conversations in the issue of order/same on both devices. For example, for a conversation that has been exploited to iMessage on my iPhone, when I open my Mac, it appears in the notifications, like new. All the answers are there.

    (2) a conversation that has been deleted from the iPhone suddenly appears on the opening on my Mac... seriously?

    (3) the conversations that are deleted on my iPhone does not disappear in the Messages and vice versa.

    To sum it all, pretty much the case is that both apps, while they expected to work simultaneously with fluidity to do what they want when they want.

    This has been a problem since iMessage became available on Mac OS for the first time (think it was Mavericks). I've been waiting for Apple to fix this with each software update to make OSX or iOS. But guess what...?

    My Mac running OS Sierra and my iPhone 6 s more running iOS 10.0.1. Everything that could be activated in so that they can work together has been activated and triple checked. I would really like to know if anyone has a way to fix this or if there is other people are having the same problem.

    Hello

    An excellent explanation of exactly how iMessages works on iPhone and Mac.

    It does the same thing, if you add in an iPad or and iPod Touch.

    iMessages are pushed, the Treaty is called, for devices that have been associated with (by adding the Apple ID on an iPhone).

    This means that it is not as Mail where are read from the server and in the case of a POP account you can choose to let the "message" on the server if other devices can read.

    IMAP accounts will be synchronized as you say but POP will be more like the Messages app with iMessages.

    The iMessages which is addressed to you are marked by the number of devices is in the opportunity to see it.

    He pushes the devices until they respond (Accept) once this device has accepted it is removed from signage and only devices that did not have a chance on seeing.

    There is a time limit on how long the iMessages is pushed to a device (such that being away from your Mac turned off everything on vacation or phone that died or was out of range of the carrier)

    Once the device have the iMessages it is removed from the server.

    A simpler view is that the iMessages is "copied" and sent to each device and that each device can not see the other "versions" and that each "copy" is deleted from the server that happens on the device.

    The news to "read" your comments, you might see comes that of the device, it was intended to (i.e. addressing a number only the iPhone to another end may, so together, to send the reply 'read').

    Same thing with sent.  This is why you get a response, when he showed even "Delivered" as someone can answer from a connected device.

    This means that the 'Sync' is really only show on all devices and nothing do you on one device will be the effect of the other.

    It is not broken, even if this isn't what you think that told you about the device.

    You can tell them http://www.apple.com/feedback/messages.html

    20:31 Saturday; October 1, 2016

     iMac 2.5 Ghz i5 2011 (El Capitan)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro (Snow Leopard 10.6.8) 2 GB
     Mac OS X (10.6.8).
     iPhone and iPad (2)

  • The problem of mobile safari search engine

    If you set your iPhone like China location. The mobile safari will put like google.cn search engine. But Google has pull out of China.  If you are looking for something with google.cn. Google will give you a picture.  You must click on the image and go to the google.com.hk.

    The google.cn is no longer! We need google.com!

    Please edit the files:

    /Applications/MobileSafari.app/SearchEnginesFallback.plist

    TopLevelDomains CN = > COM

    Apple is not regularly monitor the discussions. These are mostly a user in discussions.

    Send feedback to Apple. They will not respond, but at least know that there is a problem or a suggestion for change. If enough people send feedback, it can get change / suggested the problem solved as soon as possible.

    Your comments

  • Lost a lot of contacts after ios 10 update, don't know what the problem is?

    After update of ios 10 I lost many of my contacts who have been saved. Went into settings, everything's fine, having a lot of problems doing my business, can you please say how the problem will be solved? Impossible to do a lot of my regular work. The problem must be solved urgently.

    Where exactly to save your contacts? Have they synced via iCloud?

Maybe you are looking for