Passing null value to a Date field in OPA
Hi,
We are using Determinations server of OPA.
I have created OPA web service proxy classes and using java client class for calling methods of OPA web service.
Webcenter calls OPA web service for validating business logic. There is a Date field in OPA which is not mandatory, if web service is called with date value, logic is working fine, else if we pass null value or ignore setting Date value all conclusion of the rule is becoming false.
for example :
If agreement exists, pass agreement expiry date.
Setting Input attributes if date is not null:
global.setAGREEMENTEXPDATE(new DateAttributeType());
global.getAGREEMENTEXPDATE().setDateVal(xmlGrogerianCalendar);
if there is no agreement, pass null for agreement expiry date
we are not setting Date attribute and sending request to the server
Is it need to pass Attribute if it is not mandatory and has no value?
If yes, how to pass null value?
Please help on this.
Thanks,
Sri
All optional parameters needs to be send to the OPA Determination Server, if value is not known then that attribute should be set to the "Uncertain" value as shown below.
global.setAGREEMENTNUMBER(new TextAttributeType());
global.getAGREEMENTNUMBER().setUncertainVal(new UncertainValue());
Thanks,
Sri
Similar Messages
-
Passing multiple values for a single field in URL to call sap Transaction
Hi All,
I need to pass multiple values for a single field to SAP transaction .
means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
Let me know pls.
Regards,
Sirisha.R.S.Hi Satyajit,
I need to call a transaction with multiple values which gives me the report based on those values.
So I need to pass multiple values for a single parameter.
I hope u got it.
Regards,
Sirisha.R.S. -
Passing null values to the attributes of a CAF operation
Hi,
In CAF I am trying to fetch data through Web Service. For this I need to pass null value for the attributes of the operation.If I set the value to null it gives me missing parameter as the error.
Can anyone tell me how to pass null values to the attributes of a CAF operation?Hi Xavier,
Declare the two variables of type if_wd_contex_node for e.g. lv_node and if_wd_context_element for e.g. lv_element. Now in the first one lets say lv_node get the refrence of dynamically created node like:
lv_node = wd_context->get_child_node('<node name>').
Then get the refrence of element like:
lv_element = lv_node->get_element( ). (You can also pass index as parameter check the method API)
then just set the value of attribute you want like:
lv_element->set_attribute( exporting name = '<attribute name>' value = '<your value>').
Regards,
Neha -
Passing null value to stored procedure
I am calling a stored procedure from ssis package. In my stored procedure I have parameters which is set to default value of null i.e if nothing is passed I need to assume the value of parameter to be null.
In ssis package I created a variable its a datetime variable but when I dont pass anything or blank
it automatically gets some date but instead I want it to pass NUll.
Thank You for the helpHi Rama,
SSIS evaluates null value in a date type variable as “12/30/1899 12:00:00 AM” by default. As long as the date type of the variable is date, it always gives “12/30/1899 12:00:00 AM” instead of null. This behavior still exists in SSIS 2012. So, I am afraid
that you have to modify your stored procedure to yield to this by design behavior of SSIS.
If you have concerns, I would suggest you submitting a wish at https://connect.microsoft.com/sql.
Connect site is a connection point between you and Microsoft, and ultimately the larger community. Your feedback enables Microsoft to make software and services the best that they can be, and you can learn about and contribute to exciting projects.
Regards,
Mike Yin
TechNet Community Support -
How to retrieve the procedure value and pass the value to a form field
How to retrieve the procedure value and pass the value to a form field?
Set property for the field and the value is the actual procedure/function.
Cheers -
How do I pass a value between two selectOneChoice fields
I have two selectOneChoice (LOV fields) on the same JSF page (trinidad form). How do I pass the value from the first field to the second one?
AutoSubmit=true;PartialTriggers doesn't work.
I used SetActionListener to copy the value from the first LOV to a pageflow variable ( #{pageFlowScope.x} ) but that didn't work either. I wasn't sure how to reference it in the second LOV ...
thanks
John<af:selectonechoice value="#{bindings.select1.inputValue}" id="select1" autoSubmit="true">
<af:setPropertyListener from="#{row}"
to="#{pageFlowScope.detail}"
type="valueChange"/>
</af:selectonechoice>
<af:selectonechoice value="#{pageFloScope.detail}" id="select2" partialTriggers="select1"/>
The above code is a rough example. you can do the same using the valuechangelistener for the first lov and set the value for the second one..
you can refer this
How to set value for selectOneChoice -
Null Values from a Data Source
This is more of an implementation question than a
troubleshooting question. Also, since I've been unable to find any
documentation on this I was wondering if anyone has come across
this behavior or found a bug with it.
Yesterday I was working on an application to explore some
proof of concept aspects of Flex for an application I'm developing.
I started running into a problem with Flex Data Services throwing
back an 'Unknown Property: "clientaddress1"' error whenever I tried
to update data. It seemed that whenever I tried to update a record
in the database it would thrown the Unknown Property error. I spent
a good chunk of the day trying to figure out what was causing this
and finally gave up and called it a day.
This morning I was reassessing what the problem was and
trying to find the differences between my database and my code and
I stumbled upon the fact that I could add no records and modify
them without a problem, however if I tried to access an existing
record and update it I'd get the Unknown Property error.
I start analyzing the database and found that I'd configured
the database to use null values for empty values and the records
that I created with the database had null values, however, any of
the values inserted from Flex were inserted as blank values. As
matching my action script class as clientaddress1 = ""; So, upon
further testing I fould that Flex was not processing the null
values correctly, so that when it came back and rightly generated a
Conflict Error...and then called AcceptServer() it was unable to
find the clientaddress1 property of the class.
Also, if any of the properties in the database are null it
throws the same error. Basically it seems to have invalidated the
object just because one value was null. So if all of my values from
the DB are set to something and only one field is set to null it's
still throwing the error on the first alphabetical item of the
properties.
I can resolve the problem by not using null values in the
database, but...what sort of effect would this have on someone
working with a large legacy database that extensively uses nulls
for undefined values?
Also, if a Flex guru could explain the reasoning for this
happening I would greatly appreciate it!
Best regards,
Chris MaloneyI realize that I didn't clarify that I am using ColdFusion
for getting the data. This class was generated by the Create CFC
wizard in Flex Builder.
package com.generated
[Managed]
[RemoteClass(alias="components.generated.clients.Clients")]
public class Clients
public var clientid:Number = 0;
public var clientfirstname:String = "";
public var clientlastname:String = "";
public var clientaddress1:String = "";
public var clientaddress2:String = "";
public var clientcity:String = "";
public var clientstate:String = "";
public var clientzip:String = "";
public var clientphone:String = "";
public var clientemail:String = "";
public function Clients()
} -
Hi,
we have an issue in our replicated environment using Streams.
We have a replicated table using the following index:
UK_S01_TEXT_FORMAT_TBL01 SOGID
UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_ID
UK_S01_TEXT_FORMAT_TBL01 INDEX_LANGUAGE_LABEL
UK_S01_TEXT_FORMAT_TBL01 INDEX_TEXT_FORMAT_COUNTER
UK_S01_TEXT_FORMAT_TBL01 INDEX_PROVIDER_ID
UK_S01_TEXT_FORMAT_TBL01 INDEX_TARIFF_PLAN_COSP_ID
with field INDEX_PROVIDER_ID allowing NULL values. Actually we insert empty strings in there, but as far as I understand Oracle will convert it sliently in a NULL value, which is fine to our application.
When we apply a change on that table (either update or delete) we get errors at streams level and the transaction is not propagated.
Local Transaction ID: 6.28.11170
Source Commit SCN: 25397175
Source Commit Time: Dec-03-2012 12:21:30
Error in Message: 1
Error Message: ORA-26787: The row with key ("INDEX_LANGUAGE_LABEL", "INDEX_PROVIDER_ID", "INDEX_TARIFF_PLAN_COSP_ID", "INDEX_TEXT_FORMAT_COUNTER", "INDEX_TEXT_FORMAT_ID", "SOGID") = (ITALIAN, , , 0, MIKE, 124) does not exist in table
SMS.S01_TEXT_FORMAT_TBL
ORA-01403: no data found
message: 1
TableName: S01_TEXT_FORMAT_TBL
Operation Type: DELETE
_____ Old Data _____
SOID : 1010000008
SOGID : 124
INDEX_TEXT_FORMAT_ID : MIKE
INDEX_LANGUAGE_LABEL : ITALIAN
INDEX_TEXT_FORMAT_COUNTER : 0
TEXT_FORMAT : Hai raggiunto i 100MB di traffico incluso nello scatto
APPLICA_PERIOD_CRI_ID :
INDEX_TARIFF_PLAN_COSP_ID :
INDEX_PROVIDER_ID :
If I force the set of primary keys to be only the NOT NULL fields, I can successfully apply the error, but since we may have them storing both NULL and NOT NULL values, this is not a solution.
I'm wondering why the DB on one hand converts the empty string in a NULL while inserting, but it looks the Apply process onStandby is not able to do the same when looking for the record before applying the transaction.
Thanks in advance!
Cheers,
MikeIts showing all objects the user has permission to see- why does that need to be restricted?
-
How can i pass NULL value in Store Procedure?
Hi guys,
I am calling one store procedure from MS SQL Server 200, i had create the follow layout:
But i need pass to MSQL SEVER the CPF = NULL, when i execute the procedre the CPF send empty value (not null).
I already changed Communication Channel parammeter "Interpretation of Empty String Values" to "Null Value" value.
But the interface always send empty string instead of null.
How can anybody help me, please?
Edited by: João Noberto dos Santos Junior on Jun 24, 2009 5:00 PMHi,
To achieve this through "Interpretation of Empty String Value" in the cc, you will have to implement a patch which is sent to you by SAP when an OSS is raised. By default its not available, i mean you can configure it but it will actually not work.
As a temporary solution you can map your element with a constant/mapwithdefault field with value mentioned as NULL.
Regards,
Anshul -
How do I set a NULL value for the parameter field
Hi
I've another question. I'm going to set single values for parameter fields.
// e.g. set today for StartDate parameter field
fc.setCurrentValue("", "StartDate", new Date());
It should be possible to set a NULL value for date parameter fields.
fc.setCurrentValue("", "StartDate", (Date)null);
But this do not work. How do I set a NULL value correctly?
Thank you in advance.
Best regards,
ThomasFirst question - is it a stored procedure parameter?
You can't set a regular parameter field value to a null value.
There was an issue with old version of the JRC, where it was allowing null to go through, but had unexpected behavior at times.
Sincerely,
Ted Ueda -
How to pass NULL value in SSRS
Hi All,
I have a parameter called Division,Region and State.While loading these parameter I am replacing NULL value as "NO Division","NO Region" and "NO State".Note all parameters are multi valued.
Now In my dataset query If I put the condition like (division=@Division or Division is null) and (region=@region or Region is null) and (state=@State
or State is null).
In this scenario if I want to exclude null values need only specific Division which is not allowing me to do that with above condition.If I need all it works fine but not with specifice division,region and sate.
Any thought on this.
thanks
Chandan
Thanks ChandanThats because of or conditions
As per your explanation since you replace NULL value as No division etc what you need to do is just this
(division=@Division or @Division = 'All') and (region=@region or @Region = 'All') and (state=@State or @State = 'All').
this will make sure it will bring all values including NULLs when you pass All and will only give you specific division/region etc records when you pass a specific value.
To get NULL valued records alone you need to pass value as No Division,No region etc
Also you should change dataset query for parameter combo to make prompt as No Division etc for NULL values so that it can be selected as an option inside multi valued combo box to see NULL valued records
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to eliminate null values from the data?
This query displays data for a project with approval & submission dates...I'm trying to eliminate records that have null values in Approval & submission date columns at the same time. But rather keep the records that have atleast one submission date or approval date?
SELECT distinct QP.QIP_id,
Max(decode( Upper(QP.Status_CD), Upper('Approved') , Effective_date, null )) as Approved_date,
Max( decode( Upper(QP.Status_CD), Upper('Submitted') , Effective_date, null ) ) as Submitted_date
FROM Llp_Sys.Project_Status QP
WHERE SYSDATE >= qp.effective_date
AND (qp.terminated_date IS NULL OR SYSDATE < qp.terminated_date)
GROUP by QP.QIP_ID,Qp.Status_CD
order by QP.QIP_IDfrancislazaro wrote:
This query displays data for a project with approval & submission dates...I'm trying to eliminate records that have null values in Approval & submission date columns at the same time. But rather keep the records that have atleast one submission date or approval date?
SELECT distinct QP.QIP_id,
Max(decode( Upper(QP.Status_CD), Upper('Approved') , Effective_date, null )) as Approved_date,
Max( decode( Upper(QP.Status_CD), Upper('Submitted') , Effective_date, null ) ) as Submitted_date
FROM Llp_Sys.Project_Status QP
WHERE SYSDATE >= qp.effective_date
AND (qp.terminated_date IS NULL OR SYSDATE < qp.terminated_date)
GROUP by QP.QIP_ID,Qp.Status_CD
order by QP.QIP_ID
based on my assumption, will the following not work ? if so then post some sample data and expected output (simplify as much as possible)
SELECT *
FROM (SELECT DISTINCT qp.qip_id,
MAX(DECODE(UPPER(qp.status_cd),
UPPER('Approved'), effective_date,
NULL
)) AS approved_date,
MAX(DECODE(UPPER(qp.status_cd),
UPPER('Submitted'), effective_date,
NULL
)) AS submitted_date
FROM llp_sys.project_status qp
WHERE SYSDATE >= qp.effective_date
AND ( qp.terminated_date IS NULL
OR SYSDATE < qp.terminated_date
GROUP BY qp.qip_id, qp.status_cd
ORDER BY qp.qip_id)
WHERE approved_date IS NOT NULL OR submitted_date IS NOT NULL;Edited by: Clearance 6`- 8`` on Jul 9, 2010 12:46 PM -
Passing a value to a Parameter Field From a VB Form
Post Author: as1971
CA Forum: General
Hello everyone
I'm using Visual Basic 6.0 and Crystal Report 9.0
I built a report using Crystal Report and named it Player_Statement.rpt. I then included it to my VB project and named it Player_Statement.Dsr
In this report I have a Parameter Field called P_Player_ID which I'm using in Record Selection Formula.
I'm using the following code to pass a value to the parameter:
Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue CLng(cmbPlayerNB.BoundText)
When I execute the application I get the error message "The value or range you are adding has already existed" at the last line of code (Where I'm assigning the parameter a value)
Could anybody help me pleasePost Author: VinoTinto
CA Forum: General
Dim Report As CRAXDRT.ReportSet Report = New Player_StatementReport.GetItemByName("P_Player_ID").ClearCurrentValueAndRange Report.ParameterFields.GetItemByName("P_Player_ID").AddCurrentValue = CLng(cmbPlayerNB.Boundtext) -
Average value for a Date Field in an OO Alv Grid.
Hi Abapers.
I've been searching for some info about averages in OO Alv grid lists but cannot find an answer to what I'm really need. The question is that, for getting an average, a 'C' value must be set in the field DO_SUM of the fieldcatalog structure for a field.
Now, the problem is that I need the average of a date field (in 'normal' date format). I've tried it several times and read a lot of things but cannot find a real answer: Could it be done the average of a date field (e.g. for dates 01.05.2009, 02.05.2009 and 03.05.2009 the average is 02.05.2009).
Best Regards.Hi,
It will come along with the standard tool bar.For number fields, you can see it(Mean). -
How to show NULL value when import data into excel
when retrieve data from sql server and import these data into excel.
data source is like : select a ,b c from tab
if a,b,c is nullable. when import these NULL value into excel, it becomes blank value, there is nothing in the excel cell.
if i don't want to use select isnull(a,'NULL') as a to convert the values.
what's else can i do to make it? is there a way to prevent changing the NULL to blank ?
or is there an easy solution to replace all the blank value to NULL in the excel ?help me ~
Maybe you are looking for
-
Hi, I've installed Oracle RAC (10g) on Centos 5.3 But after restart system, I can't mount ASM disk on second instance. During mounting I have such errors: ORA-15032: not all alterations performed ORA-15063: ASM discovered an insufficient number of di
-
Tracks out of order and other problems
For one of my albums, the tracks are all out of order. I have edited the information, and the track numbers are proper, but it will not order them correctly. I have even removed the files from Itunes and then added them again--still they do not go in
-
Will I get my iPhone replaced for yellow tinting problem
Will I get my iPhone 4S replaced for yellow tinting problem, it's hardly 6 months old phone and this problem is from day one. Screen is not whitish it's yellowish.
-
hi everyone! it seems to be missing checkboxes in the SDK since we landed on Mars!!! have any idea about solving this? I tried mixed combinations on Preferences/Appearance w/o success in my particular case, I'm running Eclipse Mars (4.5) on Ubuntu 14
-
Ctxsrv on a different server then the database?
Hi, I have a table with a column containing a full file path to documents stored out on the server. This column has a text index on it with datastore=BFILE Now the customer wants to move the database to a dedicated db- server, and the problem is that