Help by setting up a conditional process in regards to a collection, error

I have a simple application containing 2 pages:
page 1: catalog
page 2: order overview page
on page 1 is a report with a list of articles, one column in the report is a link which branches to page 2 filling in a bindvariable. Sofar, not a problem. When the user first comes on page 2, a collection must be made, so I made a process called: make collection.
Code
HTMLDB_COLLECTION.CREATE_COLLECTION(
p_collection_name => 'SHOPPINGCART' );
commit;
This works, but the user will visit this page more than once, and he will be branching to this page based on several buttons also on page 2, the collection only needs to be made once. So how do I make in this case the process conditional, I already had a look at:
Verifying Whether a Collection Exists
Use COLLECTION_EXISTS to determine if a collection exists.
HTMLDB_COLLECTION.COLLECTION_EXISTS (
p_collection_name => collection name );
Which is a boolean, thank you Jes for helping me out there, and can have a value of:
IN/OUT
Tried a bunch of things didn't manage to get it to work. Now it fires everytime, and delivers an error stating the collection already exists. Please advice how to construct the conditional part of the process, the function as mentioned above HTMLDB_COLLECTION.COLLECTION_EXISTS should be helpful, getting nowhere, read the documentation abot the conditional parts, still no luck. Please help
Anyone?
Message was edited by:
Peter

Hi Pete,
Change your process to something like -
DECLARE
  bExists BOOLEAN;
BEGIN
  bExists := HTMLDB_COLLECTION.COLLECTION_EXISTS(p_collection_name => 'SHOPPINGCART');
  IF NOT(bExists) THEN
    HTMLDB_COLLECTION.CREATE_COLLECTION(p_collection_name => 'SHOPPINGCART');
  END IF;
END;

Similar Messages

  • Can I set up a review process in LiveCycle? Is what I want to do, at all possible? Anyone chime in.

    What is the best way to set up a review process, without violating the EULA and having a form that is editable by the end user AFTER it is submitted.
    Basically the process will go like this..
    1. A user will log onto our website and click a link where he or she downloads a dynamic form.
    2. The user will submit the form to multiple parties at once. (Conditional e-mail, depending on what sections in the form are filled out, different people will get the form)
    3. The form will get reviewed, and if any changes need to be made, the person that originally filled out the form will need to get it back and make the necessary changes. (The forms are long, so they can't start from scratch).
    4. After the changes have been made, the form will be re-submitted for final review.
    5. After the form has been finalized, the completed form will be distributed to about 80 people within the company (attached to an e-mail or something) and these people will use the data within the form to populate what they need to.
    Additional information:
    -I am the only one that has Acrobat 9 Standard OR Professional.
    -Everyone else has Reader only
    -The forms are dynamic
    -They have to be posted to a website
    Is this at all possible? I can't figure out how this can be done.
    I hope that was clear, please ask if you have questions.

    Hi,
    You can Reader Enable a form in Acrobat v9 Standard, however note the EULA with the restriction on 500 unique recipients. If it is going out to less than 500 you are not limited to the number of data processes that you undertake on the form.
    See discussion here on Reader Enabling a form: http://assure.ly/etkFNU.
    You would need to Reader Enable the form before you put it up on the web page.
    You can script a regular button to submit the form to user-entered email addresses. See here: http://assure.ly/eUR4wJ. The first email button could be used to send out the form for review. The last section in the form could be a text field to allow reviewers to add comments and a second email button that would issued the amended form back to the originator for further action.
    Both email buttons would get their email address(s) from completed fields in the form. In addition the email submission can be set up to return the PDF form and not just the data. IF the form is Reader Enabled then users with Reader will be able to complete this action.
    Hope that helps,
    Niall

  • Help with setting/getting variables in app

    Hi,
    I have an application which behaves in the following manner:
    1. User logs in.
    2. User is presented with a list of projects; user clicks on a project to drill down to that project.
    3. User is presented with project information which includes 4 separate lists of tasks grouped by week. So there are tasks for the current week the user is in plus task for the 3 weeks out.
    4. User can edit talks or create new ones for each of the 4 weekly groupings.
    Given that, on the main page for a project I have set up a report and form for each of the weekly groupings. I also have an item for the project id as well as each weekly grouping id. The goal there is that when a user clicks the "create" button they can create a new task for the appropriate weekly group. However, this isn't working.
    For the first weekly group when I click "create" I'm presented with the form to fill out for the task. All of the info is there, including the correct id for that weekly group so the task gets assigned to it properly. However, when I save I get an error which says that particular id is null.
    For the next three groups when I click "create" I'm given the same thing as above but without the id for the weekly group. Even if I set it and save things I'm getting the same error.
    So, I'm wondering what I've done wrong in the app flow. Am I setting these variables too early, too late? Am I really not picking them up in spite of what I see on my screen? Have I missed some fundamentals of Apex here?
    Thanks in advance for your time and help.
    Jon

    Varad....here you go...thanks!
    0.16: A C C E P T: Request="CREATE"
    0.21: Metadata: Fetch application definition and shortcuts
    0.22: NLS: wwv_flow.g_flow_language_derived_from=FLOW_PRIMARY_LANGUAGE: wwv_flow.g_browser_language=en-us
    0.23: alter session set nls_language="AMERICAN"
    0.23: alter session set nls_territory="AMERICA"
    0.23: NLS: CSV charset=WE8MSWIN1252
    0.23: ...NLS: Set Decimal separator="."
    0.23: ...NLS: Set NLS Group separator=","
    0.23: ...NLS: Set date format="DD-MON-RR"
    0.23: ...Setting session time_zone to -08:00
    0.25: Fetch session state from database
    0.27: ...Check session 1196910493324671 owner
    0.27: ...Metadata: Fetch Page, Computation, Process, and Branch
    0.27: Session: Fetch session header information
    0.27: ...Metadata: Fetch page attributes for application 120, page 18
    0.28: ...Validate item page affinity.
    0.28: ...Validate hidden_protected items.
    0.33: ...Check authorization security schemes
    0.33: Session State: Save form items and p_arg_values
    0.33: ...Session State: Save "P18_TASK_SEQ" - saving same value: ""
    0.33: ...Session State: Save "P18_WEEK_GROUP_SEQ" - saving same value: ""
    0.34: ...Session State: Saved Item "P18_DISCIPLINE_SEQ" New Value="1"
    0.34: ...Session State: Saved Item "P18_TASK_TITLE" New Value="Test"
    0.34: ...Session State: Saved Item "P18_TASK_PRIORITY" New Value="5"
    0.35: ...Session State: Saved Item "P18_PERCENTAGE_COMPLETE" New Value="25"
    0.35: ...Session State: Saved Item "P18_TASK_RISK" New Value="None"
    0.35: ...Session State: Saved Item "P18_TASK_IMPACT" New Value="None"
    0.36: ...Session State: Saved Item "P18_TASK_MITIGATION" New Value="None"
    0.36: ...Session State: Saved Item "P18_CREATED_ON" New Value="12-DEC-08"
    0.37: ...Session State: Saved Item "P18_CREATED_BY" New Value="jwynacht"
    0.37: ...Session State: Save "P18_CREATED_FROM_TASK_SEQ" - saving same value: ""
    0.37: ...Session State: Saved Item "P18_LAST_MODIFIED_ON" New Value="12-DEC-08"
    0.37: ...Session State: Saved Item "P18_LAST_MODIFIED_BY" New Value="jwynacht"
    0.38: ...Session State: Saved Item "P18_DELETE_FLAG" New Value="0"
    0.38: Processing point: ON_SUBMIT_BEFORE_COMPUTATION
    0.38: Branch point: BEFORE_COMPUTATION
    0.38: Computation point: AFTER_SUBMIT
    0.38: ...Evaluate condition "PLSQL_EXPRESSION" for computation of item: P18_WEEK_GROUP_SEQ
    0.39: Tabs: Perform Branching for Tab Requests
    0.39: Branch point: BEFORE_VALIDATION
    0.39: Perform validations:
    0.40: ...Item Not Null Validation: P18_WEEK_GROUP_SEQ
    0.40: ...Validation did NOT pass
    0.40: ...Item Not Null Validation: P18_DISCIPLINE_SEQ
    0.40: ...Item Not Null Validation: P18_TASK_TITLE
    0.40: ...Item Not Null Validation: P18_TASK_PRIORITY
    0.40: ...Item Not Null Validation: P18_CREATED_ON
    0.40: ...Item Not Null Validation: P18_CREATED_BY
    0.40: ...Item Not Null Validation: P18_LAST_MODIFIED_ON
    0.40: ...Item Not Null Validation: P18_LAST_MODIFIED_BY
    0.40: ...Item Not Null Validation: P18_DELETE_FLAG
    0.41: ...Inline validation error count = 1
    0.41: Show current page with inline validations
    0.42:
    0.42: S H O W: application="120" page="18" workspace="" request="" session="1196910493324671"
    0.43: NLS: Language=en-us
    0.43: Application 120, Authentication: CUSTOM2, Page Template: 2370905300761909
    0.43: ...Session ID 1196910493324671 can be used
    0.43: ...Application session: 1196910493324671, user=JWYNACHT
    0.43: ...Determine if user "APEX_JON" workspace "995216593441806" can develop application "120" in workspace "995216593441806"
    0.44: ...Metadata: Fetch page attributes for application 120, page 18
    0.44: Branch point: BEFORE_HEADER
    0.44: Fetch application meta data
    0.46: Computation point: BEFORE_HEADER
    0.46: Processing point: BEFORE_HEADER
    0.47: ...Recompute field lables for fields in error.
    0.48: Show page template header
    0.53: Computation point: AFTER_HEADER
    0.53: Processing point: AFTER_HEADER
    0.53: ......Do not perform process because inline validation condition found.
    0.53: ...Do not run process "Fetch Row from TASK", process point=AFTER_HEADER, condition type=, when button pressed=
    JWYNACHTLogout
    1 error has occurred
    Week Group Seq must have some value.
    0.53: Computation point: BEFORE_BOX_BODY
    0.53: Processing point: BEFORE_BOX_BODY
    0.53: Region: Task
    Task          
    Cancel
    Create
    0.55: Item: P18_TASK_SEQ HIDDEN_PROTECTED
    0.57: Item: P18_WEEK_GROUP_SEQ TEXT
    Week Group Seq
    Week Group Seq must have some value.     
    0.57: Item: P18_DISCIPLINE_SEQ TEXT
    Discipline Seq     
    0.58: Item: P18_TASK_TITLE TEXT
    Title     
    0.58: Item: P18_TASK_PRIORITY TEXT
    Priority     
    0.58: Item: P18_PERCENTAGE_COMPLETE TEXT
    %Complete     
    0.59: Item: P18_TASK_RISK TEXTAREA
    Risk     
    0.59: Item: P18_TASK_IMPACT TEXTAREA
    Impact     
    0.59: Item: P18_TASK_MITIGATION TEXTAREA
    Mitigation     
    0.59: Item: P18_CREATED_ON TEXT
    Created On     
    0.60: Item: P18_CREATED_BY TEXT
    Created By     
    0.60: Item: P18_CREATED_FROM_TASK_SEQ TEXT
    Created From Task Seq     
    0.61: Item: P18_LAST_MODIFIED_ON TEXT
    Last Modified On     
    0.61: Item: P18_LAST_MODIFIED_BY TEXT
    Last Modified By     
    0.62: Item: P18_DELETE_FLAG TEXT
    Delete Flag     
    0.62: Computation point: AFTER_BOX_BODY
    0.62: Processing point: AFTER_BOX_BODY
    0.62: Computation point: BEFORE_FOOTER
    0.62: Processing point: BEFORE_FOOTER
    0.62: Show page tempate footer
    Home
    Application 120
    Edit Page 18
    Create
    Session
    Activity
    No Debug
    Show Edit Links
    0.63: Computation point: AFTER_FOOTER
    0.63: Processing point: AFTER_FOOTER
    0.63: Log Activity:
    0.63: Execute Count=0
    0.63: End Show:

  • How to set up rules/conditions on a drop down box to ensure its been filled if a value in a text box is selected.

    Hi, I am in midst of creating a form in infopath. I have a text box field in which the user will enter the number of issues he has. if the user has entered the number of issues he has, then he will need to select the type of issues from a multi selection
    box. Thus i need to know how to set up rules/conditions to ensure that the user has to complete the multi selection box if he enters a value in text box for the number of issues. 

    I assume what you are asking is to make multi selection box as mandatory. If not please explain with a example
    Try below:
    http://webcache.googleusercontent.com/search?q=cache:ItIYeZ8K2gEJ:sharepointkings.blogspot.com/2013/06/make-multi-select-list-box-required-in.html+&cd=4&hl=en&ct=clnk&gl=in&client=firefox-beta
    If this helped you resolve your issue, please mark it Answered

  • Help with applescript to quit certain processes by name?

    Hey, for anyone who knows how to program applescripts well, I could use some help with the script below.
    I'm very new to applescripting and I'm trying to write a script that would automatically quit up to 100 instances of the Google Chrome Renderer process.
    Thanks to google, I found a script similar to what I wanted, and after some tinkering I thought I had it just right. The thing is, if I only set the app_name to Google Chrome, it quits Chrome just fine, but when I try it like this, it doesn't receive any data from grep or awk.
    If anyone can help I'd really appreciate it.
    repeat 100 times
              set app_name to "Google Chrome Renderer"
              set the_pid to (do shell script "ps ax | grep " & (quoted form of app_name) & " | grep -v grep | awk '{print $1}'")
              set new_pid to first word of the_pid
              try
                        if new_pid is not "0" or "1" then do shell script ("kill -9 " & new_pid)
              end try
    end repeat

    try this:
    tell application "System Events"
              set procs to (every process whose name is "Google Chrome Renderer")
              if (count of procs) > 100 then
                        set max to 100
              else
                        set max to count of procs
              end if
              repeat with i from 1 to max
                        tell (item i of procs) to quit
              end repeat
    end tell

  • Help is greatly needed with page processing in APEX

    hello everyone please could someone help me with a survey application that im working on . Basically i have  a page that has 5 different regions on it an each region has a LOV which has the following display values ( agree, strongly agree, disagree and strongly disagree)  then return values for these are 20 , 50 , 10 and 5 respectively and this is the select from statement to create the LOV below and the table used
    select EVAL_OPTION as display_value, FRM1_REG1 as return_value
    from REL_DIM_SC_TBL
    order by 1
    The LOVs work fine . However when i tried to insert the inputs from the users into another table by means of a page process im getting a error that i cant seem to resolve my tables are :
    REL_DIM_SC_TBL   -- where the display data for the LOV's come from
    REL_DIM_SC_IMP   -- is the table that where the values that the user has selected is stored
    The page items are set up as follows :
       Relationship Dimension Scoring
    JOE  Logout
    WELCOME
      so where you see welcome above is a text field above the regions where the LOV's are and used the select :app_user from dual ; to populate it because in order to insert the data select by the LOV's on the page there has to be an item with a primary key . Which is what i wanted was for the current user using the app to be inserted into the REL_DIM_SC_IMP table . But when i click the submit button i get an error
    below is the select of the automatic DML action i set up under page processing    
    Name
    Page:
    3 Relationship Dimension Scoring
    *Name (Value Required)
    Type:
    Automatic Row Processing (DML)
    Process Point
    *Sequence (Value Required)
    Process Point
    Run Process
    Source: Automatic Row Processing (DML)
    *Table Owner (Value Required)
    *Table Name (Value Required)
    *Item Containing Primary Key Column Value (Value Required)
    *Primary Key Column (Value Required)
    Item Containing Secondary Key Column Value
    Please guys i have been stuck with this for a long time any help at all will be greatly appreciated

    Hello Krunal thanks so much for your reply i did manage to sort out that error how ever there is an other one that im stuck with . Basical i have a table with 6 columns begin score1, score2, score3, score4, form_total, User_id
    What i want to do is create a trigger that adds the four  numeric columns into the form_total
    the trigger syntax i used was
    create or replace trigger "Score_Total_t1"
    AFTER
    insert on "Score_Total"
    for each row
    begin
    :NEW.USER_ID := ('APP_USER');
    :NEW.form_total := ('Score1' + 'Score2 '+ 'Score3' + 'Score4 ');
    end;
    However the :New.USER_ID works fine to input  the currrent user but im getting an error with :NEW.form_total
    Any ideas would be greatly appreciated
    thank you 

  • Authorizations setting for running the process chain

    Hai
    Iam planning to run the process chain for loading the data into ODS. But i dont have authorization for it.
    so what are the authorizations i need to run the process chain in my system. And how can i set all those authorizations to my user-id.  I have all authorization rights .
    Pls let me knw
    kumar

    Hi,
    Authorizations for Process Chains
    Use
    You use authorization checks in process chain maintenance to lock the process chain, and the processes of the chain, against actions by unauthorized users.
    ·        You control whether a user is allowed to perform specific activities.
    ·        You control whether a user is allowed to schedule the processes in a chain.
    The authorization check for the processes in a chain runs when the system performs the check. This takes place upon scheduling or during synchronous execution. The check is performed in display mode. The check is performed for each user that schedules the chain; it is not performed for the user who executes the chain. The user who executes the chain is usually the BI background user. The BI background user automatically has the required authorizations for executing all BI process types. In attribute maintenance for the process chain, you can determine the user who is to execute the process chain.
    See also: Display/Maintenance of Process Chain Attributes ®  Execution User.
    Features
    For the administration processes that are bundled in a process chain, you require authorization for authorization object S_RS_ADMWB.
    To work with process chains, you require authorization for authorization object S_RS_PC. You use this authorization object to determine whether process chains can be displayed, changed or executed, and whether logs can be deleted. You can use the name of the process chain as the basis for the restriction, or restrict authorizations to chains using the application components to which they are assigned.
    Display/Maintain Process Chain Attributes
    Use
    You can display technical attributes, display or create documentation for a process chain, and determine the response of process chains during execution.
    Features
    You can display or maintain the following attributes for a process chain:
    Process Chain ® Attribute ® ...
    Information
    Description
    ( Rename)
    You can change the name of the process chain.
    Display Components
    Display components are the evaluation criterion in the process chain maintenance. Assigning the process chains to display components makes it easier to access the chain you want.
    To create a new display component, choose Assign Display Components in the input help window and assign a technical name and description for the display component in the Display Grouping dialog box that appears.
    Documents
    You can create and display documents for a process chain.
    For more information, see Documents.
    Last Changed By
    Displays the technical attributes of the process chain:
    ·        When it was last changed and who by
    ·        When it was last activated and who by
    ·        Object directory entry
    Evaluation of Process Status
    If you set this indicator, all the incorrect processes in this chain and in the overall status of the run are evaluated as successful; if you have scheduled a successor process upon error or always.
    The indicator is relevant when using metachains: Errors in the processes of the subchains can be evaluated as “unimportant” for the metachain run. The subchain is evaluated as successful, despite errors in such processes of the subchain. If, in the metachain, the successor of the subchain is scheduled upon success, the metachain run continues despite errors in “unimportant” processes of the subchain.
    Mailing and alerting are not affected by this indicator and are still triggered for incorrect processes if they have an upon error successor.
    Polling Indicator
    With this indicator you can control the response of the main process for distributed processes. Distributed processes, such as the load process, are characterized as having different work processes involved in specific tasks.
    With the polling indicator you determine whether the main process needs to be kept until the actual process has ended.
    By selecting the indicator:
    -         A high level of process security is guaranteed, and
    -         External scheduling tools can be provided with the status of the distributed processes.
    However, the system uses more resources; and a background process is required.
    Monitoring
    With the indicator in the dialog box Remove Chain from Automatic Monitoring?, you can specify that a process chain be removed from the automatic monitoring using CCMS.
    By default CCMS switches on the automatic process chain monitoring.
    For more information about the CCMS context Process Chains, see the section BW Monitor in CCMS.
    Alerting
    You can send alerts using alert management when errors occur in a process chain.
    For more information, see Send Alerts for Process Chains.
    Background Server
    You can specify here on which server or server group all of the jobs of a chain are scheduled. If you do not make an entry, the background management distributes the jobs between the available servers.
    Processing Client
    If you use process chains in a client-dependent application, you can determine here in which client the chain is to be used. You can only display, edit, schedule or execute the chain in this client.
    If you do not maintain this attribute, you can display, edit, schedule or execute the process chain in all clients.
    Process variants of type General Services that are contained in a process chain with this attribute set will only be displayed in the specified client.
    This attribute is transported. You can change it by specifying an import client during import. You must create a destination to the client set here in the target system for the import post processing (transaction RSTPRFC)  The chain is activated after import and scheduled, if necessary, in this client.
    Execution User
    In the standard setting a BI background user executes the process chain (BWREMOTE).
    You can change the default setting so that you can see the user that executes the process chain and therefore the processes, in the Job Overview. You can select the current dialog user who schedules the process chain job, or specify a different user.
    The setting is transported.
    The BI background user has all the necessary authorizations to execute all BI process types. Other users must assign themselves these authorizations so that authorization errors do not occur during processing.
    Job Priority
    You use this attribute to set the job priority for all of the jobs in a process chain.
    Hareesh

  • Set deletion flag on process order.

    Hi Friends,
    My requirement is i want to set deletion flag on process order.
    For this system gives error as
    1. System status CRCR is active (ORD 93000112)
    2. System status ORRQ is active (ORD 93000112)
    Here i have solve the problem number one through transaction code BS22 (i.e. under System status I0241 -CRCR , previously LKZS - Set deletion indicator & LVMS -Mark for deletion was maintain as Forbidd now i have made it under No influence )
    after saving this customization system give only error two ( System status ORRQ is active (ORD 93000112)
    Same way when i try to find ORRQ but here i havenu2019t found  ORRQ.
    Could you plz help me.
    Best Regards,
    Parag Save.

    Dear,
    The system sets this status when you release the order, provided that the Order record required indicator is set in the order type-dependent parameters (see Customizing for Process Order)....
    This setting is there in SPRO....
    Production Planning for Process Industries - Process Order-Master Data-Order-Define Order type Dependent parameters...
    In this you set the option Order record Required....
    Requirements are that the process orders are settled, associated PI sheets, inspection lots and any linked purchase orders are complete.
    Following are prerequisites for closing a process order
    1 The order must have the status Released (REL) or Technically completed (TECO)
    2 The order balance must be 0
    3 There can be no open purchase requisitions, purchase orders.
    4 There can be no future change records from confirmation processes.
    .Now Calculate Overheads using Tcode : KGI2 - Individual Processing
    CO43 - Collective Processing
    Step to be follow,
    1.Calculate WIP using Tcode : KKAX - Individual Processing
    KKAO - Collective Processing
    2.Calculate Variance by using Tcode : KKS2 - Individual Processing
    KKS1 - Collective Processing
    3.Finally do the settlement of Order in Tcode : KO88 - Individual Processing
    CO88 - Collective Processing
    Please refer this thread also,
    https://forums.sdn.sap.com/click.jspa?searchID=17422319&messageID=5934846
    The transaction COA5 (Archive Administration Preprocessing).
    This will allow you to set the deletion flag
    Hope this helps.
    Regards,
    R.Brahmankar

  • Conditional Processing: Request is Contained within Expression 1

    I believe I have found a bug with the Process Conditional Processing logic, where "Request is Contained within Expression 1" is used.
    Here are three of the buttons that I have on my page:
    GET_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    CRE_RES_CIVIC_ADDR - This button is displayed among the Region Items (Region 2)
    ADD - Automatically created as part of a Tabular Form (Region 3 - Updateable Report).
    I have a process that is conditional on either GET_RES_CIVIC_ADDR or CRE_RES_CIVIC_ADDR being run (meaning the Process has its "Conditional Processing" "Condition Type" set to "Request Is Contained within Expression 1" and where "Expression 1" is set to "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR" (without the quotes).
    The problem I have encountered is that this Conditional Process also gets run if I submit the ADD Button. The reason being is that the word "ADD" is contained within the Expression 1 string "GET_RES_CIVIC_ADDR,CRE_RES_CIVIC_ADDR".
    Note that if I change the REQUEST value for these two Item Level Buttons to names that do not contain the word ADD, the problem is fixed.
    Is this a known bug? Or do I have to edit the value of Expression 1, so that each Button Name/Request Value is enclosed in quotes or the like?

    Scott,
    I was under the impression that the values in Expression 1 would be a list of comma delimited values (e.g. A,B,C and not ABC) and would be evaluated individually. However, you are correct. It is being evaluated as advertised.
    A note for others that have this problem - the evaluation of :REQUEST is Case Sensitive, so if the Item Level Button had been named 'Get_Res_Civic_Addr' (using Camel Case) instead of 'GET_RES_CIVIC_ADDR', (Upper Case), there would not have been a match with the 'ADD' Request and therefore the After-Submit process would not have been run by the ADD button.
    To prevent this in the future, we are going to standarise using the PL/SQL Expression Condition (checking :REQUEST) and also ensure that our Item Level Buttons "Request Value" is Camel Case (just an extra precaution).

  • How to set a Multiple condition in a single CFL

    Hi everyone,
    Hey guys, i have a problem filtering a CFL (ChooseFromList)
    where i have to select records
    WHERE U_SalesmanCode = <ConVal>
    AND U_Status = <ConVal>
    So i've come up with an idea setting up multiple conditions on a single CFL.
    i have a function "SetCFLConditions" that will be called after the CHOOSEFROMLIST_EVENT was triggered. this will set the conditions on a loop method.
    the CODE works fine. but it only accepts the last condition.
    Public Sub SetCFLConditions(ByVal _chooseFromList As String, _
                                    ByVal _alias As String, _
                                    ByVal _operation As SAPbouiCOM.BoConditionOperation, _
                                    ByVal _condVal As String)
            Dim oCFLCollection As SAPbouiCOM.ChooseFromListCollection = _form.ChooseFromLists
            Dim oCFL As SAPbouiCOM.ChooseFromList = oCFLCollection.Item(_chooseFromList)
            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            Dim asAlias() As String = _alias.ToString.Split(",")
            Dim asCondVal() As String = _condVal.ToString.Split(",")
            Dim i As Int16
            oCFL.SetConditions(Nothing)
            'oCons = oCFL.GetConditions()
            For i = 0 To asAlias.Length - 1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add
                '//LOOP CONDITIONS
                With oCon
                    .Alias = asAlias(i)
                    .Operation = _operation
                    .CondVal = asCondVal(i)
                End With
            Next i
            oCFL.SetConditions(oCons)
        End Sub
    Pls. Help
    Thanks
    Roger

    Hi,
    This is how i add the conditions..
    Dim oCFLS As SAPbouiCOM.ChooseFromListCollection
    Dim oCons As SAPbouiCOM.Conditions
    Dim oCon As SAPbouiCOM.Condition
    Dim oCFL As SAPbouiCOM.ChooseFromList
    Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
    oCFLS = objForm.ChooseFromLists
    oCFLCreationParams = objSBOAPI.CreateUIObjectSAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
    oCFLCreationParams.MultiSelection = False
    oCFLCreationParams.ObjectType = "2"
    oCFLCreationParams.UniqueID = "CFL1"
    oCFL = oCFLS.Add(oCFLCreationParams)
    oCFLCreationParams.ObjectType = "2"
    oCFLCreationParams.UniqueID = "CFL2"
    oCFL = oCFLS.Add(oCFLCreationParams)
    oCons = objForm.ChooseFromLists.Item("CFL1").GetConditions
    oCon = oCons.Add()
    oCon.Alias = "CardType"
    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
    oCon.CondVal = "C"
    objForm.ChooseFromLists.Item("CFL1").SetConditions(oCons)
    objForm.ChooseFromLists.Item("CFL2").SetConditions(oCons)
    Hope it helps,
    Vasu Natari.

  • How to set a Multiple condition for a single CFL

    Hi everyone,
    Hey guys, i have a problem filtering a CFL (ChooseFromList)
    where i have to select records
    WHERE U_SalesmanCode = <ConVal>
    AND U_Status = <ConVal>
    so i've some up with an idea setting up multiple conditions on a single CFL.
    i have a function "SetCFLConditions" that will be called after the CHOOSEFROMLIST_EVENT was triggered. this will set the conditions on a loop method.
    the CODE works fine. but it only accepts the last condition.
    Public Sub SetCFLConditions(ByVal _chooseFromList As String, _
                                    ByVal _alias As String, _
                                    ByVal _operation As SAPbouiCOM.BoConditionOperation, _
                                    ByVal _condVal As String)
            Dim oCFLCollection As SAPbouiCOM.ChooseFromListCollection = _form.ChooseFromLists
            Dim oCFL As SAPbouiCOM.ChooseFromList = oCFLCollection.Item(_chooseFromList)
            Dim oCons As SAPbouiCOM.Conditions
            Dim oCon As SAPbouiCOM.Condition
            Dim asAlias() As String = _alias.ToString.Split(",")
            Dim asCondVal() As String = _condVal.ToString.Split(",")
            Dim i As Int16
            oCFL.SetConditions(Nothing)
            'oCons = oCFL.GetConditions()
            For i = 0 To asAlias.Length - 1
                oCons = oCFL.GetConditions()
                oCon = oCons.Add
                '//LOOP CONDITIONS
                With oCon
                    .Alias = asAlias(i)
                    .Operation = _operation
                    .CondVal = asCondVal(i)
                End With
            Next i
            oCFL.SetConditions(oCons)
        End Sub
    Pls. Help
    Thanks
    Edited by: Roger Arce on Apr 17, 2009 12:14 PM
    Edited by: Roger Arce on Apr 17, 2009 12:15 PM

    Hai  Roger Arce 
    Better you post your question in SDK forum
    Edited by: Prasanna s on Apr 17, 2009 12:52 PM

  • I am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    i am having problem when i am updating my iphone 4 to ios 5 ..it get update n took 50 minutes then at the end when it was processing file ...suddenly an error comes that an unknown error accurred {9006}..please help me..how will i update my iphone 4

    Error 9006: Following Troubleshooting security software frequently resolves this error. There may be third-party software installed that modifies your default packet size in Windows by inserting a TcpWindowSize entry into your Registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet size modification for assistance.

  • Help with setting up Sagepay as a payment gateway

    Hello,
    i am trying to setup Sagepay as the payment gateway on a clients eCommerce site, here is a link to the test transaction product which is priced at 0.01
    http://dandeliongiftshop.worldsecuresystems.com/shop-categories/birthday-presents/white-wa shed-birthday-card-box
    The Paypal option works fine, however i keep getting different errors when i try to use the Credit/Debit card option.
    The error messages vary from:
    Gateway Response: 4006 : The TxType requested is not supported on this account.
    Gateway Response: 3055 : The CardType field is required.
    I have Visa / Visa Debit / Maestro and Mastercard enabled on Sagepay.
    Not sure where im going wrong with this, any help would be hugely appreciated

    ok so firstly Sagepay phone support are very very good!
    secondly, I have two issues regarding the information that is being passed to Sagepay.
    1 - it is not passing the CardType when you select to pay using Bank Card (which i have changed to Visa Debit) it just shows the cardtype=null. could this be becuase i changed the display name? it still has the value of 3.
    2 - i am using the Sagepay Test Gateway and i have added the Business Catalyst IP address to the list of valid IP addresses within the test mysagepay admin area. however when i try processing a transaction i get an error
    ERROR: An error occurred while processing credit card
    Gateway Response: 4020 : Information received from an Invalid IP address.
    I had only added the IP address for the European data Center, so i added the US and Australian ones as listed here Set up the Sagepay payment gateway
    but this doesnt seem to fix this problem!! anyone got any ideas?

  • Conditional Processing !?

    I execute following comparable SQL statements by a "Automated Row Fetch" process:
    1.) SELECT * from bla where name = 'ok'
    2.) SELECT * from bla where name = 'not found'
    Query 1 is ok: -)
    Query 2: I get the error "ORA-01403: No data found "
    I would like to use the same side (with form region) with both queries.
    How can i do this? Can I affect with "Conditional Processing"? Or completely differently?
    Cliff

    Well, this really isn't a helpful response.
    For example, if you chose a condition type of PL/SQL Function Body Returning a Boolean, I'm not sure why you would expect your condition to succeed. It's syntactically inaccurate.
    It's really unclear what you're trying to do, but let me try and guess.
    If you want the fetch to succeed if there is a value of 'ok' in column name, then I would do a condition type of PL/SQL Function Body Returning a Boolean, with the condition expression of:
    for c1 in (select null from bla where name = 'ok') loop
        return true;
    end loop;
    return false;Joel

  • Help Needed Setting Up IMAP Relay?

    I an currently maintaining an OS X 10.4.11 Tiger server, running on a PowerMac G4 Mirror.
    Currently, we have our mail setup through our isp via pop (they do not offer imap). All of our employees have set up several access points to the pop server (i.e. home, office, smart phone, etc.). However, the problem arises that as each device is maintaining its own mail, when accessing mail on each device, mail read on one device still shows as unread on the others. As well as, any mail sent from one device, does not exist on the others.
    To eliminate the duplication, and missing mail, I thought setting up an imap server would keep all devices in sync.
    My thought is, collect all the mail from the isp pop server, onto the OS X server and then have the employees access only the imap server from all the devices.
    i.e.
    Setup imap server
    setup imap server to download mail from pop server, and save in the appropriate account.
    setup all client mail accounts to access imap server.
    I have been able to set up the imap server without any issues, however, I have not been able to figure out how to get the pop server mail from the isp into the local imap database.
    I hope this make sense.
    I know there are free services out there that will do what we want, but we do not want to rely on an external service if it is a process we can maintain internal.
    If anyone can help me set this up, or suggestions on how to approach this problem, I would be very grateful.
    TIA

    I'd probably have a conversation with the mail ISP along the lines of "add IMAP, please" and that will either be followed by happiness, or by migrating to another mail vendor, or migrating to local mail services.
    I've bucketed mail over (via imap), and it's not really a good solution; there are a number of wheels that need be kept spinning and by the time the dust settles (outages, glitches, the usual cruft), you might as well either re-host mail to to another mail ISP that offers imap (gmail, for instance), or simply run your own mail server.
    Usual tools are imapsync and offlineimap, and those target (obviously) imap and not pop. (I haven't seen much that does a pop pull, but it's likely feasible.)
    If you decide to host your own, you'll probably want to upgrade to something newer than the PPC gear, and you'll need to sort out your public forward and reverse DNS for your mail server, and ensure all that matches your MX record.

Maybe you are looking for

  • IMovie - adding a picture (without black frame below) in the very bottom of a video

    Hello iMoviers, I'd like to add a picture on top of a movie. As far as I understand this can be done by using iMovie's picture-in-picture feature. The picture, however, is centered in a black frame. 1) How can I position the picture on the ver bottom

  • IPhone 4 error9 in recovery mode iOS 4.3.3 vesion

    i am so worried because i cant use my iphone 4 anymore because of this error 9. my version is too high so i was hoping if theres any solution i could do to fix the problem or should i wait for software like recBoot to be release at the moment??---SOS

  • ITunes on pc can,t communicate with my iPad can,t restore or update

    Going round in circles here and about to chuck iPad on the bin!  I only discovered this problem when I tried to update my iPad via iTunes. Now not only can I not update or restore..... Same message each time update server could not be contacted, iTun

  • Cannot install Reader 9 or Acrobat Pro 9 - help!!!!!

    I have just clean installed Vista. It has SP1 on it but not a load of software. When I try to install Reader 9, setup unpacks up to 99.90% then I get an error message -Setup has stopped working. A problem caused the program to close unexpectedly. I g

  • Corner pin displays

    I have some 3rd party animated displays that use AE's corner pin tracking information so video clips can track the movement of the displays. Is there some way for me to get Motion to follow this tracking information? I know that I can use the Select/