To make a status field readonly on Activity based on condition

Can anyone help me with the validation formula that I need to use to make the activity status field readonly.
My condition is :-
If the Owner Id on the Activity <> login Id, then make status field readonly
Thanks,
NG

Hi NG,
Not 100% clear on what you are trying to achieve so I thought I'd offer the suggestions I thought most likely.
1. If the Logged In User does not match the Activity Record Owner, then make the status field read only
PRE('<Status>') = [<Status>] OR UserValue('<UserId>') = [<OwnerId>]
i.e. Status value has not changed OR logged in user equal to record owner
2. If the Logged In User matches the Activity Record Owner, then make the status field read only
PRE('<Status>') = [<Status>] OR UserValue('<UserId>') {NOT EQUAL} [<OwnerId>]
+i.e. Status value has not changed OR logged in user equal does not equal record owner. Just remember to replace {NOT EQUAL} with the appropriate syntax in expression builder.+
Regards,
Cam

Similar Messages

  • Showing the custom train stop as default activity based on condition

    Hi Folks,
    I'm using JDeveloper version 11.1.1.5.0. I have requirement where in i have to show the custom train stop as default train stop based on some business logic instead of default activity mentioned as part of task flow with train.
    Test Case:
    I have a dynamic region where i'm loading diff task flows based on condition. Let us consider i have two task flows TF1, TF2 and One of these task flows (TF2) contains a train.
    TF2 task flows has a train with train stops as ts1, ts2 and ts3 and ts1 has been configured as default activity in TF2 task flow
    I'm loading these task flows into dynamic region based on my business logic. Currently i'm in TF1 and i'm doing some action in TF1 page. Based on my business logic in one of the button actions in TF1, i have to load TF2 into region and have to set either ts1, ts2 or ts3 as default activity. its not like every time only configured default activity as part of TF2 is shown.
    Consider this case. in IF1 i have 3 buttons b1, b2 and b3. When i click on b1, i have to load TF2 into region and ts1 as default activity. Like wise if i click on b2 in TF1, i have to load TF2 abd ts2 as default activity. Like wise if i click on b3 in TF1, i have to load TF2 abd ts3 as default activity.
    I have summarized my test case here. Its not exactly 100% same but it more or less like based on some business logic in TF1 i have to load TF2 with specific train stop as default activity.
    Please help me in this regard. Is this possible in ADF? if yes provide some pointers.
    NOTE:
    I'm able to show the specific trainstop as the selected one but its content is not showing. Though i'm able to see my intended trainstop selected but content is always the content related to the default activity configured as part of task flow.
    I have used below code to acheive ( setting atleast intended train stop as the selected on)
    TrainModel trainModel = TrainUtils.findCurrentTrainModel();
    trainModel.setCurrentTrainStop(activityId);
    [activity id i'm getting from model it self like java.util.Map<ActivityId, TrainStopModel> mapTrainStops = trainModel.getTrainStops(); and intended activityId is provided}
    // note end
    Thanks,
    Mahipal

    Hi Jobinesh,
    Thanks for your reply.
    When i try to do the navigation with in the task flow i.e. with in the train task flow, i'm able to navigate fine. But for different taskflow, i'm unable to do it.
    for ex: in my case i have three train stops ts1, ts2 and ts3. I have placed a button in ts3 and i'm returning the respective navigation el expression to navigate to either ts1 or ts2 in action method of this button. I'm able to do this successfully. but when i come from different taskflow, i'm unable to do this.
    I have tried this link as a workaround but it is not working.
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf
    i have tried this way, but it is not working.
    FacesContext fctx = FacesContext.getCurrentInstance();
    ExpressionFactory expressionFactory =
    fctx.getApplication().getExpressionFactory();
    ELContext elctx = fctx.getELContext();
    MethodExpression methodExpression =
    expressionFactory.createMethodExpression(elctx,
    "_adfcActivityRequest./WEB-INF/task-flow-definition.xml#task-flow-definition@*ts3*",
    String.class,
    new Class[] { });
    *//NOTE: ts3 is the activity id of third train stop*
    //queue action in region
    myspaceRegion.queueActionEventInRegion(methodExpression,
    null, null, false,
    0, 0,
    PhaseId.INVOKE_APPLICATION);
    Please let me know any pointers for this problem. is there any example with routers navigation rules which can be called from another task flow.
    Thanks,
    Mahipal

  • How to disable a field in selection screen based on condition.

    Hi,
    I have 2 radio buttons- p_normd, p_recov  and 2 other controls - like text boxes, say tb1 and tb2. and some mandatory fields below.
    If i choose p_normd, i want one control(tb2) to be disabled and if i choose p_recov, i want the other control(tb1) to be disabled(tb2 should be enabled then.)
    Currently i am using the following code. The 1'st radiobutton is intially checked. But the problem is when i click on the 2'nd radio button, the other control(tb1) is not getting disabled. When i double click, i get an error telling mandatory field to be filled. Only after the other mandatory fields below are filled, and after i double click on the unchecked radiobutton, the other control gets disabled.
    Please suggest what to do..
    The current code below:
      AT SELECTION-SCREEN OUTPUT. "ON RADIOBUTTON GROUP rg01.
      LOOP AT SCREEN.
      IF  p_normd EQ c_x  AND screen-group1 = 'SC2'.
            MOVE 0 TO screen-input.
          MODIFY SCREEN.
      ENDIF.
      IF p_recov EQ c_x AND screen-group1 = 'SC1'. "IF screen-name = 'ERDAT-LOW' OR screen-name = 'ERDAT-HIGH'.
            MOVE 0 TO screen-input.
            MODIFY SCREEN.
      ENDIF.
      ENDLOOP.
    Thanks,
    Ammu

    Hi
    declare your parameter as below:
    parameters: p_x type c radio button group g1 user-command r.
    in at selection screen output event .
    check for the radio button.
    loop at screen.
    if screen group is <desired value>
    then screen-active = 0 or 1. <do whatever you want to do.>
    modify screen.
    endloop.
    see below the sample code.
    <<<<<AT SELECTION SCREEN EVENT>>>>>
    AT SELECTION-SCREEN ON BLOCK B1.
      IF P_LCOST = C_X.
        PERFORM CLEAR_FIELDS.    " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 100 STARTING AT 20 5.
      ELSEIF  P_MCOST = C_X.
        PERFORM CLEAR_FIELDS1.          " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 101 STARTING AT 20 5.
      ENDIF.
      IF SY-SUBRC = 0.
        PERFORM VALIDATION.             " Validating selection screen input
      ELSE.
        LEAVE TO TRANSACTION C_TRAN.
      ENDIF.
    <<<<<<DECLARATION PART>>>>>>
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LCOST RADIOBUTTON GROUP GI DEFAULT 'X',
                P_MCOST RADIOBUTTON GROUP GI.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF BLOCK B2.
    PARAMETERS: P_COAREA TYPE CSKS-KOKRS OBLIGATORY,         " controlling area
                P_FYR    TYPE COEP-GJAHR OBLIGATORY,         " fiscal year
                P_PERIOD TYPE COEP-PERIO OBLIGATORY.         " fiscal period
    SELECT-OPTIONS: S_CCNTR FOR V_KOSTL OBLIGATORY,       " Cost Center
                    S_COELM FOR V_KSTAR MODIF ID M1,       " Cost element
                    S_PDATE FOR V_BUDAT OBLIGATORY.       " posting date.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS WINDOW TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF BLOCK B3.
    PARAMETERS:     P_CCODE  TYPE T001-BUKRS OBLIGATORY,         " Company Code
                    P_FYEAR  TYPE COEP-GJAHR OBLIGATORY.         " fiscal year
    SELECT-OPTIONS:   S_GLACC FOR V_HKONT OBLIGATORY,       " G/L Account
                      S_PCNTR FOR V_PRCTR MODIF ID M2,      " Profit Center
                      S_PODATE FOR V_BUDAT OBLIGATORY.      " posting date.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 101.
    thanks
    LG
    Edited by: LalitG on Apr 13, 2011 1:38 PM

  • Display input field on selection screen based on condition

    Hi,
    I have a report with selection with no of  input fields and a checkbox .I want to hide  few i/p fileds based on checkbox i/p.
    If the checkbox = 'X',then only those fields should apper on screen for input.
    how do we get this on sel screen.
    thanks in advance.

    Hi,
    you can use this code as reference.
    Here, depens on check box, in the next screen resepective select options will be displayed.
    You can use this logic for your requirement.
    REPORT Z50871_SELECTOPS_DYNAMIC.
    PARAMETERS : CH_EBELN AS CHECKBOX,
    CH_VBELN AS CHECKBOX.
    DATA: V_EBELN TYPE EKKO-EBELN,
    V_VBELN TYPE VBAK-VBELN.
    SELECTION-SCREEN BEGIN OF SCREEN 100.
    SELECT-OPTIONS : EBELN FOR V_EBELN MODIF ID G1,
    VBELN FOR V_VBELN MODIF ID G2.
    SELECTION-SCREEN END OF SCREEN 100 .
    AT SELECTION-SCREEN OUTPUT.
    IF SY-DYNNR = 100.
    IF CH_EBELN = 'X' AND
    CH_VBELN = ''.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_VBELN = 'X' AND
    CH_EBELN = '' .
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G2'.
    SCREEN-ACTIVE = '1'.
    ELSE.
    SCREEN-ACTIVE = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF CH_EBELN = 'X' AND CH_VBELN = 'X'.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 EQ 'G1'
    OR SCREEN-GROUP1 EQ 'G2' .
    SCREEN-ACTIVE = '1'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN.
    IF SY-DYNNR = 1000.
    IF CH_EBELN = 'X' OR CH_VBELN = 'X'.
    CALL SELECTION-SCREEN 100.
    ELSE.
    MESSAGE I000(Z50871MSG) WITH 'Please select atleast one checkbox'.
    ENDIF.
    ENDIF.
    Regards
    Sandeep Reddy

  • Suppress Decimals for CURR field in ALV Grid based on condition

    Hello All,
    I am displaying records in ALV Grid. For a Company Code, I get the Currency Code from table T001.
    If the Currency is JPY, I want to display the value of CURR field without decimals.
    For example: if the value is 200.00, I want to display only 200
    But if the Currency is other than JPY, I want to display value with decimals.
    For example: if the value is 200.00, I want to display only 200.00
    Also I want the summation function to work on this column, so can't take the field as char field.
    Waiting for useful pointers.
    Thanks in advance,
    Regards,
    Tarun Gambhir

    Hi Keshav,
    Thanks for the reply.
    I have only one CompCode on the selection screen and for that CoCd I will have only one Currency.
    So either all records will be displayed with decimals or all records will be displayed without decimals.
    Can DECIMALS_OUT property of field catalog be helpful in this case.
    For reference you can check: http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649a6f17411d2b486006094192fe3/content.htm
    I am confused over the use of DECIMALS_OUT.
    Please suggest.
    Regards,
    Tarun

  • To disable  fields on the screen based on condition

    Hello folks,
    Iam doing  one module pool program in that in one screen i need to disable the 3 fields based on the value entered in the 1st field.
    for me its working but  after entering the value in field 1
    I need to press enter key then only it is working.
    is it possible to gray those 3 fields just by entering values and without pressing the enter key.
    any suggestion will be rewarded
    Regards,
    cnu

    Hi,
    It is not possible to gray field without pressing enter  key.
    Because a key is pressed it will trigger an event ..i.e PAI .
    So if we dont press enter .System will not do anything.cause it does not know which event to trigger..
    So we have to press enter
    Best regards,
    Brijesh

  • Make Input field readonly at run time.

    Hi,
    I have a input field on a view , i want to make it <b>readonly</b> during run time depending on some value.
    plz help. reward point is sure.

    Hello Manoj
    You can also make the input field readOnly dynamically during run time. For this you need to write a simple code in wdDoModifyView of your view controller. Code is as follows
    IWDInputField inputField = (IWDInputField)view.getElement("<id of inputfield>");
    if(<reqd condition>)
    inputField.setEnabled(false);
    else
    inputField.setEnabled(false);
    Try this, if things donot get much complicated on doing this. I hope it helps u and makes thing simple.
    Regards
    Kapil

  • How to make fields readonly in Interactive Form based on Roles

    Hello All,
    I want to make few fields readonly and also want to disable few fields from the Interactive form based on the role, logged in by user.
    Looking  for a code Snippet on this issue.
    Need help in this Regard.
    Thanks & regards,
    Debasish

    Is the URL you are trying to call a schema.procedure ?
    If so, you need to grant execute privilege on the procedure to the <portal-schema>_public database user.                                                                                                                                                                                                                                                                                                                               

  • How to edit LOV of the status field in activity record type?

    Hi experts
    I just want to edit the list of values of status field in activity record type, it is a read only filed, can anyone tell me if it is possible to edit? seems like it is referenced from a field called "EVENT_STATUS";
    Thanks,
    Tiger

    Tiger, at this time it is not possible to edit the values in this field.

  • How to make Image Field readonly or any other substitute solution

    Hi,
    What is the attribute or property to make an image field in a form read only.
    It is an image field only,not just an image, because I need events on clicking that image.
    But the problem is that when I render the image in the form, when user clicks it shown a browse icon to upload an image in that place. I dont want that to happen. The image by itself should be display only, but I want to process events like "on click"
    Thanks,
    Harish

    Hi,
    U can change the access of any field to read-only using the scripting language "FormCalc". The syntax is:
    in the docReady event of the form:
    <path of the UI field>.access = "readOnly";
    for further info on scripting in Interactive forms:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Hope this helps you.
    Regards,
    Poojith MV

  • Script for Making a Field ReadOnly

    In Oracle CRM ON DEMAND we have the “Status” dropdown field with value as “Completed” in Activities. I have Configure it in a such a way so that the Subject field becomes read only when the status is set to Completed.How to do that.

    Subject is a Mandatory Field on the Activity Object, hence you can't make it read only inspite of using Dynamic Page Layouts. Only way you can do is, by use of Field Validations.
    You can define field validations on Subject or any other field. I prefer to choose a pick list field. Define the field validation on that pick list field following this logic.
    1. If the Status is not Completed, return the current value of the field
    2. If the Status is changed to Completed, return the current value of the field
    3. If the Status is not changed and the Subject is changed, return "Non Existing Pick list value" to the field
    By following the above logic, you can literally do anything. Hope this helps

  • ITunes RADIO is not working.  "iTunes could not connect to the iTunes Store. Make sure your internet connection is active and try again." Try as I may, as many as ten attempts, trying to connect after restart, after shutdown, nothing works. Just so -  iTu

    iTunes RADIO is not working.
    “iTunes could not connect to the iTunes Store. Make sure your internet connection is active and try again.” Try as I may, as many as ten attempts, trying to connect after restart, after shutdown, nothing works. Just so …
    iTunes STORE not “connectable” with my otherwise perfectly-working internet connection, viable, up and running for all other uses.
    Simply put, firstly, I can't connect to the internet when I click on Radio.  People are quite suspicious that this is Apple incompetence or your company's famous arrogance for this commonly-suffered problem that you won't or “can’t” fix.
    Read the many web comments and you won’t be pleased with yourselves: the suspicion is that if you ruin internet radio on iTunes, Apple will somehow make more money on music downloads, etc. Bull.
    Also, thirdly, my old playlist of 20 or so internet radio stations in the Ambient category STILL PLAYS !
    Then fourth, I installed the latest available version of QuickTime Player 7.app Version 7.6.6 but it didn’t solve the problem either. I had QuickTime Player.app Version 10.2, but substituted what Apple website said was the latest, LOWER NUMBERED QuickTime Player version of 7.6.6
    Fifth, I can't connect to iTunes store no matter what I do or what user group's advice I try. So I can’t buy or download anything from iTunes. Bad for business.
    Sixth, I updated to the latest version of iTunes but this weird problem remains. All suggested Apple fixes or user group fixes are useless. Where is Apple’s famous technical competency, vaunted customer support?, and user-friendly product reputation? Get it back, please.
    Solve this problem of yours ASAP for us, your numerous disgruntled, dissatisfied customers of iTunes. You can do better, should, and really –in all fairness- must.
    ===============================================================
    NOTE:  no password for iTunes exists in my Keychain. Is this a problem?
    Apple ACCOUNT ID, and iTunes ID password, works but not to access iTunes with my healthy internet connection.
    Apple store id It works via direct internet connetion but not through iTunes.  Very strange.
    ===============================================================
    FYI, Hardware Overview:
      Model Name:                       MacBook Pro
      Model Identifier:                 MacBookPro8,2
      Processor Name:               Intel Core i7
      Processor Speed:               2 GHz
      Number of Processors:    1
      Total Number of Cores:    4
      L2 Cache (per Core):         256 KB
      L3 Cache:                            6 MB
      Memory:                              16 GB
      Boot ROM Version:            MBP81.0047.B27
      SMC Version (system):      1.69f4
      Serial Number (system):   C0*******F8V
      Sudden Motion Sensor:
      State:   Disabled
    Intel 6 Series Chipset:
      Vendor: Intel
      Product:            6 Series Chipset
      Link Speed:       6 Gigabit
      Negotiated Link Speed:           6 Gigabit
      Description:      AHCI Version 1.30 Supported
    M4-CT512M4SSD2:
      Capacity:           512.11 GB (512,110,190,592 bytes)
      Model: M4-CT512M4SSD2                         
      Revision:           040H   
      Serial Number: 0000000012330912E75A
      Native Command Queuing:    Yes
      Queue Depth:   32
      Removable Media:        No
      Detachable Drive:        No
      BSD Name:         disk0
      Medium Type:      Solid State
      TRIM Support:     Yes
      Partition Map Type:     GPT (GUID Partition Table)
      S.M.A.R.T. status:         Verified
      Volumes:
    disk0s1:
      Capacity:           209.7 MB (209,715,200 bytes)
      BSD Name:         disk0s1
      Content:            EFI
    disk0s2:
      Capacity:           511.25 GB (511,250,432,000 bytes)
      BSD Name:         disk0s2
      Content:            Apple_CoreStorage
    Recovery HD:
      Capacity:           650 MB (650,002,432 bytes)
      BSD Name:         disk0s3
      Content:            Apple_Boot
      Volume UUID:   600737FB-7A29-3BAE-859E-CBFE2E90C39A
    <Edited by Host>

    This my sound too simple, but I just kept clikning on the arrow next to the selected music and it finally "Kicked" in.
    I live in Europe ,So Be persistent and don't give up !  Aug. 2013

  • Can we remove the default status field from OIM

    hi,
    even when my i am not mapping any field to the OIM status field , it is taking Active as default value. i dont require that field so is it possible to remove the default status field of OIM.
    i am using database GTC connector for trusted recon.

    User will always have a certain status like Active, Disabled etc, so even when you doesn't map it to any attribute the OIM solution calculates it with the help of the user's Start Date, End Date etc.
    A user is bound to have a status.
    Thanks
    Sunny

  • How to make the Reference field in the in Accounting Tab a required field.

    Hi,
    Can i make the REference field in the Accounting tab required. I want to enter contract number from RE in that field.
    Thank you.
    Rachelle

    Hi,
    Goto t.code OVA2 select A-sales header and then click on procedures in the left--> select the procedure in which you want to incolude this field and new entries the table name is VBAK and field is XBLNR for the reference field in the accouting tab and accordingly assign the status 01 or 02 as per your requirement.
    Then you need to assign the incompletion procedure to the sales document type in VOV8.
    Regards,
    Gopal.

  • I created a Custom list New Form and need to make the text fields read only

    When I use SharePoint Designer and add the read only attribute  to the  SharePoint form field, then it throws  a web part error.
    but here is the thing, I have current user Filters populating the Form Fields. So the form fields  populate First name , last name etc. and I need these fields read-only....
    the Client doesn t want the end user to Change those fields.  Is there any way to "LOCK" the form fields?
    As I have only 7 text fields that need to be locked down. and one field is a signature line that is a true input field.. where the  user has to inter their initials.
    Any ideas? as I have tried most of the items available thru searches nothing works, or it throws that web part error message.
    Steve Athey

    Daniel: ( I'm now at work, a different ID is logged on for me)
    I used SharePoint Designer.
    Steps:
     created a web part page
    then on the SharePoint Designer ribbon I then went to insert:
    new item form
    Then I selected my data source (list)
    then I placed the 8 columns on the page
    a page viewer web part to pull the manual that people have to read.
    and 7 current user filter webparts. (1 for each form field) Yes it is over kill, but I'm trying to keep this straight out of box as much as possible...
    then for the form fields
    I added a parameter and the read only tag see below in bold:
    <asp:TextBox runat="server" text="{$ParamEmployID}" id="ff17{$Pos}" __designer:bind="{ddwrt:DataBind('i',concat('ff17',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Employee_x0020_ID')}" 
    ReadOnly="True" />
    I also  added the parameters in the ribbon area
    the error message doesn't tell me much, it just send me to web part maintenance page... 
    if I removed the  ReadOnly = True then the error  goes away.....   So I was trying to find a  quick simple  JQuery and or javascript   code item that would  make  the 7 text fields readonly and leave the
    8th  text field alone  to allow people to place their initials on the page to say that they read the manual.
    I have  created hundreds of these types of pages .. this is the first time I have run into this issue, but it also the first time I have tried to use the ReadOnly = True item.
    Any Ideas  and or thought on how to make the  items read only? and not throw the error.
    Steve

Maybe you are looking for

  • KSOAP in MIDP

    im new to MIDO. im developing a MIDP using kSOAP. My service returning arrays. How to do I use those arrays ? as Netbeans also not allowing to use split function to convert that string into array.

  • New to this. how do I move a book series on Adobe ID from latop to kindle?

    I'm new to adobe Id need help moving a book series downloaded onto my laptop (adobe ID) to my Kindle.

  • Post Reinstall Problems

    Due to a corruption issue with Tiger, I was forced to do a complete reinstall of 10.4. Before reinstall I backed up my Applications folder and User folder with all my documents. I was able to successfully copy all my documents back to my iMac after t

  • How to copy and modify the existing page layout

    I have page layout which has 3 webpart zones. i need to modify and save as new page lauyout with 5 webpart zones. can someone guide me the steps.

  • My saved passwords have disappeared.

    My saved passwords have disappeared. I saved a new password, closed Firefox & when I reopened Firefox the new password had also disappeared. What gives?