How to stop user from entering value for already existing data

Hi ,
We have a situation , where we need to give user a template for entering the data and then send it to the database. But we want that if user has already entered the value for a combination, then he should not be allowed to select the same combination again in that template.
In other words , there should be write access but not update access.
So I have two questions related to it:
1. How to build report with giving user , the drop-down list of available members under each dimensions. (I know that we can provide list by writing all of them in excel and then using those values in drop-down)
2. How to restrict the user for selecting the combination which has already been selected.
Need your suggestion
Thanks
Sanjay

Hi Sanjay,
for your first question...
you can build an EVDRE in a hidden area/sheet to display all values of a desired dimension in rows. Set Option SuppressDataCol to 'Y'. Also maintain MemberSet options to display only the values you need.
Now you can reference your DD-box to the key- or description range.
With some VBA-code you can refresh this EVDRE on Workbook_Open and also set the range (attribute ListFillRange?) of you DD-box dynamically to the RowKeyRange.
Hope, it helps.
Regards
Steve

Similar Messages

  • How to ask user to enter value in select statement

    Hi,
    Can anyone tell me syntax of select statement where i can ask user to enter value .
    for example i am trying to use belowthing but it displaying error
    select * from emp where empname=:empname
    SP2-0552: Bind variable "empname" not declared.
    2.Is there any data dictionary table to see all pl/sql procedures and corresponding code?
    Thanks,
    sri

    user632733 wrote:
    Can anyone tell me syntax of select statement where i can ask user to enter value .None. The SQL engine resides on the server. It is incapable of prompting for data entry on the client.
    The client interacts with the user. The client is suppose to:
    a) prompt for variable values
    b) send a SQL statement to Oracle
    c) bind values to bind variables in the SQL statement
    for example i am trying to use belowthing but it displaying error
    select * from emp where empname=:empnameIn SQL*Plus, you need to create a bind variable:
    SQL> var empname varchar2(200)
    And then assign a value to it:
    SQL> exec :empname := 'John Doe';
    Note that this is still not ideal - as the assignment is also done via the server and sends a PL block to the server. This block contains non-sharable code and this can lead to fragmentation of the server's Shared Pool.
    But it does illustrate the basic principle.

  • How to prevent users from entering '+' or '0' in front of country code in the phone number field?

    Requirement:
    How can I prevent guest users from entering '+' sign or '0' in front of country-code in the visitor phone number field during self registration?
    Few SMS service providers are not looking for '+' sign or '0' or '00' in front of the international phone numbers to trigger the sms. Providing these values in front of country code during self-registration may fail to deliver the sms to recipient.
    Solution:
    Using a simple regular expression, you can validate the entered phone number during the guest registration. 
    The below regular expression will help you to validate the phone number and allows to register only  when the phone number is not staring with '+' or '0'. 
    ^[1-9][0-9](\d{7}|\d{8}|\d{9}|\d{10}|\d{11}|\d{12})$
    It also performs the below validations.
    only numbers are allowed.
    first digit of the entered phone number should be 1 to 9, so '+' or '0' is not allowed. 
    numbers from 0 to 9 are allowed from the second digit.
    also validates phone number length, the length of the phone number should be 9 to 14.
    Configuration:
    To add the above regex in the visitor_phone number filed, please navigate to ClearPass Guest >> Configuration >> (Pages)Guest Self-Registration >> select the self-registration page and go to Edit >> Register Page >> Form >>  select the filed visitor_phone and set the Validator to " ISRegexMatch" and enter the above regex in the Validator Argument filed as shown below.
    Note:  Edit the Validation Error as per your requirement.
    Verification
    Adding the given regex will validate the phone number and prevent the guest user from registering the phone number starts with '+' or '0'.
    Please find below the sample outputs for your reference.
    Result when phone number starts with '+' or '0'.
    Successful registration.

    Is this a Mac Preview issue?

  • How to avoid user from entering new price condition in return order

    Dear Expert
    We are facing a scenario where we make return order; the Price is copied from the invoice. And it is working perfectly. The system does not allow us to change the price.
    The issue we are facing here is that user can input new condition like discount /premium and change the net value for the return order pricing, and this will reflect in the credit note for returns.
    Is there a way to restrict the user from entering any pricing condition in the header or item conditions tab.
    although we cannot change the original price coming from invoice referenced for return order, but the user can input new price conditions as below. This must not be allowed.
    The price must come according to the Qty being referenced.
    While making the credit for returns, the user has a chance of further making changes to the net value by adding new conditions. Hence this must also be restricted for any changes.
    Thanks
    Edited by: Lakshmipathi on Jan 31, 2012 6:55 PM
    Thread Locked - Reason Cross Post

    okie .... i will tell briefly what is the problem ....
    Take a scenario wherein a user has logged into my application and he is performing a task which will put his user id and his employee id into the session. Then he opens another window by using either ctrl+n or through files->new window.
    So now a new browser will open but the session will be same ..... in this newly opened browser, user performs some operation which will remove the user id and employee id from the session .... Now if he again comes back to the first window and tries to do some operation, then a null pointer exception will be thrown saying that the employee id is null .... because he has deleted that in the newly created browser ..... to avoid this situation what can we do ???? can you please help me in this regard ??? you got my problem right !!!

  • XMLEncoder - how to stop it from using NaN for int's

    I am trying to invoke a webservice. I used the Flex Builder 3
    service code generator. I have an object "Person" which has three
    fields: {id:int, firstName:String, lastName:String}
    I have a case where I invoke a method on a webservice that
    takes a person object. the person object in this case should only
    have a first and last name defined (no id, yet). I stepped through
    the flex source code to see what happens and basically when it
    encodes the Person object it gets to the "id" field whose value is
    NaN (b/c I never set it). The encoder eventually just decides that
    (NaN >= integer.min value) and passes it along so it gets into
    my SOAP message as <id>NaN</id>. This causes problems
    at the web service (java) side b/c it doesn't know how to
    unmarshall "NaN".
    So...any suggestions on how to prevent it from sending
    <id>NaN</id>. maybe even just <id /> would be
    ok.

    Moving the iOS device backup location
    Open a command prompt by hitting the start button and typing CMD<Enter> in the search box that opens up, or with Start > Run on older Windows.
    To move the current backup folder from C: to D: (for example) type in this command and press <Enter>
    Move "C:\Users\<User>\AppData\Local\Apple Computer\MobileSync\Backup" "D:\Backup"
    Where <User> is your Windows user name.
    To make iTunes look for the data in the new location type in this command and press <Enter>
    MkLink /J "C:\Users\<User>\AppData\Local\Apple Computer\MobileSync\Backup" "D:\Backup"
    If your preferred drive has a different letter or you already have a folder called "Backup" then edit "D:\Backup" accordingly in both commands.
    If you have Windows XP then you'll need a third-party tool such as Junction to link the two locations together instead of the MkLink command. The source folder is C:\Documents and Settings\<User>\Application Data\Apple Computer\MobileSync\Backup
    I'm pretty sure the same technique will work with the iPod software download folder, although it is worth noting that it does not work inside the iTunes Media folder. At last time of testing if you attempt to redirect sections of the media folder and iTunes writes to a redirected location it will erase the link and replace it with a regular folder.
    tt2

  • How to stop user from referencing a PR Item multiple times in an RFQ

    the same PR item is being referenced in the RFQ Muliple times. How can i control/stop the user from doing it.
    IS there a message which i need to set as error?

    Hi,
    You need to set the Message settings in
    MM--Purchasing -- environment data -- Define system messages or Tcode--OMCQ
    set the message number 06 076 as error message , then system will not allow the same line item to cross the PR qty
    rgds
    gsc

  • How to prevent user from entering zero hours in Timecard

    We have a need to prevent user to enter/submit zero hours in timecard. The case right now is user will be able to enter:
    Hours Type M T W T F
    Vacation 0 8 0 0 0'
    and when we run BEE transfer process it created absences with zero hour duration for Monday, Wednesday, Thursday and Friday.
    We try to prevent absences to be created with zero hours or user to be able to enter zero hours in timecard.
    Please help.
    Thanks

    Hi
    you can refer following example
    ========= formula ===============
    Initialise Variables which can be null
    default for db_pre_period_start is ' '
    default for db_pre_period_end is ' '
    default for db_post_period_start is ' '
    default for db_post_period_end is ' '
    default for db_ref_period_start is ' '
    default for db_ref_period_end is ' '
    READ IN INPUT VARIABLES
    INPUTS ARE resource_id (number)
    , submission_date (text)
    , period (number)
    , period_maximum (number)
    , reference_period (number)
    , db_pre_period_start (text)
    , db_pre_period_end (text)
    , db_post_period_start (text)
    , db_post_period_end (text)
    , db_ref_period_start (text)
    , db_ref_period_end (text)
    , duration_in_days (number)
    , timecard_hrs (number)
    Processing
    l_return = otl_24_hours_check()
    IF l_return > 0 THEN
         ( rule_status = 'E'
         message1 = 'DAILY_MAX_LIMIT' )
    RETURN VARIABLE
    RETURN rule_status, message1
    ============= database package ==============
    FUNCTION otl_24_hours_check
    RETURN NUMBER IS
    j NUMBER := 0;
    e_count NUMBER := 0;
    tc_blocks Hxc_Self_Service_Time_Deposit.timecard_info;
    BEGIN
    tc_blocks := Hxc_Self_Service_Time_Deposit.get_building_blocks;
    j := tc_blocks.FIRST;
    WHILE j IS NOT NULL
    LOOP
    BEGIN
    IF tc_blocks(j).scope = 'DETAIL' THEN
    IF to_number(tc_blocks(j).measure) > 24 then
    e_count := e_count + 1;
    END IF;
    END IF;
    j := tc_blocks.NEXT(j);
    END;
    END LOOP;
    RETURN e_count;
    END;
    ================================
    above formula checks if a person entered more than 24 hours in a day

  • How to stop user from moving position of a column in a JTable

    hello,
    can anyone tell me how to disallow the user from moving the column or a row in a JTable.

    setReorderingAllowed() of JTableHeader

  • How to stop user from forwarding his mail

    Dear Experts,
    I  am using the class cl_bcs to generate mails to some users , it would be great if i can stop those users from forwarding such mails to some unauthorised people. I understand that the add_recipient method has the parameter I_NO_FORWARD which should probably do the job when set to 'X' . But unfortunately it still doesnt stop the users from forwarding.
    Is there any other way of achieving my requirement.
    Thanks in Advance,
    Chaitanya.

    Hi,
    You need to set the Message settings in
    MM--Purchasing -- environment data -- Define system messages or Tcode--OMCQ
    set the message number 06 076 as error message , then system will not allow the same line item to cross the PR qty
    rgds
    gsc

  • How to stop user from using 961 mvt type in MB1C transaction code?

    Hi Friends,
    We have two companies. Already we have restricted end user for using 961 & 962 mvt type in MB1C transaction code in one company code 1000. Now, we want to restrict end user for using 961 & 962 mvt type in MB1C transaction code in other company code 1200.
    I have checked configuration using OMJJ transaction. But, it is there so there may be some different way of control.
    Can any body help me?
    Regards
    Siva

    Hi,
    To restrict/block the movement type,  the steps are:
    1. use transaction code OMJJ.
    2. Enter the movement type you want to block.[From 961 To 961](do for both961& 962)
    3. Select the Second option in the List which appears in the left. (Allowed Transaction).
    4. Remove the transaction codes (MB1C)from where you do not want to use that particular movement type& save.
    For user specific to block the movement type, pl consult Basis Consultant.
    Regards,
    Biju K

  • How to stop tumbler from generating thumbnailers for pdf file

    I'm using tumbler for thunar to generate thumbnailers, which works quite well. But I don't want it to generate pdf thumbnailers, since they are not in the same size. I've searched much, but not found any config file for tumbler. Any ideas? Thanks.

    Hi Aashi,
       So here is what I understood from you issue.
    1. You are creating a work item and sending a notification to the WI recipient about the task which is available in his inbox.
    2. Upon checking the mail the agent might open the WI which is in ready state and with taking any action on it he might close or click on back button.( So this action makes the work item status change from READY to INPROCESS state).
    After this I am not sure what is that making you to create another worktiem.
    what I would like to suggest is you can check the status of the work item from SWWWIHEAD table based on the work item ID.
    Next what I would suggest is to tweak you workflow design to include Deadline monitoring LATEST END. and it should be modeled. in this case what you can do is you can just set the previous work item to Obsolete and create a new work item.
    The other possibility  to fix your issue could be make use of the PORCESS control step after validating the state and of work item and set the work item to obsolete or logically deleted. so this makes the old work item cleared and the new work item appears in the users inbox.
    Regards,
    Pavan

  • How to stop headphones from becoming 'Input' for sound

    Hi,
    I hope somebody here can help me with this problem.
    When I connect my headphones to my Macbook Pro via the jack, the Sound Settings automatically change so that the headphones are not only the Output but the Input too - so if I record something whilst the headphones are connected, rather than the Internal Microphone being the default recording device, the headphones record instead!
    The problem is that I'd much rather use the Internal Microphone as the Input when the headphones are connected as the Output. But for some reason there's no option in System Preferences to stop the headphones automatically becoming the Input and to use the Internal Mic for this instead. This seems bizarre to me, as my previous headphones were purely Output by default.
    Is there any way I can change this? Set the headphones as Output only, whilst using the Internal Microphone as Input?
    There must be some kind of Advanced Settings somewhere!
    I'd be very grateful for any suggestions!
    Cheers,
    Jay
    p.s. Below is a screenshot of my System Settings > Sound after I've plugged the headphones in. As you can see, Input has changed to 'headphones with in-built external mic" and there appears to be no way to change it!

    Long shot, but...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back.

  • How to store beyond the range value for a given data type!!!

    Hi all,
    I want to know.Is it possible to create a new data type like int,float in java. which can store any number without any range restrictions.As you know the range of byte data type is -128 - + 127.I don't want any range restrictions.The data type should be able to grow dynamically.
    Regards!!
    Tameshwar Sahu

    The only solution I can think of is to use java objects, Im not sure youll be able to create a new primitive for java !!
    Youd have to put together Integers, posibly in a vector depending on how HUGE a number youd like to create.
    If you reached the max of one, add another to the vector. and then continue with the next.. The problem with this of course is the fact that math operations, will be a bit of a challenge to code. also actuall representation of the value would be a bit tricky as well !! There are however ways to go about this, you just have to think about it a little.

  • Inserting the default value for non existing date

    hello,
    i am designing a matrix report for payslip for month wise in oracle 6i report builder.
    in that i want to display per day working hours of the month.
    i m using following query for achieving my goal :
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    ORDER BY A.PAYCODE,A.DATEOFFICEit is displaying the hours for the date in b/w date ranges exist in master table.
    my problem is that if any date of a month is not in master data ,it should display the given date in DD format with 0 hours , A(absent) status, and null shift by default.
    pl tell me how to modify my query for getting my desirable result.
    Thanking You
    Regards
    Vishal Agrawal

    965354 wrote:
    hello,
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
    tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    ORDER BY A.PAYCODE,A.DATEOFFICEit is displaying the hours for the date in b/w date ranges exist in master table.
    my problem is that if any date of a month is not in master data ,it should display the given date in DD format with 0 hours , A(absent) status, and null shift by default.
    pl tell me how to modify my query for getting my desirable result.Your problem isn't exactly clear to me. How do you pass the dates to be compared to the DateOffice column? It will be better to ensure the Master table contain data for each date (with some default values) and you will not have to tweak your sql.
    Below is a possible solution:
    select *
      from
    select a.paycode,b.empname,c.departmentname,to_char(a.dateoffice,'DD') dateoffice,a.shiftattended,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,A.STATUS
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    a.dateoffice between to_date('01/12/2012','dd/mm/yyyy') and to_date('31/12/2012','dd/mm/yyyy')
    union
    select a.paycode,b.empname,c.departmentname,to_char(&date_variable,'DD') dateoffice,null,round(decode(a.hw,0,a.mannual_hours,a.hw),0) hw,
    a.ISMANNUAL,'A'
    from tbltimeregister1 a,
         tblemployee  b,
          tbldepartment c
    where a.paycode=b.paycode and
    (a.hw >0 or a.mannual_hours is not null ) and
    a.departmentcode='D05' AND
    a.departmentcode=c.departmentcode and
    ORDER BY A.PAYCODE,A.DATEOFFICEIf this is not what you are looking for, then
    1. Post a script that helps us to create the Tables required in your query
    2. Some sample data. That includes the data for master table that has missing dates (4-5 rows should suffice)
    3. The expected results from the sample data you posted.
    Please do not forget to mention your version:
    select * from v$version;

  • How to stop Firefox from launching everytime I turn on my MacBook?

    Hi Everyone,
    Everytime I turn on my MacBook, Firefox launches. It really bugs me, and I tried to stop it, but couldn't find how, either in system preferences or in the firefox menus.
    Can someone please help and tell me how to stop it from happening?
    Thanks already,
    Quentin

    This usually happens because you've added the application to the Login Items list in the Accounts preferences. Open Accounts preference, click on the Login Items tab, locate the Firefox entry, select it then click on the "-" button to delete it.

Maybe you are looking for

  • LV 5.0 to 8.6

    I should have checked the publication date before ordering Jeffrey Beyon's "LabVIEW Programming, Data Acquisition and Analysis" with CD.  I'm using the student edition of LV 8.6; all the examples, etc., on the CD are LV 5.0.  I'm not asking for anyon

  • Filename Format in FTP Delivery Channel - oracle.tip.adapter.b2b.allTPInOne

    Hi, For Inbound SFTP transfer is there a way to avoid using standard B2B file-naming convention at source files? We tried the following for B2B host external delivery channel (SFTP) which would pick up the files from trading partner directory - 1. Se

  • Transfer of Open items from Old recon a/c to New recon a/c.

    Hi Gurus, User want to change recon account for few vendors  and also wants the open items to be transferred to new recon from old recon account. It will be of great help if some one gives me step by step process for the above. Regards, IAK

  • My iBook is magnetic

    Please tell me this is normal. About 2 inchers below the little hole on the gray part on the right side sournding the screen is magnetic. It's only magnetic for 1/2 an inch but is is really weird. Please help thank you in advance! ibook g4   Mac OS X

  • % age in ECC 6.0

    Hi, Could any one share these details. 1.What is the % age required to clear certification in ECC 6.0 (Until 5.0 it's 70%) 2.If cleared the exam, when do we get the certificate from SAP. Regards, K