Need to apply a label based on db content

Hi, I have an Access database given to me by a client, and I
can't change anything about it because of other uses that the db is
put to other than the website.
Within the db is a table that holds a field called address
type. That address type could be business or private. My problem is
that the entry in to that field is either a B or a P to indicate
what sort of address it is.
What I need to be able to do is replace the B or P with
Business or Private ,but have no idea on how to do so. Has anybody
got any ideas?
The closest I can think of is using a static drop down menu
and take the value and apply a label to it, but I don't want a
menu, I need basic text to display.
Thanks
Mat

if label="B" then response.write("Business") else
response.write("Private")
end if
If you've got more than two choices, use "select case"
instead (see
www.w3schools.com, Learn VBScript section for specifics).
"label" above is a stand-in for wherever you've stored the
address type;
replace it with your local variable or recordset field
reference.
"matthew stuart" <[email protected]> wrote
in message
news:f14hu0$b6j$[email protected]..
> What I need to be able to do is replace the B or P with
Business or
> Private
> ,but have no idea on how to do so. Has anybody got any
ideas?

Similar Messages

  • Changing content of one label, based on the content of another

    Hello all,
    I need some advice on how to go about doing something that should be simple.
    Basically, I have two labels, that will be used in a marquee animation. When label one gets changed, I want label two to mimic label one's content. Since there is no ContentChanged Event for labels, I have been relying on the SizeChanged event of label one
    to do the job.
    However, the issue arises when label one's content extends past that of its parent container, thus no longer firing SizeChanged.
    When label one's supposed length is equal to or greater than that of its container, is when I would start the marquee animation.
    Basically, I need a sure fire, reliable, 100% accurate way to update label two's content to match that of label one's despite its length.
    I have read the following: Label.Content Changed Event
    However this does not solve the issue, as the event fires for "all" custom label classes, due to the ContentProperty being declared Static/Shared.
    Thanks in advance!

    <UserControl x:Class="CustomControls.UserControls.ValidationUserControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d" Height="36" Width="120">
    <Grid x:Name="z">
    <TextBox x:Name="txtBase" Text="TextBox" Margin="0,0,0,13"/>
    <Label x:Name="lblStatus" Content="Status" HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Bottom" FontSize="10" Foreground="#FFE12828" FontWeight="Bold">
    <Label.Effect>
    <DropShadowEffect BlurRadius="5" ShadowDepth="1"/>
    </Label.Effect>
    </Label>
    <Label x:FieldModifier="Friend" x:Name="lblMarquee" Content="{Binding ElementName=lblStatus, Path=Content}" HorizontalAlignment="Right" Margin="0,23,-29,0" FontSize="10" Foreground="#FFE12828" FontWeight="Bold" Background="Transparent" Height="13" VerticalAlignment="Top">
    <Label.Effect>
    <DropShadowEffect BlurRadius="5" ShadowDepth="1"/>
    </Label.Effect>
    </Label>
    </Grid>
    </UserControl>

  • Need to apply on the order based on customes

    Hi All
    I need to apply hold on orders which was created by particular customers.. For that I used "oe_holds_pub.apply_holds" API by passing parameter like
    v_hold_source_rec oe_holds_pvt.hold_source_rec_type
    DEFAULT oe_holds_pvt.g_miss_hold_source_rec;
    v_hold_source_rec.hold_id := v_hold_id;
    v_hold_source_rec.hold_entity_code := 'C';
    v_hold_source_rec.hold_entity_id := customer_id
    oe_holds_pub.apply_holds
    (p_api_version => 1.0,
    p_init_msg_list => fnd_api.g_true,
    p_commit => fnd_api.g_false,
    p_validation_level => fnd_api.g_valid_level_full,
    p_hold_source_rec => v_hold_source_rec,
    p_hold_existing_flg => 'Y',
    p_hold_future_flg => 'Y',
    x_return_status => v_return_status,
    x_msg_count => v_msg_count,
    x_msg_data => v_msg_data
    When I executed the program it show return_status='S' mean "success", But, when i check the Order of particular customer(IN front end) it doesn't change to 'HOLD', I need information on this API? what are the parameters we need to pass?
    Difference b/w hold_entity_code='C' and hold_entity_code='O'(is their any particular meaning for 'O' and 'C')?
    hold_entity_id: Refers for?
    Can any one send the link..........

    Hi Suresh,
    You can go to the technical settings and tick the check box Log Data Changes at the bottom of the screen.
    Hope it helps...
    Lokesh
    Pls. reward appropriate points
    Message was edited by: Lokesh Aggarwal

  • Need to apply table fill color based on text content

    Totally new to Indesign-scripting – but really need a solution to this:
    I have a table
    I want to fill the table cell with a different color based on text content.
    If cell contents the text "Apple" fill color of cell should be color swatch "Red"
    If cell contents the text "Banana" fill color of cell should be color swatch "Yellow"
    Any help most appriciated!

    Hi Franke,
    Try the below code, may it will helpful:
    var myDoc = app.activeDocument
    //var myCell = app.activeDocument.textFrames.everyItem().tables.everyItem().cells.everyItem().getElement s()
    app.findTextPreferences = app.changeTextPreferences = null
    app.findTextPreferences.findWhat = "Apple"
    var myFound = myDoc.findText()
    for(i=0; i<myFound.length; i++)
        if(myFound[i].parent.constructor.name == "Cell")
        myFound[i].parent.fillColor = "aaa"
    If the above code helps you, then please give Helpful or Correct Answers.
    Because for the last 3 months only I started my Indesign Scripting Career.
    With the help of Forum legends I can able to reply for simple questions.
    Thanks all...
    Regards
    BEGINNER

  • Coldfusion 11 SSL Certs applied - The APR based Apache Tomcat library which allows optimal performance in production environments,

    Coldfusion 11
    Windows Server 2012 R2
    Both the Coldfusion admin and additonal site work fine on HTTP.
    As soon as I attempt to enable SSL websockets and install SSL certs, the Coldfusion 11 Application service will not start. I followed the steps below....
    Coldfusion 11 - Web Sockets via SSL
    The Coldfusion-error.log shows
    Jan 26, 2015 3:21:23 PM org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path
    Server was a cloned VM of the test server with developer copy of CF11, but license has been purchased and applied. SSL certs have been imported successfully, paths are correct in CF Admin to the cert file etc.
    Do I need to install another version of Coldfusion to get around this issue or is there a download update I need to apply?
    If i reconfig the \cfusion\runtime\conf\server.xml to comment out the SSL sections it works fine.
    Any assistance welcome - I can't allow this site to made publicly available with using SSL.
    SM

    @Scott, first are you running update 3? If so, let’s clarify at the outside that, as that bug report (you point to) does indicate in the notes below it, there is a fix for a problem where this feature broke in that release.  And as it notes, you can email [email protected] to request the fix (referring to that bug), or you can wait for it to be released publicly as part of a larger set of fixes.
    If you are NOT on update 3, or you may apply the fix and find things still don’t work, I would wonder about a few things, from what you’ve described.
    First, you say that the CF service won’t start, and you offer some lines from the ColdFusion-error log. Just to be clear, those particular error messages are common and nothing to worry about. They definitely do NOT reflect any reason CF doesn’t start. But are you confirming that that time (in the log lines) is in fact the time that you had started CF, when it would not start? I’d suspect not.
    Look instead in the coldfusin-out.log. What does THAT log show at the time you try to start CF and it won’t start? You may find something else there. (And since you refer to editing the server.xml file, you may the log complains that because of an error in the XML it can’t “parse” the file. It’s worth checking.
    You say also that you have confirmed that “paths are correct in CF Admin to the cert file”. What path are you referring to? There’s no page in the CF admin that points to the CACERTS file in which the certs are stored. Do you perhaps mean on the “system info” or “settings summary” page? Even so there’s still no line in there which refers to the “cert file”.
    Instead—and this could be a part of your problem—the cert file is simply found WITHIN the directory where CF’s pointed to to find its JVM. Wherever THAT is, is where you need to put any certificates. So take a look at the CF Admin, either in the ”java and jvm” page (and the value of its “Java Virtual Machine Path”), or in the “settings summary” or “system information” pages and their value for “Java Home”. Is that something like \coldfusion11\jre? Or something like \Java\jdk1.7.0_71\jre? Whichever it is, THAT’s where you need to put the certs, within there (in its \lib\security folder).
    Finally, when you say that if you “comment out the SSL sections  it works fine”, do you mean that a) CF comes up and b) some example code calling your socket works, as long as you don’t use SSL?
    To be clear, no, you don’t need any other version of CF11 to get websockets to work. But if you are on update 3, that may be the simple problem. Let us know how it goes for you with this info.
    /charlie

  • Label Based Menu font not changing

    When using the label based menu I am changing the font size from 13 to 16, setting it as bold, changing the color and saving the model.  However, non of these changes are showing in preview mode or when exporting to pdf. How can I get this to work properly?

    Hi Suzanne,
    you need to install SP1, as this bug has been fixed there.
    You can download SP1 here:
    https://smpdl.sap-ag.de/~sapidp/012002523100007532212008E/cx2008_sp1.zip
    You can find details on how to install in the message
    Please install SP1 before posting!
    Best regards,
    Margaret

  • The link open in the same window - Label based menu

    Hi All,
    I'm using Xcelsius 2008.  I add a Selector Component "Selector complonenet > Label based menu". I setup 6 Lable and each one link to a URL. When clicking the label on the generated SWF report, the link opened in a new window.
    So i'd like to know if the link can open in the same window (not pop-up a window and open in it)?I tried to setup it in properties, but it seems there is no way to do this.
    Could I get your guide how to do that? Thank you so much.

    Hello
    I would like to know one thing before answring the question how did you link with an url with the label based menu.
    Did you used the opendocument syntax or what did you used.
    Another method is why donf you use the URL button and map according to your requirement. place the url button on the menu item and change the properties to tranperancy to 0%.
    Thanks
    Santhosh V
    Edited by: Santhosh Vudarla on Nov 19, 2010 12:05 PM

  • Changing the label name in a label based menu

    Hello,
    In my current dashboard, i have been forced to change the front page label name in a label based menu quite late on in the design. However, this has consequently resulted in the front page not showing up until after I have clicked the mouse. Previously the front page just showed automatically. Has anyone had this problem before?
    Thanks,
    Dilip

    Hello both, i managed to solve this issue by linking the label based menu to entirely new cells. This is not ideal but at least it saved me having to re-do a lot of my work.
    Thanks for your help, dilip

  • Label Based menu not working in ppt

    I have created an xlf file with label based menu and added it to a ppt containing several slides. Now when I run the slide show, it goes to the next slide if I do not click any other label. But if I click one of labels and then want to move to the other slide in slide show, it just gets stuck.
    Can anybody address this please.

    Can anybody please address this issue. I have been searching through everyplace possible for a solution. No success.

  • Business need to define credit limit based on material

    HI,
    Business need to define credit limit based on material,do we have option in SAP like this

    Hi,
    If you can consider the credit check deactivation at item category level, it is possible.  You can find a switch to deactivate credit check at VOV7.  If you can group such materials under Z item category, you can control those.
    But credit limit is not possible in standard.
    Regards,
    P Gomatheeswaran
    Edited by: Gomatheeswaran Palaniappan on Sep 22, 2011 12:21 PM

  • Need to apply payment for delivered items only, not full down payment

    Version: (8.8 PL18)
    Description of requirements: (Be able to handle the right amount of down payment when we copy a sales order to an invoice and there is a back order for some items. It actually works fine when we go on an invoice and we copy from a sales order, the system handles correctly the down payment amount when there is a back order. )
    Valid as of: (29/07/2011)
    Business needs: (They need to apply only the part of the payment for the delivered quantities, not ALL the payment.  In addition, the risk of errors to choose the wrong order is higher when you use the u2018copy fromu2019 function)
    Examples: (When you create a sales order with a down payment and you copy this document to an invoice and there is a back order, the amount of down payments should be adjusted according to the back order as it works now for the u2018copy fromu2019 function)
    Current Workaround:
    (We use the u2018Copy fromu2019 function.)
    Proposed solution:
    (The u2018Copy tou2019 function should work exactly as the u2018Copy fromu2019 function)

    It's not just a licensing requirement. Without the RIKLA you cannot make Reader plug-ins at all. Adobe will vet your proposal and decide if they will permit it, and what license fee you will pay.

  • Need to Create AD LDAP based Address Book

    We need to Create AD LDAP based Address Book. Following is the scenario.
    Our Existing Network
    SMTP Domain Name1  is xyz.net hosted on O365 Exchange online with E3, E1 and KIOSK Plan for different users.
    SMTP Domain Name2 is abc.com hosted on onpremise Linux box
    Windows 2008R2 based AD Domain named abc.com
    Linux POP users get central/global address list by using AD Domain for
    abc.com LDAP address list
    Solution required for
    Exchange KIOSK user with POP connectivity need to have access to some Central/Global Address list for
    xyz.net
    We wish to
    Setup a seperate domain joined or workgroup server and use the Windows AD LDAP/ADAM service to build a Address List for
    xyz.net domain
    we DO NOT wish to replicate AD LDAP Instance from our existing Domain Controller.
    configure Exchange Kiosk pop users to use LDAP addres list by connecting it to the AD LDAP server.
    We are looking for
    steps to setup a ADLDAP/ADAM service on Win2008R2 or 2012 with a fresh AD LDAP Instance.
    The step to create a Application Directory Partition
    Populate the Application Directory Partition with users, groups, contact for the xyz.net domain either manually as well as by importing
    allow users to be able to access this application directory partition on AD LDAP server and
    allow the users to configure their pop email client [outlook 2010] to use the LDAP address book on the AD Ldap server

    Hi,
    Here i found some articles for you refering:
    How Active Directory Application Mode Works
    http://technet.microsoft.com/en-us/library/cc755705(WS.10).aspx
    AD LDS Getting Started Step-by-Step Guide
    http://technet.microsoft.com/en-us/library/cc770639(WS.10).aspx
    Active Directory Lightweight Directory Services
    http://technet.microsoft.com/en-us/library/cc731868%28WS.10%29.aspx
    Active Directory Lightweight Directory Services Operations Guide
    http://technet.microsoft.com/en-us/library/cc816635(WS.10).aspx
    Thanks.

  • Do I need to apply for copyright when I publish a book to the iBook store through iBooks Author?

    I am about to publish a book to the iBook store through iBooks Author. Would I need to apply for some sort of copyright? I have no experience so please correct me if I am wrong. Thank you

    Copyright is an important legal issue and certainly complex. But in general, a good place to start is registering your book with the Library of Congress. You can do it by mail, and they will grant you a Library of Congress control number which you can place on your copyright page. This will register your book as your copyright and is well worth checking out.
    Though, and I'm not sure, but you may have to have an ISBN so some cost is involved.
    Hope this helps.

  • Applying different GPOs based on extensionattribute1

    Hello,
    I would like to make use of the extensionattribute fields for computer accounts in AD.  What I would like to do is apply a differnt GPO based on the contents of a particular field, for example, I would like to create three different GPOs with different
    patch settings:
    PROD
    DEV
    PILOT
    I would then enter the corresponding value for each server in extensionattribute1.  I would then like to have the correct patching GPO applied to each server based on the value in extensionattribute1.
    I know this might be easier to do using OU's, but our OU structure is already very strict and I can't move the machines around for this purpose. 
    Is this even possible?  If not, can anyone make a different suggestion that will allow me to use extentionattribute1 in a similar way?

    How about using Security Filtering instead of AD attributes.
    Group A: Prod
    Group B: DEV
    Group C: PILOT
    Put the servers in the respective group and apply the GPO to that group.
    Will continue to think on using an AD attribute

  • Do I need to apply for Adobe Reader Integration Key License (RIKLA) Program?

    I want to develop a commercial plugin for Adobe Reader that invokes some action through new items on right-click context menu.
    I need to apply for RIKLA for that?
    Reading the FAQ I notice this:
    What are the restrictions for Adobe Reader plug-in development?
    Modify the appearance of Adobe Reader
    I don't know if adding an item to context menu could be considered as "Modify appearance", besides this seems that RIKLA only applies for vary specific types of plugins and closed to very few people... I don't know if I need to worry about this or not because of being a commercial plugin.
    Thank you so much

    It's not just a licensing requirement. Without the RIKLA you cannot make Reader plug-ins at all. Adobe will vet your proposal and decide if they will permit it, and what license fee you will pay.

Maybe you are looking for

  • Problems with quick time and phone

    hi guys im having problems with my quicktime media player where if i want to open or play a movie it says it doesnt support the file but if i open it up on a different media playr such as vlc it does. also this problem arises as ive got a new mobile

  • Error messages in invoice pool (VF04)

    Hi! When i use transaction VF04 to invoice if there are any standard errors, the transaction ends all invoices and shows a report with a log of the errors; but the important is, that it finishes all the invoices. The problem is if i put some message

  • Is there a way to add an element to a group in Captivate 7?

    Hello, I would like to add an element to a group without ungrouping the original group and regrouping the group again with the new element.  The reason is is that all of my groups are part of advanced actions, and once you ungroup something, it "fall

  • Strange Behavouir iCal (Mac & iPhone)

    Hallo I work with iBiz for my Timebilling. After the switch to 10.5 I had a 2 hours of (TimeZone Problem) with the Events in iCal. The Times were displayed correctly in iBiz and on my ipHone. After the Update to 10.5.4, the 2 hours of in iCal where c

  • Which size to set up project for video?

    I have a file that's 720 x 480. Which size should I use when setting up a project? 16:9 or 4:3 - thanks for the help.