Detail page only for certain values

I have a page that searches a few tables.
its a overall search, but there are records we dont want to
allow anyone to
edit based on a value.
So my question is... i have a results page which is already
setup to display
all records found.. with a link(go to detail page) how can i
code it so if
any of the results have a certain value that link is not
available?
Example
Name Phone Email
Contact Details
John 555-555-5555 [email protected] Yes View
Dave 222-333-4545 [email protected] No
Jess 854-896-7852 [email protected] Yes View
Using ASP, SQL2005 and DW8

Can anyone help with this one?
I just want to disable the link to the detail page if the
value for Contact
is NO then disable Details link
Using ASP, SQL2005 and DW8
"Daniel" <[email protected]> wrote in message
news:f2d35r$806$[email protected]..
>I have a page that searches a few tables.
>
> its a overall search, but there are records we dont want
to allow anyone
> to edit based on a value.
>
> So my question is... i have a results page which is
already setup to
> display all records found.. with a link(go to detail
page) how can i code
> it so if any of the results have a certain value that
link is not
> available?
>
> Example
>
> Name Phone Email Contact Details
> John 555-555-5555 [email protected] Yes View
> Dave 222-333-4545 [email protected] No
> Jess 854-896-7852 [email protected] Yes
> View
>
>
>
> --
> Using ASP, SQL2005 and DW8
>

Similar Messages

  • Syntax to only allow certain values in column

    What is the syntax, when I create a table, to only allow certain values in a specific column ?
    create table x
    col1 char(1) <- for example, only want to allow Y or N
    ) tablespace myspace;

    That would be a check constraint. Please check the oracle syntax on constraints.
    create table x
    col1 char(1),
    CONSTRAINT check_col1
    CHECK ( col1 in ('Y','N') )
    ) tablespace myspace;

  • How to enable Client Cert Required, only for certain URL's in the webserver

    WE are using netegrity siteminder for authentication and their plugin is executed as AuthTrans function. If I enable clientauth in server.xml ( which is basically turning on the client cert required for entire site), everything works fine. But If I want to turn that on only for certain URL's how do I do that.
    I tried turning global clientauth off in server.xml and tried using PathCehck fn"get-client-cert" in obj.conf for the URL's that need client cert, but the problem is AuthTrans is getting executed first and my netegrity plugin is throwing an error saying it cann't find the cert.
    What are diffrent options to enable cert required only for certian URL's.
    Thanks

    What is the condition you want to match?
    You can use get-client-cert in If tags in Web Server 7.0 :
    For e.g. If the condition is matched, This gets a cert, requesting it if it is not already present and failing the request if it can't obtain an acceptable cert only on POST requests.
    <If $url ~="*abc*>
    PathCheck fn="get-client-cert" method="POST" dorequest="1" require="1"
    </If>
    or
    <Object ppath="*abc*">
    PathCheck fn="get-client-cert" dorequest="1" require="1"
    <Object>
    for more details :
    http://docs.sun.com/app/docs/doc/819-2630/6n4thbiek?a=view#indexterm-380

  • Text Mandatory only for Certain Materials in Sales Order

    Is there anyway so that I can make certain item text mandatory only for certain materials?
    I tried creating new item category group and new item category. And then create new Text procedure making this text mandatory and assigning to this new item category.
    But there are lot of different types of item categories assigned. So it does not look good to create new item category for each and everyone for this new item category group and material.
    Please guide me how to make the document incomplete for certain materials only when one text is not filled at item level
    Thanks in advance

    Hi,
    what you tried is correct and that is been followed in most of my projects wherever I worked.  That is the best way recommended also.
    If you try with incompletion procedures for item category also, you will endup doing multiple item categories anyway....
    First when I looked at the subject line, even before I opened your POSTING, I got the same resolution as you did....May be the optimal one but, not sure, if something else is possible other than by doing user exit.
    Regards

  • 206 unable to set alert only for certain group

    Hi,
    is it a symbian unwanted feature that user is unable to set Nokia 206
    profile to alert for certain group (even though this kind of functionality is
    available on this phone)?
    To be more precise user is able to set profile to alert only for certain
    group but this setting has no effect (phone rebooted, groups recreated, etc. no effect)
    This feature has been available and workin in previous Nokia phones
    since last decace - is it a software quality issue or what.
    Best regards,
    Hez

    It is the Application Pool account making the query to retrieve the groups, so you would need to establish a trust from Domain B -> A.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Text id only for certain sales organization (sales order)

    Hello,
    we created a new text-id vor the text object "vbbk".
    In VOTXN we assigned this text object to our text procedure for the sales header.
    So this text id appears in all sales orders.
    How can we manage that a specific text id appears only for a certain  sales organization?

    We were afraid of this.
    I think we will implement the following solution:
    We will create a new text procedure and in USEREXIT_MOVE_FIELD_TO_TVCOM_H I will check the sales organization and assign the other text procedure to TVCOM.

  • Preview Thumbnails on New Tab page empty only for certain URLs

    When I open a new tab, there are three certain preview thumbnails which are always empty, and there is no way I can make them show up again. They did work in the beginning, but at some time the three previews vanished and never came back.
    I have already tried to empy the cache and reload the sites as suggested here, but the thumbs are still empty. It's always the same three URLs where this happens. I have also cleared the history, opened the sites again and dragged the items from the history menu into a thumbnail - same result.

    The pages may be send by the server with a no-cache or no-store header preventing Firefox to store that pages in the cache.<br />
    Firefox will only generate thumbnails if the page is in the cache.
    *https://support.mozilla.org/kb/thumbnails-on-new-tab-page-are-missing
    The thumbnails on the about:newtab page are generated from the cache, so if the page is not in the cache or otherwise can't or won't (secure pages) be rendered as a PNG image then you will get an empty box.
    *Do not use Clear Recent History to clear data like the cache and the history when you close Firefox
    If there is no history then you get an about:newtab page with empty boxes (no URLs).
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=756881 bug 756881] - New tab thumbnails not displayed (or old images displayed) for Facebook, Twitter (sites using Cache-Control no-store)

  • Update statement conditioned on two columns but for certain values only

    Hi this is my my sample data:
    with Table_1       
    as
          select '20:00' incident_time, 'WEDNESDAY' Day, 'N' Weekend,  '' Weekend_Alt   from dual
          union all
          select '18:00' incident_time, 'SATURDAY' Day, 'Y' Weekend,  '' Weekend_Alt from dual
          union all
          select '19:00' incident_time, 'FRIDAY' Day, 'N' Weekend, '' Weekend_Alt from dual
          union all
          select '11:00' incident_time, 'FRIDAY' Day, 'N' Weekend, '' Weekend_Alt from dual
    select *
      from Table_1I want to perform an update as seen below
    Update Table_1 tt
    SET Weekend_Alt = (CASE WHEN TO_CHAR(tt.day,'fmDAY') IN ('FRIDAY AND TIME >= 19:00','SATURDAY','SUNDAY') THEN 'Y' ELSE 'N' END)
    I realize the syntax is wrong but just want to give you an idea of what I want to achieve.Final Result should look something like this:
    with Table_1       
    as
          select '20:00' incident_time, 'WEDNESDAY' Day, 'N' Weekend,  'N' Weekend_Alt   from dual
          union all
          select '18:00' incident_time, 'SATURDAY' Day, 'Y' Weekend,  'Y' Weekend_Alt from dual
          union all
          select '19:00' incident_time, 'FRIDAY' Day, 'N' Weekend, 'Y' Weekend_Alt from dual
          union all
          select '11:00' incident_time, 'FRIDAY' Day, 'N' Weekend, 'N' Weekend_Alt from dual
    select *
      from Table_1Thanks in advance!!!
    Banner:
    Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production

    with Table_1
    as
          select to_date('01-JUL-2009 20:10','DD-MON-YYYY HH24:MI') incident_date    from dual
          union all
          select to_date('23-MAR-2010 12:12','DD-MON-YYYY HH24:MI') incident_date from dual
          union all
          select to_date('25-JUL-2010 23:30','DD-MON-YYYY HH24:MI') incident_datet from dual
          union all
          select to_date('09-JAN-2010 08:30','DD-MON-YYYY HH24:MI') incident_date from dual
          union all
          select to_date('08-JAN-2010 08:30','DD-MON-YYYY HH24:MI') incident_date from dual
          union all
          select to_date('08-JAN-2010 20:30','DD-MON-YYYY HH24:MI') incident_date from dual
          union all
          select to_date('26-JUL-2010 00:00','DD-MON-YYYY HH24:MI') incident_datet from dual
    select incident_date, to_char(incident_date,'Day'),
        case
            when incident_date between trunc(incident_date,'IW') + 4 + 19/24
                                   and trunc(incident_date,'IW') + 7
            then 'Y' else 'N'
        end
    from Table_1 t;So your update would be
    update table_1 tt
    set weekend_alt =
        case
            when incident_date between trunc(incident_date,'IW') + 4 + 19/24
                                   and trunc(incident_date,'IW') + 7
            then 'Y' else 'N'
        end;But it does lead me to question whether it is a good idea to store this derived data
    Edited by: 3360 on Nov 8, 2011 10:14 AM

  • How to scan an Excel Page/sheet for specific value in cells?

    Hi,
    I want to be able to scan an excel sheet for a specific value and return it.
    My goal is to be able to scan the excel file which it compares to another value:
    I.E : reads item 1 which gives it a value of A it will then search for this A at location X it will then return a value that matchs it or return a pop up message saying no such item exists in area excel page G.
    Message Edited by MrSafe on 07-23-2008 04:48 PM

    I did not understand your explanation since I don't know what "item 1" is supposed to be to read. Skipping that, the easiest way to do this is to do the searching in LabVIEW. Simply read the Excel sheet into an array and search the array in LabVIEW. You can try to use ActiveX to execute the "Find" method, but that's up to you. You can research MSDN on how to call the "Find" method. The attached example is one that I created a while ago as an example to read an Excel range into an array. It's in 8.0.
    Attachments:
    Read Excel.vi ‏35 KB

  • Query registry with powershell for certain value

    Hi,
    Ever since Windows 7 we are having trouble with USB-printers. For some reason they get disabled ever so often.
    The only solution we have then, (that works) is to fully remove and re-install the device.
    However, we give our printer a specific name "loketprinter". If you remove the printer, some values with "Loketprinter" remains in the registry. These are located in various locations troughout the registry.
    Therefore i'm looking for a fast way to query and delete values or keys that contain "loketcomputer".
    I want to search the whole register.
    Could you please get me on my way?

    after some googeling and reading the help file i've created the following: 
    Get-ChildItem HKCU:, HKLM: -Recurse -Include *Loket* -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Name
    This only find parts of it, but at least its something.
    Its really slow though

  • Mutliple accounts: download new mails only for certain accounts

    i have setup mail to have a few accounts. i can disable accounts in the preferences, but then they are not any longer shown in mail.
    when i now open mail, all new mails from all accounts are retrieved. how can i have mail only download new mail for one (certain) account. maybe to trigger the download by hand? or have mail configured to download mails automatically for one account and manually for the others.
    it is very anoying, when opening mail, that all accounts are processed. this takes time especially on a weak and slow internet connection, it also costs download traffic. i want to manually trigger the "get new mails" for accounts.
    markus

    thats not the point: i don't want the automatic push in the backround. setting "manual" only means: that the mails are retrieved when mail.app is openend. this is not what i want. i want to open mail.app and then choose which mails/accounts being retrieved!

  • Restricting certain users groups to read only for certain folders

    Hi
    I'm not sure if this is the correct forum, but hey, hopefully someone might now the answer or direct me to the correct one.
    I'm writing a VB program to amend ACLs for specific user groups.
    Effectively, I make all prior year folders read only, whereas the default for the group is Modify, Delete etc.  This means they can continue to work in the "new year folders", but historic years is List/read only.
    I've got to the point the program does everything I want, i.e. stops folder creation7deletion, file & folder name changes, copying for the historic years, but does not prevent deletion of files in the folder.  Effectively I set Deny access on the
    historic folders.
    Testing using the Windows GUI would appear to resolve the problem is I change the Deny Special Permission (for the group) from "This folder only" to "This folder & files".
    Question then is how to I set this in VB, the default appearing to be "This folder only"
    Here's extract of my code
    Thanks
    IfvarDirectoryName.IndexOf("\"&
    Date.Now.Year) = -1
    Then
                FileAcl3.AddAccessRule(
    NewFileSystemAccessRule(GroupAdmin(0),
    FileSystemRights.Modify,
    AccessControlType.Deny))
                FileAcl3.AddAccessRule(
    NewFileSystemAccessRule(GroupAdmin(0),
    FileSystemRights.DeleteSubdirectoriesAndFiles,
    AccessControlType.Deny))
                FileAcl3.RemoveAccessRule(
    NewFileSystemAccessRule(GroupAdmin(0),
    FileSystemRights.ReadAndExecute,
    AccessControlType.Deny))
                FileAcl3.RemoveAccessRule(
    NewFileSystemAccessRule(GroupAdmin(0),
    FileSystemRights.ListDirectory,
    AccessControlType.Deny))
    Dim FileInfo3 As IO.FileInfo = New IO.FileInfo(varDirectoryName)
    Dim FileAcl3 As New FileSecurity
    If varDirectoryName.IndexOf("\" & Date.Now.Year) = -1 Then
    FileAcl3.AddAccessRule(New FileSystemAccessRule(GroupAdmin(0), FileSystemRights.Modify, AccessControlType.Deny))
    FileAcl3.AddAccessRule(New FileSystemAccessRule(GroupAdmin(0), FileSystemRights.DeleteSubdirectoriesAndFiles, AccessControlType.Deny))
    FileAcl3.RemoveAccessRule(New FileSystemAccessRule(GroupAdmin(0), FileSystemRights.ReadAndExecute, AccessControlType.Deny))
    FileAcl3.RemoveAccessRule(New FileSystemAccessRule(GroupAdmin(0), FileSystemRights.ListDirectory, AccessControlType.Deny))
    FileInfo3.SetAccessControl(FileAcl3)
    End If

    Ho Rohn
    Your right, when I added the flags I got the following error at execution
    {"No flags can be set. Parameter name: inheritanceFlags"}
    I've developed a work around, which gives me exactly - subject to further testing - what I want.  I simply mark each file in the relevant folders with a Deny Delete option.
    I will however explore the DirectorySecurity class option, but initial review of the www seems a little shy on VB examples.
    Thanks
    Perry
    You should be able to use FileSecurity and DirectorySecurity the same way (they have identical methods). Since this is a scripting forum, I'll provide a PowerShell example (which is fairly close to C# and VB; they all use the exact same classes):
    $varDirectoryName = "c:\folder"
    $GroupAdmin = "Admin Group"
    $FileInfo3 = New-Object System.IO.DirectoryInfo $varDirectoryName
    $FileAcl3 = $FileInfo3.GetAccessControl()
    $FileAcl3.AddAccessRule((New-Object System.Security.AccessControl.FileSystemAccessRule (
    $GroupAdmin,
    [System.Security.AccessControl.FileSystemRights]::Modify,
    ([System.Security.AccessControl.InheritanceFlags]::ContainerInherit -bor [System.Security.AccessControl.InheritanceFlags]::ObjectInherit),
    [System.Security.AccessControl.PropagationFlags]::None,
    [System.Security.AccessControl.AccessControlType]::Allow
    $FileInfo3.SetAccessControl($FileAcl3)
    I could have taken a lot of shortcuts when using the enumerations, but I think keeping it verbose helps show how similar the code can be.
    Does that make sense?

  • Enabling services via systemd only for certain targets

    Hi everyone,
    I have been searching and searching and I struggled through manpages but found nothing...
    How can you enable services using systemd for a certain target?
    Something like "systemd enable --target.graphical gdm".
    My idea is to have 2 grub entries, one that boots into target.multi-user and the other that boots into target.graphical.
    Then I would enable the gdm and other services I want for target.graphical but not for target.multi-user. That way I could choose on bootup if I want gnome this time or not and have a custom fallback/high performance mode.
    I hope I'm not just utterly blind and wasting erverybodys time but I didn't find any information on this whatsoever.
    Thanks in advance guys!
    Last edited by Ch33f (2014-07-31 13:23:55)

    Oh god this one almost hidden sentence:
    If you make use of those it is suggested that you make a new named systemd target as /etc/systemd/system/your target that takes one of the existing runlevels as a base (you can look at /usr/lib/systemd/system/graphical.target as an example), make a directory /etc/systemd/system/your target.wants, and then symlink the additional services from /usr/lib/systemd/system/ that you wish to enable.
    Ok thats a start.
    But there is no parameter in "systemd enable" that I could use to do it?
    Last edited by Ch33f (2014-07-31 13:43:49)

  • PO approval only when certain value in PO is changed from its referrence PR

    Hi All,
    Need your help on this one. I have a scenario, where it is mandatory to have an approved Purchase Requistion as a reference to create a PO. I have configured this part. Now, the requirement is, because this PO is getting created in reference to an approved PR, it doesn't require any approval. However, if the buyer changes any value in the PO, which is different from the PR, then it would trigger a Purchase Order approval.
    Please do let me know, if there is a standard way to map this scenarion in SAP ECC 6.0.
    Thanks and Regards,
    Anirban

    Hi Ravindran,
    Thanks a lot for your inputs. I have done the PO approval configuration, and the PO approval is working fine. My problem is that, when I am creating the PO with an approved PR, the PO approval is getting triggered. I do not want that. I want the PO approval to not get triggered, because, it is getting created with reference to an approved PR. However, if the buyer makes any changes in the PO, which changes the value of the PO as compared to the PR, then it should trigger the PO approval process.
    Any tips/comments on this particular scenario? Would be looking forward to your reply.
    Thanks and Regards,
    Anirban

  • HTML tags for certain values in a report

    Hi, I have built a report with a list of patient visit to a doctor. This is roughly a custom calendar with the names of the patients at different predefined hours.
    I am now trying to display a canceled visit by adding a strike through line for the patient in question.
    The overall look will be list with patient's names and some of them will be strike through-ed if they canceled it.
    So I changed my select for the report to look like this:
    select '<del>' || patient || '</del>' where canceled = 1 ...
    But the report still looks the same - no lines through the names.
    I also tried with bold tag but it seems that the tags are just dropped off somewhere in the process of rendering.
    Could anyone help?

    For using tags in the calendar see this link:
    http://apex.oracle.com/pls/otn/f?p=31517:116
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • Free goods are not copying in credit memo from invoice

    Dear Gurus, I have made a invoice having two line items 1.normal goods with sale price and 2.free sample goods(part of promotional scheme) without any sale price. but while making credit memo for receiving goods back in cancellation of invoice , i am

  • How to set up at work?

    I have an iBook G4 and used to just connect my ethernet cable into my machine and was able to surf the web. But this morning I can't get a connection at all? Safari doesn't work. Neither does iTunes. I checked the system using 'ping' function and dis

  • How to configure Mail to send from off-site

    I am trying to configure Mail on a laptop that will send and receive email both went it is connected to the servers ISP (on site) and when the laptop is connected to a non-site ISP. In other words when I am in the office I am connected to the ISP tha

  • Explain Plan of a query.

    I want to know the concept of this 'Explain Plan' of a query & why it is used. Could u also give the syntax of how a explain plan for a query can be done. Please help in solving the doubt as it is urgent.

  • Help with downloading

    I have a new iMAC and when I purchase songs from itunes my songs are not being downloaded to my iPod. I have reinstalled iTunes twice already and still I am having the same problem. Any hope?