JDev 10.1.2: How to update an attribute which is rendered as read-only
Hello guys, I hope someone can help me with this, I think it should be something easy to do:
I have a UIX page which renders an input form to update a record, in this input form I want to display (as read-only) the user id which is performing the update, but I want the record to be updated with the user id. I have the user id available from another binding.
If I put the input box as editable the attribute is updated, but If I set it read-only it isn't.
Do you know how can I do this?
Thank you.
Ok... I solved it, though I don't think this is the right way.
SOLUTION:
I inserted a formValue into the UIX page like this:
<formValue model="${bindings.AttributeToUpdate}"
value="${bindings.TheValue}"
name="VB_AttributeToUpdate" />The formValue name is very important and must start with VB_ followed by the name of the attribute to update. I figured out this by looking at the generated html code when I inserted the "AttributeToUpdate" as an editable inputtext, it uses the VB_ prefix and was the only way to get the attribute updated.
Thanks anyway, and if someone knows of another way to do this I'd like to know it.
Bye.
Mensaje editado por:
Fer Domin
Similar Messages
-
How to update a version 6.0 of Acrobat Reader Professional when upgrading windows XP to 8.1 ?
There is no product called Acrobat Reader Professional. There are two possibilities with different answers.
1. You have Acrobat Professional (no "Reader"). You will have to buy the latest, Acrobat 11 (XI) Pro. No upgrade pricing is available for version 8.
2. You have Adobe Reader (no "Professional"). You can download the latest free Adobe Reader http://get.adobe.com/reader -
Help. After updating my software my external disc is "read" only. How do I change it back to Read and Write?
ThanksHave you formatted it for Mac using Disk Utility?
If not, open Disk Utility (Applications>Utilities folder) and select the drive to the left. Make sure that you select "Mac OS Extended (Journaled)" and then the erase button.
If you have already formatted the drive, call back...
Clinton -
How can I get a birthday reminder from items which are in the read-only cal
I am looking for a solution to get a reminder message for birtdays which are within the read-only calender imported/updated from he address book. I so far have not found the option where to turn on the reminder and I do not want to duplicate items (ie creating another birthday calender inside iCal).
Thanks for comments.
PB G4 Ti, 1GHz, 10.2.8 Mac OS X (10.4.7)Hi ontour,
This limitation is one of the many reasons I wrote Dates to iCal. It is a replacement for the Birthdays calendar in iCal, so you would need to turn the Birthdays calendar off in iCal's preferences.
See here: http://discussions.apple.com/thread.jspa?threadID=466478
Best wishes
John M -
How can we make the ms-word data as read-only using java code?
How can we make the ms-word data as read-only using java code?
MVSK wrote:
By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead. -
How to update marketing attributes in sap crm 7.0
hi sap gurus,
I want to understand how to update the marketing attributes in sap crm, basically I want the logic to update the marketing attributes in the system. which tables I should verify & then I need to write an abap program to update/modify the marketing attributes.I know the beginning validations, the bu_group =zul1-outlet master from but000 table , after that I am stuck up with the logic. I know the field which I need to update: in table cabnt, atinn field.
Edited by: packframe2585 on Feb 23, 2012 7:47 AMHi,
i´m using FM CRM_MKTBP_MAINTAIN_OW. But this is also not very good from a performance point of view.
Kind regards
Manfred -
How to update xml attributes as multiple rows
I am new to this technology, but i need to show the result
in xml document i have to update these attributes get from Databse utility class.
<equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">
<equipment object="" manufacturer="" part_number="" type="" model="" items="" accessories="">By using XSLT Doucment i have to show this in table format multiple rows of data.
I'll be happy if anyone tell me the example.Now the changed data must be exported back into the XML file, meaning that the content of certain elements must be updated. How can this be done with XSLT?
XSLT approach: check these online tutorial
http://www.xml.com/pub/a/2000/08/02/xslt/index.html
http://www.xml.com/pub/a/2000/06/07/transforming/index.html
ABAP approach:
for example you have the xml (original) in a string called say xml_out .
data: l_xml type ref to cl_xml_document ,
node type ref to if_ixml_node .
create object l_xml.
call method l_xml->parse_string
exporting
stream = xml_out.
node = l_xml->find_node(
name = 'IDENTITY'
ROOT = ROOT
l_xml->set_attribute(
name = 'Name'
value = 'Charles'
node = node
(the above example reads the element IDENTITY and sets attribute name/value to the same)
like wise you can add new elements starting from IDENTITY using various methods available in class CL_XML_DOCUMENT
so how do I access the XML file in order to update it?
you have already read this XML into a ABAP variable right?
Sorry couldnt understand your whole process, why do you need to read local XML file?
Raja -
HT4623 how to update iphone 2g which has country lock
pls tell me how to update my iphone 2g phone with laetst version which has the country lock
The same way every other model of iPhone is updated, plug it into iTunes.
If it is the original iPhone, the most current version of iOS supported is 3.1.3.
If it is the 3G iPhone, the most current version of iOS supported is 4.2.1.
The 3GS and newer models can all be updated to the current version of iOS, which right now is 5.1.1. -
How to Update Extended Attributes For the Users in SRM Organization?
Hi,
I am using 'BBP_UPDATE_ATTRIBUTES' function module to load the Default Attributes for the users in a custom program. I am able to update many attributes like company code, Movement type, catalog id, material usage, shop on behalf of and address ship to. But I am having problem updating extended attributes Plants(Attribute ID 'WRK') and Storage Locations (Attribute ID 'LAG').
Storage location and Plants has many values. Can anyone have experienced this problem before. I appreciate any help I get. I debugged enough and not able to find any other function module to do this.
Thanks and Regards,
Sreeni..Hi Sreeni,
I'm stuck up in the same problem. Did you get any solution for this? If yes please provide the same.
Regards,
Gajendra
Message was edited by: Gajendra Bhatt -
How to update a column which has 35 millions of rows?
Hi everyone
need help
I am updating a column which has 35 millions of records. When i start update, it is taking like > 60 mins and its not stoping (finishing).
I need to null that column A, and update that column A with the other column B values.
Thanks
kumarThree common causes for big updates that are slow:
blocking. You can check whether the UPDATE is waiting on another connection to release locks using sp_who2
improperly sized log file. A big update may use of a lot of log space. If you log file is too small, and you have auto-grow enabled (which is the default setting), it will grow whenever needed. But this takes a lot of extra time. You can easily see this
when you view the file size of the log file
if the column you are updating is indexed, the engine may also you tempdb a lot, so tempdb may also grow a lot, which would take a lot of additional time. This is also easy to check by inspecting tempdb's file size
Gert-Jan -
UIX: How to add linked view table columns to the Read-only table
Hi
I have two tables
T1: ID, STAFF_ID, NOTE
T2: STAFF_ID, USERNAME
I have created corresponding entity objects (E1, E2), views (V1, V2), association A(E1->E2 as *..1 using STAFF_ID) and viewlink VL(V1->V2 as *..1 using association A).
My model in AppModule looks like
V1
----V2 via VL
Now I have single UIX page in which I drop V1 as Read-only table. The table displays columns correctly: ID, STAFF_ID, NOTE
What I want is to add a column STAFF_ID from the V2 into this table. I have tried to drop it into the table but when the page is run it does not display anything in that column. It has to do something with binding.
I have done similar test with dropping V1 as read-only FORM and then added STAFF_ID from V2 as messageTextInput and everything is rendered correctly.
Anyone knows how to do the same thing but with table?Yes that is true but I would like to give another example where this may not apply.
Say I have 3 tables
CLIENT(INDIVIDUAL_ID,...)
ADDRESS(ADDRESS_ID,...)
ADDRESS_HISTORY(ADDRESS_ID, INDIVIDUAL_ID,BEST_ADDRESS)
where ADDRESS_HISTORY is intersection table in CLIENT to ADDRESS many to many relationship.
Suppose I have VO2 that consists of ADDRESS and ADDRESS_HISTORY entities (corresponding association exists) and user needs to add new address for the selected customer in VO1 (made from CLIENT entity). There are several issues here:
1) An input form made out of VO2 must contain an entry for BEST_ADDRESS flag but since it will be read-only, seems that this approach may not work. However, I found a post re:Updating view objects with multiple entities that provides workaround this.
2) In that case assume that I use DBSequence to automatically add ADDRESS_ID when user inputs new record in this input form. I am using DB Trigger on ADDRESS table and have selected ADDRESS_ID in ADDRESS entity as DBSequence. Now observe that VO2 would contain another ADDRESS_ID from ADDRESS_HISTORY entity which has to be automatically populated with the same value. How?
In a nutshell my question relates to the problem how to automatically populate intersection table when new record is added to the detail. But the trick is that some attributes of the intersection table must be inserted by the user in the form..
Please advise -
How to make sub sites in SharePoint 2010 as Read Only
Hello,
We have a requirement to make sub site as read only in SharePoint 2010 programmatically.
How we can achieve it using Server Object Model ?
Thanks,
HatimHi,
You can write a WinForm program, and use
SPSecurableObject.BreakRoleInheritance method to achieve your requirement.
More information for your reference:
http://fangdahai.blogspot.com/2012/09/how-to-set-sub-site-in-read-only-mode.html
https://social.msdn.microsoft.com/Forums/en-US/1f836da6-88ea-4d88-9e43-3383d139ca01/what-is-the-idea-of-stop-inheriting-permission-from-parent-site?forum=sharepointdevelopment
Best Regards
Dennis Guo
TechNet Community Support -
How to edit files in Microsoft office that are read only?
So I copies all of my documents using migration assistant. Now when I go to edit a file in Word or Excel, it won't let me save the document under the same name, it says I opened it in read only. How can I correct this?
Cieritaqt wrote:
So I copies all of my documents using migration assistant.
was it transfered from a pc? -
How and Where to change ESS payslip property as READ only Mode
Hi,
We are SAP ECC5.0 and using EP6 for ESS payslip. We have a problem
launching ESS payslip for those employees who have Acrobat Editor and
Reader installed. One can actually change the payslip information via
Acrobat Editor when click onto PRINT button.
However, for those without Acrobat Editor installed in the PC, we do
not have such problem. Please advise how to resolve this.
Was told to change ESS payslip property as READ only Mode. Unable to find this in the configuration setting.
Thanks.You may further look at the following help link:
http://help.sap.com/saphelp_nw04/helpdata/en/97/ccfc3f0ac2c642e10000000a1550b0/frameset.htm
If it helps, pl do reward.
Thanks
Narasimha -
After 10.5.3 update, Time Machine disk getting set to read-only
"The Further Adventures of Time Machine..."
Since applying the 10.5.3 update, Time Machine (or something) seems to be randomly setting my backup disk (external Western Digital "My Book Studio Edition" 500GB) to read-only which, of course, brings Time Machine backups to a halt. I can generally just restart my MacBook Pro and all is well again but then after a few more hourly backups, it will go back to read-only status again. There's a couple of things about this that are odd:
1) Even if I open "Get Info" and try to reset the permissions on the drive, I'm locked out of doing so even though I'm the admin. What's even odder (more odd?), my user and "staff" show read & write but about the user name list, it states "You can only read"!?
2) I have this disk partitioned and even the partitions are read-only. Disk Utility reports the entire disk is locked.
Like I said, this has only start happening since 10.5.3 update.
Regards,
TerryHere's the latest:
Also, the time machine back up drive had been smooth sailing since I hooked it up. Never had an ounce of problems until 10.5.3.
Format is Mac OS Extended.
Thanks.
CP
Last login: Mon Jun 9 18:36:23 on ttys000
cpstaley:~ cpstaley$ ls -aleO@ /Volumes/iMac\ Back-Up
total 9008
drwxrwxr-t@ 35 root admin - 1258 Jan 3 20:22 .
com.apple.FinderInfo 32
drwxrwxrwt@ 7 root admin hidden 238 Jun 5 21:04 ..
com.apple.FinderInfo 32
-r-------- 1 root wheel - 16 Dec 31 20:43 .0011243977f4
-rw-rw-r--@ 1 cpstaley admin hidden 12292 Feb 18 21:26 .DS_Store
com.apple.FinderInfo 32
-rw-rw-rw- 1 cpstaley cpstaley - 862 Dec 31 16:12 .MaxSyncConfig
drw------- 3 root admin hidden 102 Dec 31 20:43 .Spotlight-V100
drwxrwxrwt@ 3 cpstaley admin hidden 102 Jan 3 20:22 .TemporaryItems
com.apple.FinderInfo 32
d-wx-wx-wt 2 root admin hidden 68 Jun 5 16:46 .Trashes
-rw-r--r--@ 1 cpstaley admin hidden 135038 Jan 1 20:15 .VolumeIcon.icns
com.apple.FinderInfo 32
-rw-r--r-- 1 cpstaley admin - 59078 Aug 31 2007 .VolumeIcon.icns.candybarbackup
-rw-r--r-- 1 root admin - 0 Dec 31 19:52 .com.apple.timemachine.supported
drwx------ 96 root admin - 3264 Jun 5 03:30 .fseventsd
drwxrwxr-x@ 122 root admin - 4148 Dec 31 15:49 Applications
com.apple.FinderInfo 32
drwxr-xr-x+ 3 root admin - 102 Dec 31 20:44 Backups.backupdb
0: group:everyone deny addfile,delete,add_subdirectory,deletechild,writeattr,writeextattr,chown
-rw-r--r--@ 1 root cpstaley hidden 6656 Dec 31 19:50 Desktop DB
com.apple.FinderInfo 32
-rw-r--r--@ 1 root cpstaley hidden 11522 Dec 31 19:30 Desktop DF
com.apple.FinderInfo 32
drwxrwxr-t@ 48 root admin - 1632 Dec 31 15:49 Library
com.apple.FinderInfo 32
drwxr-xr-x 2 root wheel - 68 Dec 31 15:52 Network
drwxr-xr-x 4 root wheel - 136 Nov 26 2007 System
lrwxr-xr-x 1 root admin - 60 Dec 31 19:19 User Guides And Information -> /Library/Documentation/User Guides and Information.localized
drwxrwxr-t 7 root admin - 238 Dec 31 19:34 Users
drwxrwxrwt@ 3 root admin hidden 102 Dec 31 16:33 Volumes
com.apple.FinderInfo 32
drwxr-xr-x@ 4 root admin hidden 136 Aug 30 2007 automount
com.apple.FinderInfo 32
drwxr-xr-x@ 40 root wheel hidden 1360 Nov 26 2007 bin
com.apple.FinderInfo 32
drwxrwxr-t@ 2 root admin hidden 68 Mar 22 2005 cores
com.apple.FinderInfo 32
dr-xr-xr-x 2 root wheel - 68 Dec 31 15:51 dev
lrwxr-xr-x@ 1 root admin hidden 11 Dec 31 19:19 etc -> private/etc
com.apple.FinderInfo 32
-rw-r--r--@ 1 root wheel hidden 4352200 Oct 10 2007 mach_kernel
com.apple.FinderInfo 32
drwxr-xr-x@ 6 root wheel hidden 204 Dec 31 15:51 private
com.apple.FinderInfo 32
drwxr-xr-x@ 63 root wheel hidden 2142 Dec 26 13:32 sbin
com.apple.FinderInfo 32
lrwxr-xr-x@ 1 root admin hidden 11 Dec 31 19:19 tmp -> private/tmp
com.apple.FinderInfo 32
drwxr-xr-x@ 9 root wheel - 306 Sep 10 2007 usr
com.apple.FinderInfo 32
lrwxr-xr-x@ 1 root admin hidden 11 Dec 31 19:19 var -> private/var
com.apple.FinderInfo 32
Maybe you are looking for
-
Hard Drive not mounting on start up, or not mounting at all.
Recently, as some of you may know, I've had hard drive problems. I didn't get it fixed, but the problems came and went and I didn't have time to send it away. But 2 weeks ago, before I went on holiday, I ran TechTool Deluxe which came with my 3 year
-
Hi I followed the plumtree enterprise dev tutorial on the plumtree site on multiple branding using different url host headers, using custom activity spaces and PEI, making calls when login action events are triggered. It works for the most part, exce
-
Sharepoint 2010 takes 15 minutes or more to load
Hello, in past days made a change to our intranet url to change the port, but to return it to the previous port which was 80 takes a long time to load pages. The url of the document itself opens quickly. Reviewing the log we find this error: An exc
-
Hi, I have created a ui5 page and i want to apply style to it. so can anyone help me with the process on how to use the separate css file and style the different elements. Thanks
-
With the release of Flex 2.0.1 Mac version apparently coming on Monday (MacWorld), does anyone know if there will be an updater for Windows? If so, any hint to what new features/bug fixes are in the works?