Pass NULL to a Date field in a takeover bid

Hello

We use a server of determinations of the OPA.
I have created classes of service proxy web OPA and using the java client class to call the methods of the web service operation.



WebCenter called OPA web service to validate business logic. There is a Date field in the OPA, which is not mandatory, if the web service is called with the value date, logical works fine, otherwise if we pass the value null or ignore development of Date all the conclusion of rule becomes false.

for example:
If there is agreement, pass the contract expiration date.
Definition of the attributes of entry if the date is not null:
global.setAGREEMENTEXPDATE (new DateAttributeType());
global.getAGREEMENTEXPDATE () .setDateVal (xmlGrogerianCalendar);


If there is no agreement, pass NULL for a contract expiry date
We are not setting the Date attribute and sends the request to the server


Is it necessary to attribute if it is not required and has no value?
If so, how to pass a value zero?

Please help on this.

Thank you
Sri

All optional parameters must be sent to the server for the determination of the OPA, if the value is not known then this attribute must be the value "Uncertain" as shown below.
global.setAGREEMENTNUMBER (new TextAttributeType());
global.getAGREEMENTNUMBER () .setUncertainVal (new UncertainValue());

Thank you
Sri

Tags: Oracle Applications

Similar Questions

  • How to replace a "null" in the date field to zero

    Hi guys,.

    I'm a lil stuck with this problem.
    I have a requirement where I need to replace a null value in the date field to zero.
    For example,.

    Cancel_date Cancel_date
    20120301 20120301
    20120908 20120908
    value null-> > > > > 0


    Thank you
    Anita

    Hi, Anita,.

    0 is not a DATE, so you cannot view it in a DATE column.
    There is no '0' display problem in a VARCHAR2 column, so use TO_CHAR to display dates, even if the default format, it's exactly what you want.

    SELECT     NVL ( TO_CHAR (date_column, 'YYYYMMDD')
             , '0'             -- or '       0', if you want it right-justified
             )          AS date_string
    FROM     table_x
    ;
    

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).
    See the FAQ forum {message identifier: = 9360002}

  • Date field set to null

    Hi all

    I have a procedure I need the value of the field date null in this procedure. I tried several ways, but it does not have null in the date field. Please help me.


    The procedure looks like:

    TEST. PROC (USER_ID, Date);

    I tried the TEST. PROC ("12345", NULL);
    TEST. PROC ('12345', 'NULL');
    TEST. PROC ('12345', ");
    but it did not work.
    By the way the field date has a value and must be null through the running procedure.

    Thank you

    Stéphane

    Take a look at this fnd_user_pkg.updateuser - Date end remove users

    Kind regards

  • Update for a null date field

    Hello world

    I have a web page called quality which has several records on it with several people connected to it at the same time, update. I'm trying to update a date field and it works, but then if I try to erase it and update, it is not update it a Null value. When I put in the code to try to update as a null in the update request, he puts a date of 01/01/00 in the field for some reason any and also updates the other fields empty to this day. I have something to explain the drop Downs nulls in my other fields. The code I used for those who was like that in the update query:

    Set Approval_Initials = < cfqueryparam cfsqltype = "CF_SQL_VARCHAR" value = "#Evaluate('form.) (PDF_Creation_Doc_Control_Approval_Initials #id #') # ' null = "len (trim (Evaluate('form.) #NOT". ' (PDF_Creation_Doc_Control_Approval_Initials #id #'))) # "/ >

    I need to use something like this again for the field Date, except with the tag CF_SQL_DATE? Here's what I have for the field Date right now:

    < Cfif DisplayQualityDate.recordcount >

    < cfif isDefined "(form. ("Quality_Date #id # ') and evaluate"(form. ("Quality_Date #id # ') NEQ" ">" ".

    < cfquery Datasource = '#application. DataSource #">"

    Approval of the update

    Set Approval_Date = ' #Evaluate ("form. (Quality_Date #id #») #

    WHERE APV_ItemID = #id # AND Document_Type = 'quality '.

    < / cfquery >

    < / cfif >

    < / cfif >

    Is this enough information? What does the CF_SQL_DATE do exactly? Any help would be greatly appreciated.


    Andy

    Andy,

    A couple of things to think about:

    1. Are the date columns in your database that is configured to accept null values?
    2. The database recognizes dates into the format that your users do not penetrate into the (i.e.: "d/m/yy")?

    You should be able to use similar logic to null cfqueryparam = on your form field data.  CF_SQL_DATE will tell your database the value passed is a date, and not another type of data.

    -Carl V.

  • Need all the data in the case where if I pass null

    Oracle 10 g version

    Hi gurus

    I appreciate if someone help out me.

    Examples of data

    as with a reference
    (
    Select 'AAA' crt_file, 'A1' scode of union double all the
    Select 'AAA' crt_file, 'A2' from dual union all
    Select "AAA" crt_file, null of union double all the
    Select 'BBB' crt_file, 'A1' scode of union double all the
    Select 'BBB' crt_file, 'A2' from dual union all
    Select 'BBB' crt_file, the double null

    )
    Select * reference
    where crt_file = "AAA".
    and nvl (scode, 'x') = nvl (& s_cd, 'x')
    ;

    Rule result

    I need to extract the result as in & s_cd and it works very well.

    but in case where if I put a value zero in & s_cd my query should return all data related to "AAA", something like below:

    Result if I pass NULL to & s_cd that then it shows all the results

    CRT_FILE, SCODE

    AAA A1

    AAA A2

    AAA

    Concerning

    Mitt

    as with a reference

    (

    Select 'AAA' crt_file, 'A1' scode of union double all the

    Select 'AAA' crt_file, 'A2' from dual union all

    Select "AAA" crt_file, null of union double all the

    Select 'BBB' crt_file, 'A1' scode of union double all the

    Select 'BBB' crt_file, 'A2' from dual union all

    Select 'BBB' crt_file, the double null

    )

    Select * reference

    where crt_file = "AAA".

    and (scode = & s_cd and & s_cd is null)

  • Try to update tcDataSet date null date field.

    I'm trying to set a field to a null user-defined. I am able to update the field with a valid date but cannot be set to null. Here is an example of the code that I use.

    ...
    HashMap.put ("usr_udf_new_last_name_effdt", "1970-01-01 00:00:00.0");
    ...
    tcuseroperationsintf.updateUser (new tcMetaDataSet (usrDataSet, getDataBase()), hashmap).

    The problem is when I try to update the date that follows.

    ...
    HashMap.put ("usr_udf_new_last_name_effdt", null);
    ...
    tcuseroperationsintf.updateUser (new tcMetaDataSet (usrDataSet, getDataBase()), hashmap).

    When I try this I get an exception. How do you update a date field to a null with tcDataSet?

    Hello

    You cannot update the daye with null field. You must put a fictitious date.

    Concerning
    Nitesh

  • Pupulating of the date field to the top of the opening of the document

    Hello

    Have a 6 page doc.  some pages contain date, but with different field names field.  On the first page I want to check if the date is null then fill it with the current date, and then copy the date populated to other pages... If the document has been record and reopened the latter I want the first populated date to be kept because it was populated for the first time.

    First date field 'TodaysDate' is open for date fields to update on other pages are read-only.

    Date field named first page: TodaysDate.

    and the following code is executed as soon as the doc. under the tool/JavaScript/Document JavaScripts:

    function populate_date (doc)

    {

    var f = this.getField ("TodaysDate");

    If (! f.value) f.value = util.printd ("d/m/yyyy", new Date());

    }

    populate_date (this); call my function

    Problem I do not get filled at all... and it's the screenshot that I receive via Consul:

    no idea what could be the problem?

    Kind regards

    Jeff P.

    Assuming that the TodaysDate field exists, you encounter a timing problem.

    At the time, that the function is executed, the fields have not yet established. This is quite common with MultiPage forms.

    Therefore, you can define the function in a script at the level of the document, but you'll call in the event PageOpen of the page on which the document opens. You can protect it, so that it runs only once.

    On the function, I have my doubts that it works, because test you if the value of the field is. It is always the case. Instead of test if the value of the field is equal to the field's defaultValue. The function would then look like this:

    function populateDate()

    {

    If (this.getField("TodaysDate").value is {this.getField("TodaysDate").defaultValue})

    this.getField("TodaysDate").value = util.printd ("dd/mm/yyyy", new Date();)

    }

    }

    As stated, it is not even necessary to set the function, simply run the code in the event pageOpen.

    I hope this can help.

  • Pass Null to the wrong phone numbers

    Hi, I'm going to pull the phone number of source database, I have the following anomalies: 0000000 1111111111 1111111111111 1231111111 661111111111 if we can't clean up the data in the source database, how can I pass null to target for phone numbers? Thanks, Kiran

    Hello

    Use a CASE statement.

    If there is some specific values you want to deal with the NULL value, then you can do something like:

    SELECT...

    CASE

    WHEN phone_num IN ('0000000'

    '1111111111'

    '1111111111111'

    '1231111111'

    '661111111111'

    )

    THEN NULL

    Of ANOTHER phone_num

    END AS phone_num

    ...

    If there are templates you want to check (for example, all 0, no matter how long), you can use LIKE, REGEXP_LIKE, LTRIM or other functions in the WHEN clauses.

    I hope that answers your question.

    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • Plugin SOAP date fields

    Hello

    I have a SOAP service that fields of included optional type XS: DateTime. They are generated in a new workflow created from the SOAP operation, but the plugin does not leave as "undefined". "the argument date must be a date and a non null.

    The problem is that the service uses the same input type for all CRUD operations, but I can't call the operation to update with for example the createdDate value. It seems that as a work around I can remove the field from the workflow entries, but does perform a work around to fix an empty value?

    We recently had a similar problem recently reported

    The fix will be available at the next plugin relese 1.0.4

    As workaround generated workflows can be modified to not set date field if there is no value provided.

    1. for each field type DateType locate lines that resemble the following:

    request.setInParameter("model.instance.ClosedTime", System.formatDate(model_D_instance_D_ParameterXXXName, "yyyy-MM-dd'T'HH:mm:ssZ"));
      request.addInParameterAttribute("model.instance.ClosedTime", "mandatory", model_D_instance_D_ParameterXXXName_OP_mandatory_CP_);
      request.addInParameterAttribute("model.instance.ClosedTime", "readonly", model_D_instance_D_ParameterXXXName_OP_readonly_CP_);
      request.addInParameterAttribute("model.instance.ClosedTime", "type", model_D_instance_D_ParameterXXXName_OP_type_CP_);
    

    First line is the value of the actual parameter that the 3 following lines are associated with the same parameter attributes.

    1.1 change these lines will be performed only if the value is not provided. After modification, the result should look like:

    if (model_D_instance_D_ParameterXXXName!=null)
        request.setInParameter("model.instance.ClosedTime", System.formatDate(model_D_instance_D_ParameterXXXName, "yyyy-MM-dd'T'HH:mm:ssZ"));
        request.addInParameterAttribute("model.instance.ClosedTime", "mandatory", model_D_instance_D_ParameterXXXName_OP_mandatory_CP_);
        request.addInParameterAttribute("model.instance.ClosedTime", "readonly", model_D_instance_D_ParameterXXXName_OP_readonly_CP_);
        request.addInParameterAttribute("model.instance.ClosedTime", "type", model_D_instance_D_ParameterXXXName_OP_type_CP_);
      }
    

    In addition some SOAP services require a date to be in ISO8601 format

    You can overcome this problem with the following changes:

    2.2 format date ISO8601

    Add the following lines at the beginning of the generated script.

    function convertToIso8601 (dateRfc822) {
       return dateRfc822.substr(0, dateRfc822.length-2 ) + ":" + dateRfc822.substr(dateRfc822.length-2);
      }
    

    Change of:

    request.setInParameter("model.instance.ClosedTime", System.formatDate(model_D_instance_D_ParameterXXXName, "yyyy-MM-dd'T'HH:mm:ssZ"));
    

    TO:

    request.setInParameter("model.instance.ClosedTime", convertToIso8601(System.formatDate(model_D_instance_D_ParameterXXXName, "yyyy-MM-dd'T'HH:mm:ssZ")));
    

    This is necessary in case there are attributes with fixed values

    in this case W/F entries can be removed and the generated code can be changed to directly provide the fixed value.

    In this case, the attribute is 'type' and its fixed value is "'DateType ':

    2.3 the value for the attribute 'type' set.

    Of

        request.addInParameterAttribute("model.instance.ClosedTime", "type", model_D_instance_D_ParameterXXXName_OP_type_CP_);
    

    TO

      request.addInParameterAttribute("model.instance.ClosedTime", "type", "DateType");
    
  • Studio EQL erased when pointing to a different data field

    Hello

    I have this scenario with regard to the studio. The studio application has been set initially at DataDomain1. Then I put it in DataDomain2. Yet once, when I put the return of DataDomain1 none of the reports work!... It seems that all the EQL is erased and the configuration of the components is not retained. May I know the reason for this behavior. Is there a cure for keep an underlying the field of data even when application configuration settings is changed to a different area of data? Help you enjoy.

    Thank you

    Anusha

    That's exactly my point.  If the two data areas are totally different from each other, where is the value in preserving the configuration?  All components would not need to reconfigure?

    For example, let's say I have a configured component of guided Navigation to view the 5 groups of attributes.  Then, I want to pass the application that contains this component to point to a completely different data domain that does not have one of these groups of attributes (because, as you say, the two data areas are totally different).  What is the expected behavior?  I now have all of this configuration pointing to 5 groups of attributes that do not exist.  The configuration is totally disabled.

    Same would go for a chart bound to a view (example: 'Sales') with a bunch of parameters related to it based on some attributes.  If the data areas are totally different (as you said), the view would exist even in this new area of data?  Probably not, but let's say it was the case.  Are the same attributes?  They all do they exist?  What are their types?  By saying that the two data fields are totally different, you seem to indicate that the attributes would be totally different.  So even if the table had retained its configuration, the configuration would be totally useless and not valid?

    Now, there might be a portlet out there (say, a bar of Metrics) where the configuration is not valid but "fixable" (maybe?).  However, for the most part, you're views of design and configuration of the components for a data set.  When the underlying data is completely changed, the default behavior should be to keep around invalid configuration or slate?

    Note that if you want to change the data source connections in a given application (for example, I was bound to a Data Source that was limited to a few 'Sales' and I also wanted to include "Customers"), this feature is present in Application settings > connections to Data Source (with an option to keep the configuration).  However, I don't think that's what you're asking, and not what is intended by changing in the world of the field of data for an application.

    hope that helps.

    Patrick

  • DATE field showing that the 00/00/0

    My date field of OBIEE is showing that the 00/00/0 for data null. Any ideas on how to get it to display a white?

    Just checked that the RPD data type is in fact the DATE not DATETIME.

    Don't you worry now. I used the evaluate function to call to_char in Oracle and works quite well.

    I just to chalk to the top yet another disappointing encounter with OBIEE.

  • DECODE() using Insert the DATE field

    I am trying to use the DECODE function to test for NULL before you insert a DATE field. However, it seems only to insert the DATE, with a time of 'default' from 12:00 - it is not inserted properly the time.

    Basically, I need to test if Date1 is NULL. If not I need to concatenate the Date1 DATENT with TIME of Date2 to get a complete date/time... and then insert this new value.

    Generic example:

    -----

    CREATE TABLE DATETEST (TestID NUMBER (1), DATE TestDate);

    -----


    DECLARE
    DATE of v_Date1;
    DATE of v_Date2;


    BEGIN

    v_Date1: = TO_DATE (1 Jan 11 05:53:12 ',' DD-MON-YY hh);
    v_Date2: = TO_DATE (8 February 11 02:18:31 ',' DD-MON-YY hh);

    INSERT IN DATETEST (TestID, TestDate) VALUES ('1', DECODE (v_Date1, NULL, NULL, TO_DATE (To_Char (v_Date1, 'DD-MON-YY') |))) ' ' || To_char(v_Date2, 'HH:mi:SS'), 'DD-MON-YY HH')));

    INSERT IN DATETEST (TestID, TestDate) VALUES ('2', TO_DATE (To_Char (v_Date1, 'DD-MON-YY') |)) ' ' || To_char(v_Date2, 'HH:mi:SS'), 'DD-MON-YY HH'));

    END;

    -----

    SELECT TestID, TO_CHAR (TestDate, ' DD-MON-YY hh) from DATETEST;

    -----


    The following example performs two inserts. With the DECODE function and the other without. One without inserts the time correctly. Can someone tell me why with the DECODE function do? I know I can use a simple if/then to check if the date is null above and put the time in a variable, but since my real scenario is in a lot of other things, I'm trying to keep it as simple as possible.

    Published by: BoredBillJ on July 14, 2011 06:39
    INSERT
      INTO DATETEST(
                    TestID,
                    TestDate
                   )
      VALUES(
             1,
             TRUNC(v_Date1) + (v_Date2 - TRUNC(v_Date2))
            )
    /
    

    SY.

  • Date field - allows any string?

    I use a date and time standard on LC form field, data format = date.  However, it allows users to enter any string and am need it being only date.  I'll put a schema validation, but before adjustment, want to be sure everything first, is - it normal, that a date field allows any string type to be entered manually (they used 30 September 2014 as their answer, and when I imported the answer in Access, of course, it is not passed on the side of the access of gathering in a date field).

    One thing I noticed, is that you must put your cursor in the date fields before the datePicker drop-down menu will appear.  Is there a future plan to have the spectacle of the down arrow even if there is no cursor in the field?  Just a request for 'improvement', as someone can not notice that and keep typing.  I had assumed wrongly a date field would only accept the date in the format data, then by way of solution, put validation schemas, but it has been the hope of a better understanding of this area for the future.  Thank you!

    Post edited by: sparrowce Information - when I test validation, have put all the necessary model date, in tests, it will give the error message if I get a string, and then the field always accepts the string.  I need to know how to correctly validate the date field, thank you!

    Hi, this is the standard behavior and is the same for a decimal field when you add a format of edition as num {$zzzz9.99} you can type what you want.  So, you'll need validate the value yourself.  If the value entered corresponds to the model to edit then it will be converted to the format YYYY-MM-DD in-house, then the invalid value will be copied as it through.  This means that as long as your display template is YYYY-MM-DD an invalid date will be one who possesses a formattedValue == rawValue.  You may need to change multiple formats as well allow different formats to enter.

    These messages my help;

    http://cookbooks.Adobe.com/post_An_alternative_Date_Picker_for_LiveCycle_Designer-18455.ht ml

    http://cookbooks.Adobe.com/post_Date_handling_in_Livecycle_Designer_ES_forms-19697.html

    Concerning

    Bruce

  • Date field 1

    I'm working on a time sheet where I the employee to enter the start date of the period of salary ("PeriodStart") and then in other areas take that date and automaticall adds a day to date. I tried everything I could find online, but have not been able to make it work.

    So, basically, I want only the fields that perform: PeriodStart 1, PeriodStart + 2, + 3 PeriodStart, and so on.

    Any help would be greatly appreciated!

    Thank you!

    Here is a function you can add to a JavaScript script at the level of the document and call it in the case of calculating calculated fields:

    function date_add_days (, num_days) {}

    Get the string date of data field

    var d, v;

    var f = getField (f_name);

    If {(f)

    v = f.valueAsString;

    } else {}

    Event.Value = "";

    return;

    }

    Convert string from date to date

    d = util.scand ("mm/dd/yyyy", v);

    Add the specified number of days

    d.setDate (d.getDate () + num_days);

    Fill in this field with the result

    If {(v)

    Event.Value = util.printd ("mm/dd/yyyy", d);

    } else {}

    Event.Value = "";

    }

    }

    Call it like this in the case of calculated fields:

    Add a day to the date of entry in the PeriodStart field

    date_add_days ("PeriodStart", 1);

    The number you pass is the number of days that you want to add.

  • Add 180 days for a new date field

    I have a form where we want users to enter/select a date into a date/time field and have another date automatically calculate the entries of 180 days after the date - end date.  I'm new to FormCalc and I was wondering if anyone had a simple code to solve this problem?

    The output of the field event date, you can do this:

    var beginDate = Date2Num($,"YYYY-MM-DD")

    endDateField = Num2Date (beginDate + 180, "YYYY-MM-DD")

    Make the endDateField a text field, not a date field - you specify the date format in the Num2Date() code (I like 'YYYY-MM-DD', but you can make different variants).

    You'll want to implement models of display, editing and Validation on the date field so that you get a suitable date. The view model is the appearance of the date on the screen, the editing model for how people can enter the data (you can have more than on Edit pattern to allow some flexibility) and the date must pass the Validation model to be valid. It's a good idea to specify the date format in the caption for field and a ToolTip for form fill know how enter the date properly if they do not use the popup calendar.

Maybe you are looking for

  • Re: Satellite P100 - 10 p support 500 GB HDD?

    Helloone of my friends has this laptop and wants to know if this laptop take the hard drives of 500 GB Thanks in advance

  • Problem acer failed flash bios tc 605

    I flashed my Acer TC 605 within Windows 10.  I think I used the version correct non-Linux.  Computer is going to restart and now, is NOT through the post OFFICE, but made just 1 long beep and then nothing.  I have seen many discsussion everywhere abo

  • Clipboard stopped in XP Home, please help!

    Hello The Clipboard has suddenly stopped working. I can not copy & paste from Microsoft Office(Word, Excel, etc.). Advice would be appreciated!

  • Wireless connection keeps going to "limited connectivity".

    I use Windows Vista and my laptop keeps going into "limited connectivity" and can only be fixed by restarting the laptop. I tried to disable TCP/IPv6, but only helped for a while and has never really solved the problem completely. Now, he's going to

  • Headphones without microphone... Using the internal one?

    The phone redirects the entries and exits to 3.5 mm when using a set of foot of headphones that can be a problem when you answer a call from standerd helmet obviosly don't have a built-in microphone. Y at - it an app (or plans to be implemented in th