Globally setting read-only classes
Is there any way to globally set all 1-1 mappings to
read-only AND have them write out the columns(s) on the
object they represent. I would like to do this without
having an additional direct to field mapping for the column.
I am trying to not have to programmically set readonly classes for objects.
Thanks
Not sure I follow what you mean by "write out the column(s)" -- I assume you mean as a step in logging?
You can get the descriptors from a Session (or Project if you use the old way of creating sessions and want to do this before login) by saying "getDescriptors()". You get a hashtable key=class and value=Descriptor. Then you can get the mappings from the descriptor and pretty much do whatever you want (i.e., check for mappings that are 1-1 and set them to read only, get the columns they map to, etc). Check the Javadoc on Descriptor for more info.
- Don
Similar Messages
-
Is there a way to set read only for specific attributes of an Entity in MDS?
RaghuMIs there a way to set read only for specific attributes of an Entity in MDS?
RaghuM
Hello,
Please go through the following document, and then follow the steps to assign model object permissions:
Assign Model Object Permissions (Master Data Services):
http://msdn.microsoft.com/en-us/library/ff486969.aspx
Note: The model object permission determine the attributes a user can access in the
Explorer functional area of the UI.
Regards,
Elvis Long
TechNet Community Support -
i get this error why i try and open the auto cad that i just downloaded
The directory may be locked by another process or have been set Read Only.
Directory: '/Users/hockaday'
Please correct this problem and press OK to exit the application.I did install it in the admin account. Actually the computer has four accounts, one for my husband, where I installed it. One for me which also is set to admin, one is called TEST and has nothing in it and one is guest user.
I don't know how AutoCad is interfacing with the account. That is why I am not sure what to do about it. I read other threads in various places and some seemed to point to something having to do with having multiple users. The solutions were not clear. I was hoping someone else had this problem and could tell me what to do. I tried apple support but no help. I have not tried AutoCad yet as I assumed they wont help since this is a free educational version of their product. -
Is there a way to set read-only on a file manually?
Is there a secret keypress combo that will allow me to set
the read-only attribute on files in the file inspector window? I
can not use the check-in/out function because, IMHO, it is broken.
Macromedia has given a menu ability to "reset" (turn off) the
read-only attribute but they left out the "turn on" function. Would
certainly help me a lot...anyone?
Thanks!
p.s. in order to defray wasted back-n-forth postings, here is
why it is broken:
1. I run DW8 locally while connected to the network with
mapped fileserver drives (M:, P:, etc)
2. I have the default website set up pointing to our
DEVELOPMENT file server
3. when I do a PUT the files are FTP'd to a different web
server for public consumption
4. the error is that if check-in/out is enabled, the files
are pulled from the PUBLIC web server instead of just opening them
from the DEVELOPMENT server like I clicked on...if I wanted to edit
the live files I would have changed my site pointer to remote
instead of local (good grief)
5. this is bad because everyone else in the company uses that
cr@ppy Frontpage and are constantly editing their division's
webpages, which are in various stages of readiness. When I edit one
of those pages I need to be editing the one they have been working
on, NOT the one that is currently published to the public website!
DW8 is doing more work than I want it to do by going out and
grabbing the published page instead of simply opening the one I
clicked on in the file manager window. That makes NO sense at all,
and as a developer I certainly wouldn't have programmed it that
way...quote:
Originally posted by:
Michael Hager
The problem with any boxed software is that the developers
can NEVER know how every possible customer will use the software.
That's why, as a developer, they need to make
the software have MANY more checkboxes in the options screen to
allow the user to use the software the way they need to, not the
way the developers THINK they will need to. Just look at Microsoft
as a poor example of this--I am never so frustrated as when trying
to use ANY of their Office products, which make easy tasks
difficult and do not include some of the most common options that
competing products have.
quote:
The Dreamweaver check out system actually works very well if
it’s set up properly and administered strictly. If you set it
up on your testing server with everyone set up on their work
stations correctly it will tell you who has a file locked for
editing. Once everyone is working as a team with good supervision
and division of tasks under a strict policy set by management,
Dreamweaver will work very well for your purposes. You
shouldn’t have to lock and unlock files manually since the
check in-check out function will do it for you nicely. When you are
satisfied that all is well with the site or particular pages, then
someone in a managing position can release or authorize release to
the live site.
The problem is that I am the only person using
DW in the organization, everyone else is using Frontpage...blah...
You and Murray have both alluded to a separate "testing"
server. Perhaps I can make this system work by setting up the
testing server as a duplicate of the development server in my site
manager. Then I would have to manually publish the files from the
testing server to the live production server myself. What a pain!!!
I can not believe that I am the only person in the world that has a
setup like this -- it seems very common to me. I would assume most
government organizations are set up identically as us.
<sigh> -
Setting read-only property for a RTL inputtext.
HI,
I am using JDeveloper version 11.1.2.2.0. In my fusion web application, in the af:inputtext field, if the language is, RTL or LTR the value is displaying according to that. Suppose, if it is English, the value is displaying left to right. If it is, Arabic, the value is displaying from left to right. But if I set the column value is read-only, everything is displaying as left to right. Here is the code of my input text field.
<af:column sortProperty="#{bindings.PhraseTranslationView3.hints.Description.name}"
sortable="true"
headerText="#{bundle['PhraseTranslation.des']}"
id="c5">
<af:inputText value="#{row.Description}" id="ot6"
inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
label="Label 6">
</af:inputText>
</af:column>
What is going wrong in this?Yeah, I have set it to 'True'. If I set it, the value is not displaying from left to right.
Here is the code.
<af:inputText value="#{row.Description}" id="ot6"
inlineStyle="border-style:none; overflow:hidden;border-color:rgb(255,255,255);direction:#{row.TextDirection};border-width:thin;height:16px; font-weight:bold; color:rgb(0,0,0); font-size:8.0pt;font-family:Arial Unicode MS;"
label="Label 6"
styleClass="rtl" readOnly="true">
</af:inputText>
Regards,
Infy -
Hosted files, especially .jpgs keep being set read only.
Is there a way to make my public folder and everything in it keep read-write privileges at all times?
Basically I have two reports who access the folder using afp and when they send in pictures the pics say, "Items can’t be copied to “Desktop” because you don’t have permission to read them."
I don't remember having this problem with Snow Leopard Server, but it wasn't until last week that I really need to start transfering more pictures!
And (theoretically) I'm signed in as the Administrator on the computer.
So, any ideas? I've set all of the accounts as having full-Admin privaliges. And I've set the folder to be public."That's default posix behaviour no matter what access permissions you set on the sharepoint."
I'm afraid this is dead wrong. What matters most is how you set permissions on the share, not if you've chosen to inherit vs. using POSIX. POSIX is still used in inherit functions, though you can use ACL's to override them. In this case, ACL's are not being used on those shares (though we tried it).
After all, why would Apple (let alone anyone else) even offer the ability to change POSIX permissions on a share if it didn't have any effect? That would be somewhat contradictory in nature.
Like I said before, I have several other installations which are identically setup that have no such issues.
As for Windows, it is also not set to inherit permissions; we're setting those explicitly. And they work fine.
Any other ideas?
Thanks,
k -
How to set the read only property for dynamic ALV column
Hi All,
I have built one dynamiv ALV and I have one name column inside that ALV for which I have to set read only property based on two column fields that exist in the same ALV,say IS_SP and IS_CORP of type boolean.
If any one of the flag is 'X',i have to make that name column as display only and
If both flag are not set,it should be displayed as ediatable column.
I have written one method as INIT_ALV which gets called when ALV is loaded.
Code is as follows:
lr_column_settings ?= wd_this->alv_all_roles.
lt_columns = lr_column_settings->get_columns( ).
LOOP AT lt_columns INTO ls_column.
CASE ls_column-id.
WHEN <NAMECOLUMN>. "name column which should be editable/display
Create Input Field
CREATE OBJECT lr_uie_input_field_ro
EXPORTING
value_fieldname = ls_column-id.
ls_column-r_column->set_cell_editor( lr_uie_input_field_ro ).
After this,I have to set the read only property based on IS_SP and IS_CORP values,
CALL METHOD lr_uie_input_field_ro->set_read_only_fieldname
EXPORTING
*value = 'IS_SP' or 'IS_CORP'
ENDLOOP.
I dont want to use cell variants also.
Help me to achieve this.
Thanks and Regards,
DivyaDivya - I have done it in the past following these documents. Please read it and try it it will work.
Please read it in the following order since both are a continuation documents for the same purpose (it also contains how to change colors of row dynamically but I didnt do that part I just did the read_only part as your requirement)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b71393
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0155eb5-b6ce-2b10-3195-d9704982d69b?quicklink=index&overridelayout=true
thanks!
Jason PV -
Make single option as read only in Radio group
Hi
How to make a option readonly with respect to condition in radio group in oracle apex 4.0. Example
option1
option2
option3
option4
I want to make the option4 read only based on the condition.So Where the codition needs to be added.
Regards
Balaji
Edited by: 904493 on Feb 7, 2012 1:19 AMJust thinking aloud (can't test it right now myself): I'm not sure whether you can disable (or set read only) a radio button. However, if you don't need one of these options, perhaps you should modify List of Values query which returns these options. Furthermore, it means that list shouldn't be static but dynamic (SELECT statement).
So how do we restrict SELECT's result set? By using a WHERE clause.
Now, you know the conditions that have to be met in order to (or not to) display certain options. Suppose that there's a page item (named P1_CONDITION) which - if set to 4 (as "option*4*) - won't allow option4 to be displayed.
List of values' query might look like
{code}select option_name, option_id
from options
where option_id <> nvl(:P1_CONDITION, -1) --> -1 is a non-existent option
{code} -
Hi every one,
I want to set field values to be read only
I have chosen responsibility “Employee Self-Service” and then function “Personal Information” under that.
Under section “Phone Numbers” I have , click on Update
By default Number column is always editable.
here I have to implement ,
If I select Type as “Home Fax”, Number column should be read-only.
How can I do this?
Edited by: Want Java on Nov 15, 2010 3:18 AMHi,
Below steps for Vo extension:
---Copy the package in which that seeded vo exists to your local machine where you have jdeveloper installed.
---Create a new OA Workspace and project.
---Create your Custom package and in that create new View Object with new Query including your new attribute.
Ensure in the extends you select the Seeded VO.
---While creating VO select in extends property standard vo and create tr attribute.
---Double click on your jpx and go to substitution and select seeded VO in available list and Custom VO in Substitute List Click on Add.
---FTP the new package you created to $JAVA_TOP
---Run jpxImport utility for your substitution to take place.
---Bounce apache.
---Through personalisation set read only for Number as i given in SPEL.${oa.seacrhVo1.readonlytr}.
---While you will attach VO to that field ensure View Instance name is your Seeded View Instance name while view Attribute will be your new Attribute added.
Refer:
http://oracle-hack.blogspot.com/2008/03/how-to-extend-view-object-in-oa.html
Regards
Meher Irk
Edited by: Meher Irk on Nov 15, 2010 6:39 PM -
Lifecycle issue with table binding + read-only attributes: ADF BUG
Hello all,
I have found what I believe to be an easily reproducible bug in ADF that reproduces in 10.1.3.x, but not in 11g (at least not in drop 6). The best way to describe the bug would be to walk through a simple set of steps to reproduce the bug:
1). Create a new application (ADF BC + ADF Faces).
2). In the model project, create a new Entity Object from the Employee table in the default HR schema. Allow JDev to create an updatable view object and an AM as well.
3). Put a validation rule on the first name attribute of the EO (can be anything, really - I made mine so that the first name cannot be "foo").
4). Test everything using the BC tester if you like.
5). In the UI project, create a new JSPX page.
6). Drag the updatable VO on to your page as an updatable af:table.
7). Put an af:commandButton on the page. Bind its Action or ActionListener to a method in a new backing bean. Put some simple code (I used System.out.println) in the backing bean method.
8). Run the jspx page.
9). Put some invalid data in (e.g. "foo" in the first name field) and click the af:commandButton. Verify that you get an error message and that the Action/ActionListener method DOES NOT fire. So far, so good.
10). Now, to demonstrate the problem. First, look at the page definition for the jspx file. Identify the first attribute that is mentioned (in my case, it was the employee id).
11). Go to the updatable view object and make the attribute from #10 read-only or updatable when new only.
12. Now, repeat step 9 - you should see the error message AND also see that the Action/ActionListener method was executed. You will also see in the messages window that ADF attempted to set the value of the read-only attribute, and thus got a ReadOnlyAttrException.
This issue only happens if the first attribute mentioned in the table binding is read-only. A workaround would simply be to re-order the attributes in the table binding of the pagedef so that the first attribute isn't read-only.
Don't ask how I figured this out ;)
Best,
JohnHi Frank,
Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
John -
VFAT drive keeps turning into read only
I notice that I one of my mounted VFAT drives, after online for a while, is becoming read only. Why would this happen? To resolve it, I have to umount and then mount it. After a while, I have to do it again. Here's the relevant line in my fstab:
/dev/hdb1 /mnt/back vfat auto,umask=000,uid=1000,gid=100 0 0
My user id and gid are the ones you see above. Here's an ls -l output of that partition:
drwxrwxrwx 37 ralvy users 32768 2006-02-07 19:03 back
No writes or deletes can be done on that drive right now.
A few seconds later, after umount/mount of /mnt/back ...
All is fine again. Why?
I'm running Arch current/extra up to date.brain0 wrote:Check your syslog (/var/log/*). There might be something that tells you the reason (though I've only such this behaviour with ext2/3 so far).
Found this for that day:
Feb 7 11:43:17 tux FAT: Filesystem panic (dev hdb1)
Feb 7 11:43:17 tux fat_free_clusters: deleting FAT entry beyond EOF
Feb 7 11:43:17 tux File system has been set read-only
So I just did
fsck -t vfat -a /mnt/back
and let it fix the problems. We'll see this stops it. Sounds like it will.
Thanks for the suggestion. -
Clear form Option resets read only properties
Hey guys,
Using your help I got my problem solved last time. So when I have a series of Questions, I set all questions to read only in their properties except the first Question. Once the first question is answered, using the script below, I then set read only for the next question to false and students can answer the next question now. So using this pattern, it allows them to answer one question after the other without skipping any.
The Mouse Up action for each "Radio Button1" could be:
if(event.value != "Off") this.getField('Radio Button2').readonly = false;
Now, while this works perfectly for time being, I keep experimenting with this form with lots of modifications made as needed. When I use the "clear form" Option to empty all the form fields before saving it, all the read only Questions reset and now when we close and re open the file, any question can be answered and the script used above has no more value.
What is the script needed here to avoid the read only questions to reset when i use the clear form option. Please help me out here!Clear the form menu action or the "this.resetForm();" script only resets the values of the fields.
You script will one execute when there is a Mouse Up action, and if a radio button or check box is set to read only then there can be no field actions. The field is locked to user interaction and can only be manipulated by JavaScripts.
There is no trap for the reset or clear action so even if you created a button to reset and clear the form fields with the read only property set, you would still have the issue of the user using the menu option. You can add a document level script to clear the read only property of fields when the form is opened. -
[SOLVED] vsftpd read only
How can I set read only access rights for user when he logs in through FTP? I'm using vsftpd.
Last edited by kdemon (2008-12-26 20:21:12)Add "write_enable=NO" to /etc/vsftpd.conf (I think it's the default setting actually, so if you just leave the line "write_enable=YES" commented, it should have the same effect).
You can also set read-only permissions with chmod (directories need to be executable though).
See "man vsftpd.conf" for more information.
*edit*
I've just checked and it is the default setting, so as long as you don't add the line "write_enable=YES" to vsftpd.conf, users won't have write permissions
Last edited by Xyne (2008-12-26 20:05:32) -
Revision: 13716
Revision: 13716
Author: [email protected]
Date: 2010-01-22 09:26:12 -0800 (Fri, 22 Jan 2010)
Log Message:
since include-read-only is a server global setting, we can't have two channels with different value. remove the test for the include-read-only false. update the service-config.xml as well.
Modified Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/services-config.mods.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTypes/ReadOn lyTest.mxmlYou can give this a try on your Ultimate machine. While these are said to be for Vista, I used it on my Win 7 machine just fine and it fixed the problems I was having. Hope it works for you.
The problem is that Vista, by default, will only use NTLMv2 for authentication, which is not supported by Mac OS X's Windows Sharing service.
The other problem is the Minimum Session Security for NTVLM SSP based Clients.
To get around this:
1. In Vista, open the Control Panel
2. Switch to "Classic" view
3. Double-click Administration Tools
4. Double-click Local Security Policy
5. Or Secpol.msc
6. Expand "Local Policies" and select "Security Options"
7. Alternate : Type secpol.msc to get editor up then
8. Locate "Network Security: LAN Manager Authentication Level" in the list and double-click it.
9. Change the setting from "Send NTMLv2 response only" to "Send LM & NTLM - use NTLMv2 session if negotiated"
10. Network Security: Minimum session security for NTLM SSP Based (including secure RPC) Clients
11. Change the setting from "require 128 bit" to unchecked (No Minimum)
12. Click OK
the real difference between vista and windows 7 procedure is 10 and 11 -
Updating read only attributes of class/method
Hi,
I have this standard class CL_QNAO_OBJECT, with MS_DATA as read only attribute.I have written my own class in an enhancement within this class and now trying to edit this MS_DATA within my own class. but I get an error sayng "write access to the READ only attribute is not allowed", is there any way I can change it?
The attribute MT_STACK is changing attribute/parameter to my class, which in turn has this ms_data structure.
Note - I did search sdn before I put it here, I got couple of threads which I dont find suitable for me.
Thanks in advance,Since MT_STACK is also type ref to CL_QNAO_OBJECT, my earlier guidance still hold true.
Step 1 - When you enhance the class, you would see empty table lines in the class editor. Create a new method in that.
Public Instance Method name Z_SET_MS_DATA
Importing parameter IS_DATA TYPE QNAOD_AOBJECT
Method implementation:
ME->MS_DATA = IS_DATA
Step 2 - In you enhancement in the class, call the method to set the data
Data: ls_Data type QNAOD_AOBJECT
Ls_data-field1 = ‘xyz’.
core_object->mt_stack->z_set_ms_data( ls_Data ).
Regards,
Naimesh Patel
Maybe you are looking for
-
How to Count schedule lines in IDoc ORDERS05 using XSLT Mapping
Hi Experts, In a Scenario where we are sending Purchase order (ORDERS05) to SAP SNC using XSLT Mapping, where in we need to count the no. of schedule lines against the Purchase Order line. As in Schedule line segment there is no such provision, so it
-
I keep getting an error to send to microsoft when I double click on songs, switch to music store as well as switch/save playlists. Anyone have a clue what to do to fix this?
-
"Fatal Installation error" when invoking "File Info"
When I invoke "File Info" from Bridge or Photoshop, I get the following error. I reinstalled PShop twice, once even as root, and the problem remains. I've tried CS3 as well and bridge just crashes (log file attached). It also happens with a newly cre
-
I get this error when I try to view the database diagram. This is strange because it was about two weeks ago that I created and edited the database diagram. What is wrong with my login now as compared to when I did those edits? The error suggests to
-
"Recovery" missing from RAW editing mode in PSE12?
I had just discovered the brilliant Camera RAW editing mode (for photos in other formats) in PSE 10. When I tried it in PSE 12 I noticed the "recovery" slider, which is essential to getting the best exposure results, is no longer there. What am I mis