Changing the readOnly attribute of fields in a JHeadstart generated table

Hey Folks,
I'm trying to set the readOnly attribute on a bunch of fields in a jheadstart generated uix table based on a http request param, using a <boundAttribute>. For some strange reason, the value of the param is ALWAYS seen as true within the table, no matter what the param actually is set to. I have other fields that are NOT part of the Jheadstart generated table, and it is working fine. However, when I try and apply the boundAttribute to the uix table, the readonly attribute is always seen as true. Why is this? Wouldn't the http request param be the same throughout the page no matter if it was in a uix generated table or not? What am I doing wrong? I'm using Jdev 10.1.2 and Jheadstart 10.1.2.2, using struts/uix.
Thanks!

Sure. First, note that this page submit to itself. Previewmode is a request param that gets toggled to true or false each time the page loads through a seperate boundAttribute.
Here is the code for one of the fields on the uix table:
<messageTextInput id="${ui:concat('DetailsInClaim:ProcRevDrug:',uix.current.tableIndex)}"
model="${uix.current.ResubmitProcRevDrug}"
text="${uix.current.ResubmitProcRevDrug}"
name="ProcRevDrug"
promptAndAccessKey="&amp;Procedure / Revenue"
rows="1"
maximumLength="12"
columns="5">
<boundAttribute name="readOnly">
<if>
<not>
<comparison type="equals">
<convert javaType="string">
<dataObject default="${!param.previewMode}"/>
</convert>
<fixed text="true"/>
</comparison>
</not>
<fixed text="true"/>
<fixed text="false"/>
</if>
</boundAttribute>
</messageTextInput>
However, our consultant figured out that applying the value of ${param.previewMode} directly to the readOnly attribute WITHOUT using a bound attribute actually worked. (within the messageTextInput tag do readOnly="${param.previewMode}"
Not sure why that would work as when a <boundAttribute> would not.

Similar Messages

  • Change the content of a field for a record in table

    Dear guru ,
    i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    Can you explain me the flow to run this ?
    Thanks.

    >
    CONS  SAP wrote:
    > Dear guru ,
    > i know that there is chance to change the content of a field for a record in table using SE16 for the table involved and debugging.
    > Can you explain me the flow to run this ?
    > Thanks.
    Hi CONS SAP,
    You can use se16n transaction. This is very user friendly trnasaction. You may use it like this:
    1) Start transaction SE16n.
    2) Type the table name and press ENTER.
    3) Type the string "&sap_edit" into the command line and press Enter.
    4) Enter your selection criteria and press F8.
    Now you can easily change/delete/add the lines you want and then save.
    All Changes are recorded in the tables SE16N_CD_DATA and SE16N_CD_KEY.
    But I would request you to keep in mind the suggestions from Vijay Babu Dudla
    >
    Vijay Babu Dudla wrote:
    > if you are trying on some test table then it is ok. but don't update any transactional data like that. it is not good practice.
    >
    Many regards,
    Ravi.

  • To Change the Readonly Property

    Hi,
    In Portal  Personal data Screen for belgium , Country of Birth field (Drop Down Box) is  Read Only.
    We have to change the readonly property.
    I tried through iView personalisation ,the property of that field is Not readonly.
    2) In the WD java Application  the field property is  NORMAL .
    3) I have checked in V_T588MPROPC, there also we dont have any entry for this field.
    In Backend ECC this field is editable ,
    Can any one please let me know where should i will change to make this field as Editable.
    Regards
    Alexi

    Please check the following tables:
    V_T005
    V_T588MFPROPC
    V_T588MFPROPS
    T77WWW_SC
    V_T582ITVCHCK
    Note 1498555 - How to make a field mandatory or optional in ESS
    "V_T588MFPROPC only makes the field mandatory, optional or unused
    by the back-end business logic checks it will not change a
    UI display property like Read-Only
    You could try the Personalization options - Ctrl and Right
    mouse button over the UI element (either in the browser
    or in a PCD preview - for global changes for all users)
    - please check there for options to change the country
    field to editable
    However I suspect the field is read-only because
    1) You are on a lower release than EHP3 -foreign address
    maintainence via Country field is only available
    as standard from EHP3
    2) You do no have EHP3 business function HCM_ESS_CI_1 switched on
    these business functions activate foreign address functionality
    3) You are editing a record - try instead creating a new record
    4) Inconsistency in V_T7XSSPERFORADD - check this against client 000
    Hope this helps identify the problem

  • Changing the label of a field in SAP GUI

    Hello SAP Guys,
    I would like to change the label of a field in SAP GUI.
    I already did it internally because for that field the Shor Text of the label changed:
    I went to SE11, and wrote down the appropriate data element, through Translation I changed the entries of SCRTEXT_L, SCRTEXT_M and SCRTEXT_S and activated this change after saving.
    It is very strange that after making sure that the
    Short Text of that field was changed, I went to trx BP and I could see that the label didn´t change.
    I´ll appreciate any help you can give me,
    Regards,
    Efrain

    Hi Efrain,
    Can you tell me in which screen did you make the screen.
    Moreover the changes are not reflected immediately.
    What you can try is to create a new record of the transaction in which you changed the label and save the recore. After this try to close the session and reopen the transaction and this should work.
    The reason is the label on the screen are not picked up from the data element everytime but from buffer. So when you create a record this updates the database table entry and can also refresh the buffer.
    I had the same problem in BP transaction and the above solution worked.
    Let me know if this helps.
    Jash.

  • Error while changing the Display Attribute into Navigational Attribute

    Hi all.. Gud Mrng.
    I was changed the attribute (product) from display attribute into navigational attribute and while save and activating the info object it is not getting activated and it is throwing the below error message.
    Error Message: u201CThe Info object is being used in several data targetsu201D
    My Questions:
    i)     Do I need to delete the data from all the data targets (where this info object is using)??
    ii)     Do I need to delete data only from the main info object (Zmaterial)? Is this single action enough?
    Please suggest me which action I need to follow & What are the precautions need to take while changing the Display Attribute (product) into Navigational attribute of info object (Zmaterial).
    Thanks in advance.
    Thanks & Regards,
    B Venugopal

    Hi Garima
    Only in case of key figures we cannot change it from display to navigational.
    If the info object is a characteristics then in the General tab of the info object if you select 'attribute only' then the iobj would be a display attribute only. If you leave it unmarked then you can use the iobj as a navigational atribute.
    I am sure you know that these settings only mean if a IOBJ can be used as display or navigational.  To  use it as a navigational within another object you will have to change the settings from 'DIS' to 'NAV' for the said info object in the 'Attributes' tab of its parent info object.
    Further if you use the parent info object in any data target / infio provider you will have to further mark the info object as 'navigational' while defining the attrbute of the said data target / info provider. The info object gets displayed in the data target / info provider attribute properties as 'parent IOBJ_info object'
    Cheers
    Umesh

  • How to change the lenth of existing field in sap standard table

    Hi all,
    can anybody help,my requirement is, how to change the length of existing field in sap standard table....
    thanks in advance..

    Which field are you thinking of in particular?  Are you wanting to increase or decrease the length?
    Some fields are used so extensively that a change to their length will mean adjusting many tables, some of them potentially very large, and hence taking a long time to adjust.
    Some standard SAP programs expect certain fields to be of specific lengths and won't work if the length is changed.
    Some screens could cease to work.
    If you decrease length, then you could lose data.
    matt

  • How to change the text of a field in organisational assignment.

    hi gurus,
    how to change the text of field MSTBR (super visor) to a differnt name in info type pa0001.
    i have changed the field name in cmod , changed name appears in table.but it is not appearing in the info type screen 0001.
    how to resolve this pls help me..

    hi,
    The Field showing in the infotype 1 is FORPR.
    Change the text of this Field in CMOD.
    CMOD ->Go to ->tect Enhancements->keywords-> Change ->FORPR
    Change the text and check again.
    Regards,
    Manoj.

  • Cr XIR1 to create a custom function to change the timestamp of a field

    Post Author: palm
    CA Forum: Crystal Reports
    Hi,
    I am trying to create a custom function to change the timezone of a field in the report depending on the timezone selected by the user in the prompt
    I wrote a SQL Expression to do this , but i ended up creating a bunch of expressions for each time zone ,
    So i am thinking of custom fuction some thing like
    TimeZoneConvertor:
    Fuction(TimeStampField ,  Timezone)
    Returns: Timestamp field with newtimezone as selected by user
    Hope you get this and please give me some kind of ideas to acheive this
    Thanks in Advance!!!!!!!!

    Hi
    goto se37...here u need to create a function group... then u need to create a function module. inside assign import/export parameters. assign tables/exceptions. activate the same. now write ur code within the function module
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Look at the below SAP HELP links, These links will show you the way to create a Function Module
    http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm

  • Changing the ImageData attribute of a list viewnode..

    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

    I discovered what was wrong with what I did.
    You have to an UpdateFieldFromData() on the DisplayNode object of the
    listview to get refreshed. Doing an UpdateWindow/UpdatefieldFromData on
    the ListView widget doesnot work!!
    Thanks.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]
    -----Original Message-----
    From: Lee Wei [SMTP:[email protected]]
    Sent: Friday, February 13, 1998 9:29 AM
    To: Singh, Inder Jyot
    Subject: Re: Changing the ImageData attribute of a list view node..
    I tried the situation you described and saw the same problem.
    You should probably let Tech Support know and file a bug.
    Lee Wei
    At 09:25 AM 2/13/98 PST, you wrote:
    >
    Hi,
    I am trying to change the Image Data attribute of a list view node after
    a user clicks on it. But it just doesnot get reflected in the listview.
    UpdateFieldFromData()/UpdateWindow() donot do the job either.
    I could ofcourse clone the node, change it's ImageData, remove the old
    node, insert the new one and then do a SetViewNodes(), but that is really
    not the solution!!
    Has anyone been in this situation before??
    Thanks in advance.
    Inderjyot Singh
    Indus Consultancy Services
    201-261-3100 x232
    [email protected]

  • How to change the caption of a field with a button?

    I have serious trouble, don't know why, in order to change the caption of a field.
    I can't do it with a button as in any other way...dropdown list, ecc...
    Assumes that we have a button and "on click" i want to change the caption of a numeric or text field.
    form1.ppp.Button1::click - (FormCalc, client)
    NumericField1.caption.value.text.value = "whatever you want to set it to";
    TextField1.caption.value.text.value = "whatever you want to set it to";
    xfa.form.form1.ppp.NumericField1.rawValue = xfa.form.form1.ppp.NumericField1.rawValue + 1;
    The numerical value inside the numericalfield1 is increased each click...but the caption still the same.
    Why this happen?
    I check many threads on this forum and on google and i still find these samples...
    please help.
    Thank you

    Yes, it is. Also in preview i checked "dynamic XML". is it right?
    i try to download this sample while searching in the forum to solve my problem
    https://acrobat.com/#d=pxtis4z3OxCqWxajZwDS2Q
    i try to add to that form my code and it's work!! i can't undersand why...
    Below you can find my PDF...i can't understand why here the same code doesn't work
    http://www.hsc350.it/download/Untitled2.pdf
    Thank you again!

  • Change the description of a field in a SAP QUERY

    Can i change the description of a field in a SAP QUERY report in the output of the report.or only the standard descriptions can be displayed.
    Edited by: mysap query on May 12, 2009 7:23 AM

    HI,
    in query maintenance (sq01) you can change the text of the field at the selection screen (change the selection text in the screen where you choose the selection fields) and the header text in the output list (basiclist maintennace , go to "basic list header", double-click each header field to maintain the text). This change is only for the particular query. No ABAP-er required to do so.
    BR Christian

  • Changing the text of Text field in standard SAP transaction.

    Hi expert,
    I have a requirement in which i have to change the text of Text field in standard SAP transaction.
    Is it possible? If so, how?
    Any pointers will be highly appreciated.

    Hi,
    I think you want to change the field label of the text field.
    For ex in tcode MM01, you can change the field label of Material text field.
    The description of the field label comes from the data element it is associated with. To change the text of the field label, you have to change the field label of the data element.
    But it will effect all the fields associated with this data element.
    To change the field label of the data element go to tcode CMOD. Then click on GOTO->TEXT ELEMENTS->KEYWORDS->CHANGE.
    Then enter the data element which is to be changed. In the next screen, change the field label and save it.
    Regards,
    Vinod

  • Changing the naming attributes of o to ou

    Hi ,
    I need to change the naming attribute of 'o' to 'ou' so that whenever i create an organisation it will be referred to ou instead of o .Is there a way to do it?

    I don't know how to do that, but it sounds awfully dangerous to be making a fundamental change like that. Why not just use the OrganizationalUnit objectclass instead? I took a quick look at the schema and they use the same attributes, except for "o" and "ou".
    Just my $.02,
    Roger S.

  • Help in changing the size of a field length.

    hello,
    i need to change the size of a field in the table PAYR for the field CHECT.
    Present size is 13. I want to make it as 20. Is there any OSS notes for this. If yes, Please let me know how to implement that.
    Thanks
    Senthil

    I hope there will not be any note for this.
    Please follow the procedure.
    Go to the domain and Check the domain where it is used and meke sure that it will effect all the tables where it is embeded.
    If you want to change this leangth you have to take the OSS key for that hope you have service.sap login id right.
    There you have to  give the details of that domain object and go for the generate key.
    The domain details you have to provide while generating the key .
    these details we will call it as object directry enties.
    Take all those things and give while you are genereating the key.
    Hope you will do it.
    Regards,
    Madan.

  • Changing the Default meta data field property required into not required.

    Hi,
    Is it possible to change the default meta data field property values in UCM server.
    For example consider the meta data Revision field which property required is true, then how to change this property required into not required.
    Is this possible or not?
    Thanks
    Hari

    Hari,
    in your case (if you don't want to use versioning) I'd rather recommend to change it to hidden than not required. You should be able to do it with standard profiles (the field name, I believe, is dRevision)
    I don't think you can have the field empty (in case someone deletes the content).

Maybe you are looking for