If Statement Multiple Conditions
Using LiveCycle, FormCalc or JavaScript.
I am trying to create an if statement with multiple conditions.
a Sum field calculates a series of numeric input fields. I want the result in the Sum field to determine the expression in a final field.
If the Sum is <30MM then "50000" also if the Sum is >30MM but <60MM then "125000" also if the Sum is >60MM but <100MM then "250000" also if the Sum is >100MM but <300MM then "375000" also if the Sum is >300MM then "500000"
I have only been able to figure out a single if then for the first condition but not able to include the whole set of conditions and the multiple results.
Help would be much Appreciated!
Thank you in advance.
Tried a few variations of this and still seem not
to be able to find a solution to this issue. I'm surprised my google searches are bringing up better examples because there seems to be an example of everything else.
Any more detailed advive?
Similar Messages
-
Multiple condition : Error when starting a SWITCH branch
Hi,
In our Z Leave Workflow,I am facing the errors listed below.
Error when starting a SWITCH branch
Error during CASE evaluation in SWITCH mode for node 0000000158
Operator 'EQ': The value of the left operand cannot be determined
Error in the evaluation of expression '<???>&REQ.STATUS&' for item '1'
Unable to determine the value of component ''
It gives error in Multiple condition Request Approved? which is similar to standard WF12300111 node number 158 (u can say copy of WF12300111
This multiple condition works in some scenario But it gives dump at other scenario .
I have checked the value of REQ.STATUS in runtime. It populates the value as 'POSTED' in runtime,
Please suggest if any solution on this.
Regards,
KalpeshHi There was some problem with task which was comprising class CL_PT_REQ_WF_ATTRIBS and APPROVE method. This method is to change the status of particular leave workitem.After running this particular task ,the status was not changin instantly.This method locks particular workitem and was releasing the workitem once the WF gets completed.Hence I was getting REQ.STATUS as sent.
I have changed that task with following code in new task...
DATA:
REQUEST_ID TYPE PTARQ_DEDUCTION-REQUEST_ID,
request TYPE REF TO if_pt_req_request,
new_status TYPE tim_req_status.
SWC_GET_ELEMENT CONTAINER 'REQUEST_ID' REQUEST_ID.
CALL FUNCTION 'ENQUEUE_EPTREQ'
EXPORTING
mode_ptreq_header = 'E'
request_id = request_id
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE w058(hrtim_abs_req) WITH request_id.
ELSE.
CALL METHOD ca_pt_req_header=>agent->get_request
EXPORTING
im_request_id = request_id
IMPORTING
ex_request = request.
execute state transition
CALL METHOD request->initiate_state_transition
EXPORTING
im_transfer_event = 'APPROVE'
IMPORTING
ex_new_status = new_status.
COMMIT WORK.
CALL FUNCTION 'DEQUEUE_EPTREQ'
EXPORTING
request_id = request_id.
ENDIF.
This will create new status for leave item during WF processing.
Apart from that also added Wait for 2 minutes after that task....
Thanks for your help.
Regards,
Kalpesh -
Multiple conditions in a filter of Bursting control file
Hi All,
I am trying to use multiple conditions in a filter of Bursting control file and it throws me an error.
Can you please correct me on this.
<xapi:template type="rtf" location="xdo://AR.XXRAXINVOPCO.en.00?getSource=true" filter=".//G_INVOICE[BILL_CUST_NAME='ABC COMPANY'] and .//G_INVOICE[BILL_CUST_NAME='ABC COMPANY']">
Thanks,
--John.I have made little progress and now I am able to connect to the printer but its not printing.It prints a blank paper saying this printer is not setup for direct PDF printing.Can anyone help?
[073112_025517889][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] initConfig(): loading default properties :{TEMP_DIR:String=/usr/tmp, BUFFERING_MODE:Boolean=true}
[073112_025517890][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): called with request type :ipp_printer
[073112_025517890][oracle.apps.xdo.delivery.DeliveryManager][STATEMENT] createRequest(): exiting
[073112_025517890][][STATEMENT] status message:
[073112_025517890][][STATEMENT] xdo.bursting.IPP_RESPONSE_CHECK_INTERVAL=null
[073112_025517890][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Called
[073112_025517890][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] setDefaultServerProperties(): Default properties of server 'xslcisd2' are loaded. {URI:String=ipp://xslcisd2.southernco.com/ipp, server-type=ipp_printer}
[073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] setDefaultServerProperties(): properties defined in this request.
[TEMP_DIR:String] [usr/tmp/073112_025446100]
[server-type] [ipp_printer]
[ASYNC_CHECK_INTERVAL:Integer] [60000]
[SERVER_NAME:String] [xslcisd2]
[IPP_ATTRIBUTE_CHARSET:String] [utf-8]
[IPP_DOCUMENT_FORMAT:String] [application/octet-stream]
[BUFFERING_MODE:Boolean] [true]
[IPP_USE_CHUNKED_BODY:String] [true]
[URI:String] [ipp://xslcisd2.southernco.com/ipp]
[IPP_HTTP_RESPONSE_CHECK_INTERVAL:Integer] [0]
[TEMP_FILE_PREFIX:String] [dlvr]
[IPP_COPIES:Integer] [1]
[RETRY:Integer] [0]
[RETRY_INTERVAL:Integer] [60000]
[TEMP_FILE_SUFFIX:String] [.tmp]
[IPP_USE_FULL_URL:String] [false]
[ASYNC_TIMEOUT:Integer] [86400000]
[IPP_NATURAL_LANGUAGE:String] [en]
[073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): BUFFERING_MODE is ON.
[073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): TEMP_DIR found, start document buffering : /usr/tmp/073112_025446100
[073112_025517891][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Starting document buffering.
[073112_025517893][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Creating temporary file for buffering : /usr/tmp/073112_025446100/dlvr67s66bXmwi8695010679275918372.tmp
[073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): 69429 bytes have been written to the temporary file.
[073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] filterDocument(): Starting document preprocessing.
[073112_025517894][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] filterDocument(): No native command found for preprocessing, exiting.
[073112_025517895][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] backupDocument(): Finished document buffering.
[073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Start reading the buffered document file. : /usr/tmp/073112_025446100/dlvr67s66bXmwi8695010679275918372.tmp
[073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Calling DeliveryRequestHandler.submitRequest()
[073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Called
[073112_025517903][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Opening HTTP URL: http://xslcisd2.southernco.com/ipp
[073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP request dump:
IPP version: 10
operation id: 02
charset: utf-8
request id: 3
-- operation attrs --
[1]attributes-charset:utf-8
[1]attributes-natural-language:en
[1]printer-uri:ipp://xslcisd2.southernco.com/ipp
[1]document-format:application/octet-stream
-- printer attrs --
-- job attrs --
[1]copies:1
[073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): HTTP chunked mode : true
[073112_025517904][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP request header length : 181
[073112_025517905][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Opening HTTP client.
[073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openRequest(request) called
[073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openConnection() called - opening xslcisd2.southernco.com:80
[073112_025517905][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openConnection(): Start non-SSL connection.
[073112_025517908][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] generateRequestHeader() called.
[073112_025517908][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] generateRequestHeader(): generated request header
POST /ipp HTTP/1.1Host: xslcisd2.southernco.com
User-Agent: Oracle XML Publisher 5.6.3
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/ipp
<<<
[073112_025517909][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] openRequest(): using ChunkedOutputStream.
[073112_025517909][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Writing the document to the server stream.
[073112_025518090][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): 69429 bytes have sent to the server.
[073112_025518090][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] submitRequest() called
[073112_025518122][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] submitRequest(): pIn.available(): 445
[073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] Constructor called
[073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse() called
[073112_025518122][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] pIn.available(): 445
[073112_025518123][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [HTTP/1.1 200 OK]
[073112_025518123][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse() 1st line of response header: [HTTP/1.1 200 OK]
[073112_025518124][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Content-Type: application/ipp]
[073112_025518124][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [content-type][application/ipp]
[073112_025518125][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Cache-Control: no-cache, no-store, must-revalidate]
[073112_025518125][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [cache-control][no-cache, no-store, must-revalidate]
[073112_025518126][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Expires: THU, 26 OCT 1995 00:00:00 GMT]
[073112_025518126][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [expires][THU, 26 OCT 1995 00:00:00 GMT]
[073112_025518127][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Content-Length: 242]
[073112_025518127][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [content-length][242]
[073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : [Server: Allegro-Software-RomPager/4.34]
[073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] addResponseHeader(): [server][Allegro-Software-RomPager/4.34]
[073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] readLine() : []
[073112_025518128][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse(): end of HTTP header
[073112_025518133][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] parseResponse(): HTTP response body ascii dump
0x01 0x00 0x00 0x01 0x00 0x00 0x00 0x03 0x01 G 0x00 0x12 attributes-charset 0x00 0x05 utf-8H 0x00 0x1b attributes-natural-la
nguage 0x00 0x05 en-us 0x05 ! 0x00 0x06 copies 0x00 0x04 0x00 0x00 0x00 0x01 0x02 E 0x00 0x07 job-uri 0x00 ,http://xslcisd2.so
uthernco.com/ipp/IPP_Job_8! 0x00 0x06 job-id 0x00 0x04 0x00 0x00 0x00 0x08 # 0x00 0x09 job-state 0x00 0x04 0x00 0x00 0x00 0x03 D
0x00 0x11 job-state-reasons 0x00 0x04 none! 0x00 0x1a number-of-intervening-jobs 0x00 0x04 0x00 0x00 0x00 0x04
0x03 <<<
[073112_025518133][oracle.apps.xdo.delivery.http.HTTPResponse][STATEMENT] Exiting Constructor
[073112_025518133][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() called
[073112_025518133][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() exiting
[073112_025518133][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Closing HTTP client.
[073112_025518134][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): IPP response dump:
IPP version: 10
operation id: 01
charset: utf-8
request id: 3
-- operation attrs --
[1]attributes-charset:utf-8
[1]attributes-natural-language:en-us
-- printer attrs --
-- job attrs --
[1]job-uri:http://xslcisd2.southernco.com/ipp/IPP_Job_8
[1]job-id:8
[1]job-state:3
[1]job-state-reasons:none
[1]number-of-intervening-jobs:4
[073112_025518134][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequestHandler][STATEMENT] submitRequest(): Exiting submitRequest()
[073112_025518134][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() called
[073112_025518135][oracle.apps.xdo.delivery.http.HTTPClient][STATEMENT] closeConnection() exiting
[073112_025518135][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Finished calling DeliveryRequestHandler.submitRequest()
[073112_025518135][oracle.apps.xdo.delivery.ipp.IPPDeliveryRequest][STATEMENT] submit(): Process done successfully. Exiting submit()
Thanks,
--John. -
Advance Aggregation based on multiple conditions
Hi members,
I have a situation where I need to aggregate data based on multiple conditions. Relevant details of the problem is as follows.
There is a table (let's call X). It has following columns:
Transaction_Time (date)
Transaction_direction (Possible values IN or OUT)
Column_1
Column_2
Based on the columns: Transaction_direction, Column_1, Column_2, the type of the transaction will be derived. For example, if transaction_direction='IN' then transaction type is IN, if 'OUT' then transaction types are Out. Similarly if Column_1=Column_2 then transaction type is Txn_3 otherwise 4.
Based on date and transaction types the aggregation will happen.The sample output would be:
Time, Transaction type (IN, OUT, Txn_3, Txn_4), Sum of transactions
10-June-2013 00:00 IN Transactions 2500
10-June-2013 00:00 Txn_3 Transactions 3590
and so.
IN and Out transactions are easy to be derived using decode() function. However avoiding multiple UNION ALL and write a single SQL for all four conditions is tricky one.
Hope I clarified.
NeerajWhat version of Oracle are you using?
If you're on 11.x you can use the UNPIVOT feature as follows:
with t (Transaction_Time, Transaction_direction, Column_1, Column_2) as (
select date '2013-06-10', 'IN', 1, 1 from dual union all
select date '2013-06-10', 'IN', 2, 2 from dual union all
select date '2013-06-10', 'IN', 1, 2 from dual union all
select date '2013-06-10', 'IN', 3, 4 from dual union all
select date '2013-06-10', 'OUT', 3, 3 from dual union all
select date '2013-06-10', 'OUT', 3, 4 from dual
select * from (
select
transaction_time
, sum(case when transaction_direction = 'IN' then 1 end) as IN_count
, sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
, sum(case when Column_1 = Column_2 then 1 end) as Txn_3_count
, sum(case when Column_1 != Column_2 then 1 end) as Txn_4_count
from t
group by transaction_time
unpivot (
txn_count for transaction_type in (
IN_count as 'IN'
, OUT_count as 'OUT'
, Txn_3_count as 'Txn_3'
, Txn_4_count as 'Txn_4'
order by transaction_time, transaction_type
TRANSACTION_TIME TRANSACTION_TYPE TXN_COUNT
2013-06-10 IN 4
2013-06-10 OUT 2
2013-06-10 Txn_3 3
2013-06-10 Txn_4 3
If you're okay with getting one row per date with the 4 counts you can just use the inner select above, i.e.
select
transaction_time
, sum(case when transaction_direction = 'IN' then 1 end) as IN_count
, sum(case when transaction_direction = 'OUT' then 1 end) as OUT_count
, sum(case when Column_1 = Column_2 then 1 end) as Txn_3_count
, sum(case when Column_1 != Column_2 then 1 end) as Txn_4_count
from t
group by transaction_time
order by transaction_time
TRANSACTION_TIME IN_COUNT OUT_COUNT TXN_3_COUNT TXN_4_COUNT
2013-06-10 4 2 3 3
If you want to sum transaction amounts then use the same logic, except in the case statements replace 1 with the column you want to sum.
Regards,
Bob -
APEX Interactive Report Compute Case with multiple conditions to highlight
My ultimate is to highligt a row in an interactive report based on two conditions. I didn't see a way to use the highligt feature with two conditions. So I thought I would try to create a computation based on the two conditions. Then use that result for the highligting. Though I don't seem to be a be able to use multiple conditions in my computation Case statement. Is there a different syntax?
Here is what I have:
Case
When C = 'Open' and I > 15 Then 'True'
Else 'False'
End The error I get is: Invalid computation expression. and
Application Express 4.0.2.00.07
Thanks!
Edited by: cjmartin on Jan 10, 2012 10:57 AMI'm surprised no one responded to this. What I did to resolve this issue was create a nested case statement. I don't think this was a good solution, but I can't find anyone else giving input. I know I can create another computational column in the select statement for the report, but the 'Interactive Report' part is where this should be. I want my clients to calculate what they want. Kind of hard when you can not use an 'and' for a range criteria.
-
Multiple conditional incorrect response feedbacks
I am a Flash novice using the Flash Quiz template and trying
to create multiple conditional incorrect feedback responses for
each question. Currectly the array only has one asset dedicated to
providing feedback for an incorrect response. Is there a quick and
easy way to add two more conditional incorrect feedback responses?
:Hi,
I was wondering if you had found a solution to the Multiple conditional incorrect feedback responses? I would like to know if it is possible to assign an incorrect statement to a specific option. For example if the user selects A) they get one answer and if they select C) they receive a different response. I found away to have 2 incorrect statements but they are not specific to a response: (Example, If the user gets the question wrong the first time they get one answer and if they get the question wrong a second time they get another answer but the answers are not specific to the option chosen.
Thanks, -
Need Help on using xdoxslt:ifelse multiple conditions
Hi Experts
I have a requirement with multiple conditions and not able to get this working e.g. if possible how to get the variable if condition then get_variable
<?xdofx: if Group='X' and Price!=0 and ItemId='' then (xdoxslt:get_variable($_XDOCTX,'Price'), ' ')
else if Group='Y' and ItemId!='' then 'Included'
else if Group='Z' and ItemId!='' then 'Included' else '' end if?>
Also I tried using xdoxslt:ifelse
<?xdoxslt:ifelse((Group='X' and (Price)!=0 and ItemId=''),
(xdoxslt:ifelse((Group='Y' and ItemId=''),Include,' ')),(xdoxslt:get_variable($_XDOCTX, 'Price'))?>
Please help it is very critical
ThanksCan you please explain a bit as to what you are trying to achieve?
for example: if Group = X and Price <>0 and ItemID is null then what are you trying to do?
You can use choose statements for your scenario.
Example:
<?choose:?>
<?when:ReportStatus='Approved' ?>
<?'Approved'?> <?end when?>
<?when:ReportStatus = 'Closed'?>
<?....?>
<?otherwise:?>
<?....?>
<?end otherwise?>
<?end choose?>
Thanks,
Bipuser -
Multiple Condition in Single CFL
Dear All,
In my code CFL only recognizes the last condition.So how to set the loop for this condition
If vendorcode = "" Then
SBO_Application.StatusBar.SetText("Please select vendorcode", SAPbouiCOM.BoMessageTime.bmt_Short, SAPbouiCOM.BoStatusBarMessageType.smt_Error)
BubbleEvent = False
Exit Sub
Else
Dim i As Integer
i = 0
Dim oCFLs As SAPbouiCOM.ChooseFromListCollection = oForm.ChooseFromLists
oCFL = oCFLs.Item("CFL_6")
oCFL.SetConditions(Nothing)
oCons = oForm.ChooseFromLists.Item("CFL_6").GetConditions
oCon = oCons.Add()
oCon.Alias = "CardCode"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = vendorcode
oCon = oCons.Add()
oCon.Alias = "U_DCSta"
oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
oCon.CondVal = i
'oCon = oCons.Add()
oForm.ChooseFromLists.Item("CFL_6").SetConditions(oCons)
End If
Regards,
GuruGuru,
Please refer to the following sample code for multiple condition.
'// create a new conditions collection
Set oConditions = SBO_Application.CreateObject(cot_Conditions)
'// Let's assume we wish our query to select
'// Bussines Partners of type "C" (Customers)
'// or "S" (Suppliers)
'// WHERE ((CardType = 'C') Or (CardType = 'S'))
'// the conditions collection encapsulates the WHERE clause
'// of a select statement
Set oCondition = oConditions.Add
'// ((CardType = 'C') Or
oCondition.BracketOpenNum = 2
oCondition.Alias = "CardType"
oCondition.Operation = co_EQUAL
oCondition.CondVal = "C"
oCondition.BracketCloseNum = 1
oCondition.Relationship = cr_OR
Set oCondition = oConditions.Add
'// (CardType = 'S'))
oCondition.BracketOpenNum = 1
oCondition.Alias = "CardType"
oCondition.Operation = co_EQUAL
oCondition.CondVal = "S"
oCondition.BracketCloseNum = 2
Regards, yatsea -
How can I pass multiple condition in where clause with the join table?
Hi:
I need to collect several inputs at run time, and query the record according to the input.
How can I pass multiple conditions in where clause with the join table?
Thanks in advance for any help.
Regards,
TDIf you are using SQL-Plus or Reports you can use lexical parameters like:
SELECT * FROM emp &condition;
When you run the query it will ask for value of condition and you can enter what every you want. Here is a really fun query:
SELECT &columns FROM &tables &condition;
But if you are using Forms. Then you have to change the condition by SET_BLOCK_PROPERTY.
Best of luck! -
Multiple conditions for the same button.
Is there any way you can have multiple condition (same type of the condition).
I have button that I would like to hide it at different stages.
For example I would like to have a button (Submit) which will be visible when
Status = Draft
Condition Type Value of Item in Expression 1 = Expression 2
P9_X_STATUS
Draft
and when also when userRole = author
Condition Type Value of Item in Expression 1 = Expression 2
P9_X_USER_ROLE
Author
RobertHi,
It would depend on when the fields get their values into the session. They may be below the button on the page but if they have a value in the session then the button's condition will see this.
If, however, you have only used a Default Value setting for the item, the value may not be in the session (even though it may be displayed on the page), so the button will not know about this value. In these cases, I set the default value using a page computation for that item that runs "On Load Before Header" and is conditional on the item being null. That puts the value into the session for other items to use if required.
Andy -
Deleting data from another table with multiple conditions
Hi frnds
I need to delete some data from a table based on multiple condition I tried following sql but its deleteing some rows which is not meeting the criteria which is really dangerours. When i trying = operator it returns ORa- 01427 single -row subquery returns more than one row
delete from GL_TXNS
where TRN_DT in (Select trn_Dt from GL_MAT)
and BR in (select ac_branch from GL_MAT)
and CODE in (select CODE T from GL_MAT)
and (lcy_amt in (select lcy_amt from GL_MAT) or
fcy_amt in(select fcy_amt from GL_MAT)
rgds
ramyaMy answer is the same as Avinash's but I will explain a little bit more.
ORa- 01427 single -row subquery returns more than one rowmeans that you have a subquery that Oracle is expecting one value from that is returning multiple values. In your case you need one value for the equijoin ("=") and you are getting more than one value back. The error happens even if all the values are the same - multiple values being returned will cause the error.
The solution is to either allow multiple values to be returned (say, use the IN condition istead of "=") or only return one value if possible (say, forcing one value by using DISTINCT, GROUP BY, or a WHERE clause condition of ROWNUM=1) - but these workarounds must be checked carefully to make sure they work correctkly -
Mail step should be sent to all the users in multiple condition
hi experts,
I have a requirement on invoice posting.Say if invoice amount is 1000 then person A can post the invoice.
if >= 1000 person B can post the invoice.
If >=2000 person C can post the invoice.
what i have did is, created a multiple condition and then based on the inv amount assigned 3 methods for invoice posting.My problem is if a person posts an invoice amount of 1000.A mail has to be sent to Person B and C informing that an amount of 1000 is posted with user id.Same for person B, ie mail should be sent to person A and C informing regarding invoice posting.Now inside the multiple condition i cannot assign mail step.Coz based on the condition it will go to a particular user for invoice posting but where as mail should be sent to all the users.So how can i achieve this??.Hi Priyanka,
I am getting 1 thing why you need need multiple conditions. No need to create any multiple conditions.
1. Create a rule using transaction PFAC. (you can use the example as Rule: 0000168).
a. Create an function module with table parameters as ACTOR_TAB (type SWHACTOR) and AC_CONTAINER (Type
SWCONT). You can aswell copy the FM used in 168 rule and change it. check the logic mentioned below.
b. In PFAC transaction, go to container tab and create 2 container elements. For amount and Mail_indicator (type should be
same as that of the amount field in your workflow) .
2. Use this Rule in your workflow to send mail.
Logic:
""Lokale Schnittstelle:
*" TABLES
*" ACTOR_TAB STRUCTURE SWHACTOR
*" AC_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOBODY_FOUND
INCLUDE <CNTAIN>.
DATA BEGIN OF ORG_OBJECT OCCURS 0.
INCLUDE STRUCTURE SWHACTOR.
DATA END OF ORG_OBJECT.
DATA: BEGIN OF NEW_AC_CONTAINER OCCURS 3.
INCLUDE STRUCTURE SWCONT.
DATA: END OF NEW_AC_CONTAINER.
DATA: V_AMOUNT TYPE <AMOUNT FIELD>.
DATA: V_MAIL_INDICATOR TYPE <FLAG>.
REFRESH: actor_tab.
Get the org-object under consideration. AMOUNT is the container name defined in your PFTC transaction
SWC_GET_ELEMENT AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
Get the org-object-type and the org-object id.
SWC_GET_ELEMENT AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
Pass the org-object, the org-object-type and the org-object-id
to a new container.
The org object get a new name: ORG_AGENT.
SWC_SET_ELEMENT NEW_AC_CONTAINER 'AMOUNT' 'V_AMOUNT'.
SWC_SET_ELEMENT NEW_AC_CONTAINER 'MAIL_INDICATOR' V_MAIL_INDICATOR .
check for V_AMOUNT and V_MAIL_INDICATOR.
if the v_amount = 1000 .'
if v_mail_indicator = ' '.
actor_tab-OTYPE = 'US' .
actor_tab-OBJID = 'SAPUSER1'.
append actor_tab
else.
actor_tab-OTYPE = 'US' .
actor_tab-OBJID = 'SAPUSER2'.
append actor_tab
actor_tab-OTYPE = 'US' .
actor_tab-OBJID = 'SAPUSER3'.
append actor_tab
endif.
endif.
Similarly write the logic for other conditions.
This way you can use same for different purposes.
If you pass the indicator that means you are sending mail to other approvers for information.
Revert back if u need more help.
Regards,
Gautham -
I need your expert opinion on how to create a map with multiple conditions.
Hello.
I need your expert opinion on how to create a map with multiple conditions.
I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
How can i create a cursors within the map?
My function creates table and cursor.
Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
I would appreciate any help / advise on this.
Thank you very muchthanks a lot for your reply - i will look into this option :-)
it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
Anyway, thank you very much for your suggestion. -
Multiple condition for payment terms
Hi,
I wanted to create new payment terms with multiple combination say for example
95% Payment in Advance & Remining 5% in Net 360 days. How to configure with multiple conditions.Hi
You may have to use instalment payment terms.
Regards -
Table Rows with Multiple Conditions Not Showing Up in RH
Hi everyone,
I'm currently evaluating TCS2 (Framemaker 9 and RoboHelp 8 on Windows XP) and have come across the following issue:
One of our FrameMaker source files contains a table in which one of the rows has multiple conditions applied. When one of the conditions is shown in Framemaker, and the others are hidden, the row is displayed in Framemaker as expected. However, when the file is then imported or linked into Robohelp, the same table row vanishes, even though the Apply FrameMaker Conditional Text Build Expression check box is selected in the Framemaker Conversion Settings > Other Settings screen. This only appears to affect table rows - when paragraph text is tagged with the same conditions, it is imported correctly into RoboHelp.
For example, when Condition B is shown and Condition A is hidden in the Framemaker file, the content appears like this in Frame:
Unconditional
Unconditional
Condition A and Condition B applied
Condition A and Condition B applied
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
When the same file is imported into RoboHelp, the row with both conditions applied is absent from the table:
Unconditional
Unconditional
Condition B applied
Condition B applied
Paragraph text with Condition A and Condition B applied.
Paragraph text with Condition B applied.
Installing patches 8.0.1 and 8.0.2 did not resolve the issue (and actually caused other, unrelated issues) and I see the same behavior regardless of whether I import or link the FrameMaker document.
Has anyone else seen this issue? Any help would be much appreciated.
Thanks
DaveBIt just seems that the items I select as align to top in the
property inspector should force the items to the top of their
cells, unless I'm missing something.
Maybe you are looking for
-
Hello All, I had posted a thread yesterday to create a characteristic value to populate current calendar month/year.. i received a reply for the same and have written the following code for it... data: l_s_range like E_T_RANGE, mo type i
-
Itys does not appear in the boot list after holding down alt. I can still see it in disk utilities as a 66GB partition but it can't be veriefied or repaired from there. Any assistance in this matter would be greatly appreciated.
-
Security Settings Opening a PDF on Windows 7
I am running Windows 7 and all of a sudden a security question pops up every time I try to open a PDF. I did not change anything to cause this to occur. It is very anoying. How do I stop this?
-
SQL Developer 1.2.1, SQL Worksheet, Full Row Select
I was wondering if there was a way in the worksheet under 1.2.1 to do a full row select when viewing. When only columns are selected, it makes it a little difficult to scroll to the right on large records and still know which record is the current on
-
Hi, For one of my requirement i need some quires.Please help me. Queires : To retrive the name1,name2 logic : pick customer No from MHND-KUNNR and use table kna1-name1. logic : pick customer No from MHND-KUNNR and use the table kna1-name2. for