Allow edit only user's rows, not someone else's
Hello
as you know the option make Form and Report brings a report editable. Is there any way using that option to modify the report to make it non editable?
OR
more interesting, that only the user can edit his own row, not the rows of others. That is, there will be different users logging in separately and each willl be adding a row. is there a way one can edit only his row while he has no access to someone elses ?
thank you
Al
Edited by: Alvaroe on 19-Nov-2009 15:29
Edited by: Alvaroe on 19-Nov-2009 15:34
Hi,
maybe there is smarter way to make it, but I used to do it using CASE statement and javascript. I don't have working code, but that's the idea:
1. In your report you have column with creator name - you use it in your SQL CASE statement like:
SELECT some_columns, CASE created_by
WHEN :APP_USER THEN '<a href="#" onclick="goToEditMode('||report_id||')">EDIT</a>'
ELSE '-'
END
"EDIT" FROM your_tableNow if current user has created specified record, edit link appears in EDIT column.
2. You must add hidden field (P_HIDDEN) to know which row has been selected to edit and javascript function that submits the page:
<script>
function goToEditMode(report_id){
$x('P_HIDDEN').value=report_id;
doSubmit('EDIT');
</script>3. Last thing is to create branch that takes you to EDIT page when 'EDIT' request is sent by javascript function. Don't forget to set P_HIDDEN value to edit page in order to know which record is edited.
Regards,
Przemek
Similar Messages
-
Can read-only users obtain row locks on non-temporary (i.e,. visible to other users) tables, for example through SELECT FOR UPDATE, even though they couldn't not ultimately modify said tables?
Yes.
Here is an example with Oracle XE 11G and HR schema:
Connecting as user having only CREATE SESSION and SELECT privilege on HR.JOBS table:
SQL> desc hr.jobs;
Name Null? Type
JOB_ID NOT NULL VARCHAR2(10)
JOB_TITLE NOT NULL VARCHAR2(35)
MIN_SALARY NUMBER(6)
MAX_SALARY NUMBER(6)
SQL> select * from session_roles;
no rows selected
SQL> select * from session_privs;
PRIVILEGE
CREATE SESSION
SQL> select owner, table_name, privilege from user_tab_privs;
OWNER TABLE_NAME
PRIVILEGE
HR JOBS
SELECT
SQL> select job_title from hr.jobs for update;
JOB_TITLE
President
Administration Vice President
Administration Assistant
Finance Manager
Accountant
Accounting Manager
Public Accountant
Sales Manager
Sales Representative
Purchasing Manager
Purchasing Clerk
JOB_TITLE
Stock Manager
Stock Clerk
Shipping Clerk
Programmer
Marketing Manager
Marketing Representative
Human Resources Representative
Public Relations Representative
19 rows selected.
SQL>Now connecting as HR following statement hangs:
SQL> connect hr/hr
Connected.
SQL> select * from jobs for update;Going back to first session:
SQL> update hr.jobs set min_salary=0;
update hr.jobs set min_salary=0
ERROR at line 1:
ORA-01031: insufficient privileges -
User can edit only his own rows
Hi,
I have a simple generated application. I logged the user in the DB-table who has created the row. Now I want that all users can see all entries of the table (blackboard) and can create new entries, but the user can update only his own entries.
Ideally he sees the Edit-Icon on the report only with the rows he created and he has the right to update.
Regards, JuergenJuergen,
Yes, I was answering a different question. A query like the following would show/hide the edit link based on a column's value: select decode(ENAME,:APP_USER,
''||
'<img src="#IMAGE_PREFIX#edit_big.gif" border="0" alt="Edit Big Icon">',
null) Edit,
ENAME,
JOB
from EMP Of course you want the edit page to check if the user requesting the page should be able to update the row corresponding to the primary key value passed in, just in case someone tampers with the URL and goes to the edit page directly. You could use an authorization scheme for that.
Scott -
Allow somebody to access/edit only my calendar (and not my email)
I have an iCloud account. My secretary does not. I would like her to have the ability to access my iCal Work calendar and add events. I do not want to have her access my iCloud email.
Since I could not figure out how to have her access my calendar only, I added her Gmail account to my iCal and had a new iCal account "Sec'ty Gmail." She can add and edit events in that calendar, but when she sets alerts on the gmail calendar, they do not work in iCal. I rely heavily on alerts to remind me of events. [i have yet ot find a workable solution to this problem] Thus, I have to go into the event, move it to my Work iCal calendar, and set the alerts. THis defeats the purpose of having my secretary create it.
I'm wondering if there's a way to allow her to view AND EDIT my work Calendar on iCal. I know I can share a read only version on iCloud, but that doesn't help.
If you have any possible suggestions (including solutions to the gmail/alert issue), I'd like to hear them. Thanks in advance.just not store?
Could you walk us through what happens when you try to connect to the Store, please? -
Recently changed my apple ID. On my 3G iPhone 4 iCloud has since then been letting me know that my user name or password is incorrect. I can edit the password in iCloud account information but user name is grayed out and can't be changed to my new apple ID. Haven't been be able to fix this by going into my Apple ID account or synching the iPhone.
In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again. -
Why will iMovie allow editing of some songs and not others?
I've downloaded a number of songs directly from iTunes onto my ipad2. Why can I edit one song I downloaded and not others in I movie? I don't get it. These songs are from the same album, so if its a copyright issue what's the deal? Help me please!
If just some of the tracks on the album are giving you that message, that suggests that those tracks are damaged.
If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copies of the tracks and try redownloading fresh copies. For instructions, see the following document:
Downloading past purchases from the App Store, iBookstore, and iTunes Store
Otherwise, I'd report the problem to the iTunes Store.
Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
Find the items that are not playing properly. If you can't see "Report a Problem" next to the items, click the "Report a problem" button. Now click the "Report a Problem" links next to the items. -
Paid to allow edit text in PDF, and not working
I wanted to 'edit' text in PDF and followed the instructions, it told be to subscribe and pay to do this. I did subscribe and pay, but the functionality is still not working, keeps directing me to subscribe and pay.
Hi rrobati,
I checked your account,your Export PDF subscription is not confirmed yet at our end.
Once it gets confirmed you will be able to use it hassle free.
Regards,
Florence -
Edit basic users settings but not security group assignments
Hello,
Is there a way to configure a security group so that users can manage basic user details but cannot add or remove users from security groups?
Thank you,Hi,
your question is not clear , what do you mean with "security group" in Oracle database ? -
HOW TO SEND PERSONALIZED EMAILS WITH THE SAME MESSAGE, BUT WITH THE INDIVIDUAL RECIPIENT'S NAME... (OR NAME AND THE EMAIL ADDRESS) TO ALL ADDRESSES IN THE ADDRESS BOOK - WITH RECIPIENTS SEEING ONLY THEIR OWN NAME WITHIN THE BODY OF THE MESSAGE TO THEM ?
ALSO, HOW TO ELIMINATE ALL THE OTHER NAMES FROM THE LIST - SO THEY CAN NOT SEE WHO ELSE IS ON THE MAILING LIST, AND WHO ELSE IS GETTING THE SAME MESSAGE?In the csv file, the column headers must match the the special references in curly brackets.
So you either change the column header in .csv file or the bit in the curly brackets in the Template email.
To change the column header:
In the example shown below, I wanted to use the first two columns
'First Name', 'Last Name' note the exact spelling.
I also wanted the email address which was in a column called 'Primary Email'.
To make it easier for me, I copied the Primary Email column and inserted it into the third column position and then changed the column header name from 'Primary Email' to 'Email'. (This meant I still had the original column header just in case). see image below.
But you could just change the column header name from 'Primary Email' to 'Email' without moving column about - up to you.
At this point check that all the contacts do have a valid email address.
then save the file.
If you do not want to edit the .csv file, then you need to edit the template email.
eg: {{First Name}} {{Last Name}} <{{Email}}>
change to : {{First Name}} {{Last Name}} <{{Primary Email}}>
If still having an issue, please post two images.
One image needs to show the row of column headers used in .csv file.
The other image needs to show the Template email, so I can see how you have used the curly brackets. -
Copying ONLY the mp3 songs, not everything else
I have downloaded all my CDs to a 300G drive in AIFF format. I then converted all the songs into mp3 to download them to smaller-capacity devices. As expected, all the mp3's are right next to their .aif counterparts. However, I can't find a way to move ONLY the mp3s (while retaining the directory structure) to a new location. I can't copy the entire disk because it's too big--I just want to copy the MP3s.
If there's a solution to this, also please advise how I can get iTunes to build a new "library" db from the songs from that new target location.
dan
G5 Mac OS X (10.4.5)
G5 Mac OS X (10.4.5)Your suggestion is much better than my solution.
However, here's the problem I'm at now:
I copied all but the aif files from the hard drive to the local drive, which included the Library (and library.xml) files. I also reset the location of the iTunes folder (in the preferences dialog) to the new location that has just the mp3 files. However, when I bring up iTunes now, it still lists two copies of all my songs--the mp3 AND the aif--even though only the mp3's are there.
I tried removing the library binary data file and the xml data file, but it had no effect on the above--both aif and mp3 files are still listed. (The doc clearly says that removing these files will cause iTunes to build a new one when it starts up again... but it apparently didn't. How can I force it to?)
The list of songs has a "!" character in the first column for all the aif songs, which presumably means that it couldn't find the actual file associated with it. (This makes sense because the aif files are on the external drive, which is no longer connected.)
NOTE that there is nothing in the doc about what the "!" means.
The real confusing part is that if I play the AIF version of the file in iTunes, the song plays anyway! Where'd it find it? It's nowhere on my system at all, so what's up? Is it playing the mp3 file anyway? (If so, why doesn't the user interface tell me this?) Odder still: when I play the aif version of a song, the "!" character goes away--and yes, both versions of the song are still listed in the iTunes window.
So many questions in this posting.. perhaps someone can bring it all together for me. -
How to edit only some rows in ALV
Hi Experts,
I have editable ALV. I need to allow edit only for some rows, not generaly all of them.
Do you have any idea how to do it?
I use ALV through FM module REUSE_ALV_GRID_DISPLAY.
Thenks®ards,
JirkaHi,
You need to use events. Sample code from sdn.
TYPE-POOLS:SLIS.
DATA: X_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
DATA: IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA:IT_EVENTS TYPE SLIS_T_EVENT.
data: begin of it_chg occurs 0,
index type sy-tabix,
end of it_chg.
DATA: X_EVENTS TYPE SLIS_ALV_EVENT.
DATA: BEGIN OF ITAB OCCURS 0,
NAME(10) TYPE C,
ZTERM TYPE C,
END OF ITAB.
PERFORM FILL_TABLE.
loop at itab where zterm = 'A'.
it_chg-index = sy-tabix + 3.
" addition 3 IS FOR FIELD LABELS
append it_chg.
clear it_chg.
endloop.
DATA:L_POS TYPE I VALUE 1.
CLEAR: L_POS.
L_POS = L_POS + 1.
**fieldcatalog
X_FIELDCAT-FIELDNAME = 'NAME'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-FIELDNAME = 'ZTERM'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '10'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
**events
REFRESH:IT_EVENTS.
CLEAR:X_EVENTS,IT_EVENTS.
X_EVENTS-NAME = SLIS_EV_END_OF_LIST.
X_EVENTS-FORM = 'MODIFY_LIST'.
APPEND X_EVENTS TO IT_EVENTS.
CLEAR X_EVENTS.
END-OF-SELECTION.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IT_FIELDCAT = IT_FIELDCAT
IT_EVENTS = IT_EVENTS
TABLES
T_OUTTAB = ITAB
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*& Form FILL_TABLE
text
FORM FILL_TABLE.
ITAB-NAME = 'vijay'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ABC'.
ITAB-ZTERM = 'B'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'TEST'.
ITAB-ZTERM = 'C'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'DILIP'.
ITAB-ZTERM = 'D'.
APPEND ITAB.
clear itab.
ITAB-NAME = '123'.
ITAB-ZTERM = 'E'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'GEN'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ALV'.
ITAB-ZTERM = 'F'.
APPEND ITAB.
clear itab.
ITAB-NAME = 'ALVTEST'.
ITAB-ZTERM = 'A'.
APPEND ITAB.
clear itab.
ENDFORM. "FILL_TABLE
*& Form MODIFY_LIST
text
FORM MODIFY_LIST.
data: l_lines type i.
describe table itab lines l_lines.
L_LINES = L_LINES + 3.
"because we have 3 lines extra occupied by lables.
"if we have header,i mean top of page add the no.of lines
"how many ever top of page have + 3 for labels.
DO L_LINES TIMES.
read table it_chg with key INDEX = sy-index.
if sy-subrc = 0.
**This code is for reading the out put line
**and modify accordinlg to our requiremnet.
**don't chnage this.
READ LINE SY-INDEX INDEX SY-LSIND.
IF SY-SUBRC = 0.
MODIFY LINE SY-INDEX INDEX SY-LSIND
FIELD FORMAT ITAB-NAME INPUT.
ENDIF.
ENDIF.
ENDDO.
ENDFORM. "MODIFY_LIST -
Edit Appraisals: Notes only shows one row at a time
Under the Employee Review tab of MSS-->Edit Appraisals, when I click to create an appraisal, the appraisal form in our system has areas to add notes. However, in the portal, the area to add notes is only 1 row. It is scrollable, but you can only see one row of text at a time. How can I expand the notes area/editor to show multiple lines of text?
Turns out the configuration is on the R/3 side when setting up the Appraisal. There is an option for number of lines for notes.
-
I have seen this problem discussed before, but have never seen a clear cut solution.
I have a user using Excel 2013. She can create and open files locally, but when she tries to move or save to a shared network drive, she gets the error "Someone else is working in (shared drive/filename) please try again later. She's the only one using
the file most of the time.
I have done a repair on the Office installation, but the user is still having the issue, and I need to remedy this. She has appropriate file/folder permissions on the network. Really stuck on this one.Hi,
As we know, Office creates TMP files like "$.tmp file" when you open a document. Saving does not delete the files if we still have them open. And this issue occur with network drive not local disk, so
it might be caused with the account permission of the network drive. If your user has no delete permission, the temp file might be not delete after closed the file. Please try to check the permission first.
Then, if there are some mistaken operations when using the files in network drive, we could delete the temp file manually, and then the error would disappear. Please see the similar thread:
https://social.technet.microsoft.com/Forums/office/en-US/63fb4e70-4de7-45c4-a2ca-ff7209687553/excel-file-that-always-shows-a-certain-user-has-it-open?forum=excel#3e0a52bd-3ee9-4dce-8fe3-63a0937c4eed
Hope it's helpful.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
My email won't accept my password, was working fine, then one day it wasn't. It is almost as if someone else changed the password and now I cannot use my password or change it to a new one. My iMac is running 10.5.8 , using Earthlink and Safari. Any ideas on this problem?
boosterdoc wrote:
My email won't accept my password, was working fine, then one day it wasn't. It is almost as if someone else changed the password and now I cannot use my password or change it to a new one. My iMac is running 10.5.8 , using Earthlink and Safari. Any ideas on this problem?
Are you using the Mail client or Safari to access your email? -
Hi,
I'm trying to find a way to configure which network users can login to a lab of iMacs running 10.7.4. They're being deployed using DeployStudio, and the Macs are bound to an MS Active Directory by a script that runs as part of the workflow. I'd like to have another script run after the AD binding to permit only users in certain AD groups to be able login to them.
I'm halfway there, in that using dseditgroup I can easily add AD groups or individual users to the relevant group (deseditgroup -o edit -a <domain\\group name> -t group com.apple.loginwindow.netaccounts. After running this I can see the desired groups added to the list in Sys Prefs -> Users & Groups -> Login Options -> Options. However, membership of this group is deemed irrelevant by the fact the radio button above this list for 'Allow these users to log in at login window' is still set to 'All network users' and not 'Only these network users'.
Does anyone know of a way to enable the 'Only these network users' option via the Terminal/a shell script?
Thanks,
ChrisI tried that, thinking it was exactly what I wanted, but it still sends stuff as SMS (green bubble).
Maybe you are looking for
-
Open With my program doesn't work
I have Java program which runs on PCs and saves files with a special extension. When I double click on a saved file, I would like it to open with my program. This worked before when my program was stored on the C drive. But now I store it more approp
-
Hello, All Currently, Oracle 9.2.0 on HP-UX 11.11 is installed on the PA-RISC-based server. My company plans to purchase another server - Itanium based, with corresponding HP-UX 11.22 - and use it as a standby Oracle DB for existing one. Although thi
-
I'm making a thank you card in Pages 09. I'm really confused with the layout. Any tuts or links would be nice.
-
Hello All, I encountered this question: Evaluate the following SQL statements: SELECT INTERVAL '300' MONTH, INTERVAL '54-2' YEAR TO MONTH, INTERVAL '11:12:10.1234567' HOUR TO SECOND FROM DUAL; Can any body help me with this, i do not even understand
-
Creating Instances of class within its definition
Hi, I am a newbie to Java and am doing a course on Java. In one my assignments it asks us to develop the following method for a Class called CraftStock: "Define a new helper method void increaseStockCapacity() that creates a new expanded array as fol