hide the region if the recordset field is empty

Hello

IM after a logic that will allow me to hide a code if a field in a recordset is empty. so I have a field called motion in a Recordset called rsProj_detail, now if the query contains no text so I want to hide a region of code. does anyone know how to do this? I hope that ive made myself clearly, if this no is not please tell me and I have re written the post.

Thank you

Have you tried something like this?

Tags: ColdFusion

Similar Questions

  • several checkboxes show/hide the same fields

    Hello

    I use Adobe LIvecycle designer ES2.  I have about 20 checkboxs need to show and hide the same fields. I can get it to show and hide the fields if the check boxes are selected. The problem lies when you uncheck a checkbox, allowing to hide the fields but if the original box is not disabled I would like this information to stay.  How do I script for this

    Hello

    You have complete control over it.

    Here are various approaches if you had four check boxes controlling the presence of a subform. All scripts are FormCalc and in the case of page layout: ready for the subform.

    Where any box would display the subform:

    If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) ge 1) then

    .its presence $ = 'visible '.

    on the other

    .its presence $ = "hidden".

    endif

    Where all four box have to click it to show the subform:

    If (sum (Checkbox1, Checkbox2, Checkbox3, Checkbox4) EQ. 4) then

    .its presence $ = 'visible '.

    on the other

    .its presence $ = "hidden".

    endif

    Make sense?

    Niall

  • Is there a way to hide the? symbol, if the recording of the image field is empty?

    If that makes sense...

    Basically, I put a page of details about a site that allows the owner of the site display up to three images. However, sometimes they will download only one or two images.

    Currently, that looks like this:

    http://www.travel7107.com/destinationDetails.php?destinationID=57

    Is it possible to get rid of the small? icons where the image field is empty?

    I tried to download a small white image, and affecting the blank.gif than the default fields, but the file download the script seems to crush those who have a blank if no picture is selected to download.

    So for the moment I have them given this small image to use if they have not the images, but it would be nice to know if there was a way to avoid this step?

    Try

    <>
    If ($row_WADAdestinations ["image_2"]! = ")
    echo '';
    ?>

  • See the region if the recordset field is (not) "null."

    Facing another problem. The solution is probably going to be very simple, but so far I have not thought of her. That's what I'm looking for:

    Say you have a page with the title, the introduction of message and a news reading, more button. The table in which the ballots are stored got 5 columns:

    • ID (primary key, I)
    • date_entry (timestamp)
    • newstitle
    • newsintroduction
    • newsmessage (may be NULL)

    As you can see, the "newsmessage" column can be NULL because sometimes there are short messages. What I want to know is, if the "newsmessage" column is null, on the page that displays the records of news, the link "read more" should not be visible. It should show only when the "newsmessage" column is "not null", so got content inside.

    Thank you!

    Is this really a region you want to show or hide? I guess it could be, but DW normally like it better when the "region" is its own row of the table. I don't know how much time, even when I do not select the TR tag in the property inspector and apply a show or Hide Server behavior, DW still places the code inside the TR tag in the source code.

    So, basically, want you want to do is wrap the a tag that contains the text read more, in an If statement. I don't have the exact syntax for you, my PHP skills are still developing. Maybe an other people could help - or if you do not have a behavior show or hide (when the recordset is empty or non-empty), take a look at the way this code is structured and use it as a guide. But if you use Null/Not Null as your requirement, make sure that the field contains a null value.

  • make images to NOT appear when the recordset field is contained

    On one of the pages of my site, I've learned in recent news, but I want only the last report shot if the image in tbNews field contains text. If there is no picture so I want to just 3 images (these may be hard-coded) to display.


    DynamicImage is drawn from the field of the image of tbNews. Image1 and image2, image3 are the images I want displayed if the image in tbNews field is empty. If the image field contains text then I don't want Image1 and image2, image3 to display.

    CODE *.
    "" < div id = 'Vidéo' > < img src = "" uploaded_images/files/news / < cfoutput > #rsLatestNews.image # < / cfoutput > "alt ="Latest news"name ="DynamicImage"id ="DynamicImage"> < /a > < img src =" images/dvdNoFlash.jpg "alt ="other pictures"name ="image1"width ="87"height ="92"="image1"id / > < img src =" images/dvdNoFlash.jpg"alt ="other pictures"name ="image2"width ="87"height = id ="92""image2"/ > < img src =" images/dvdNoFlash.jpg "alt ="other pictures"name ="3"width ="87"height = ID "92" = "3" / > < / div >

    RECORDSET:
    < cfquery name = "rsLatestNews" datasource = "DSNGrid" >
    SELECT *.
    OF tbNews
    ORDER BY newsDate DESC

    the structure of tbNews
    newsID
    newsDate
    newsSubject
    newsStory
    image

    IM Hope how to find,

    Does anyone know how?

    Hello

    Don't worry about this, I used another piece of code and it works correctly. But thanks for your help.

    I used ... .

    Thank you

  • Hide the individual fields of a group (radio button) based on another field

    Looked through the archives, but couldn't find the answer, who worked... THANKS in advance.

    A form that contains a radio 2 field (named funding) group - 'Cash' or 'other '.

    The group following (FinancingType), which is independent now, is a group of radio buttons of the 5 field - "Cash", "FHA", "GO", 'Classic' and 'other '.

    "Cash" is selected in the first group, I want to [FinancingType]. Button of Cash to choose (what I work via a trigger MouseUp)

    If (event.target.value == "Cash).

    this.getField("FinanceType").value = 'Cash ';...

    However, I want the other 4 fields greyed out or hidden.

    In addition, if the radio button "Other" is selected, I want to [FinancingType]. Button of cash to be gray or hidden.

    (ps. I know just enough coding to get in trouble!)

    Yes, you can. The code would be:

    this.getField("FinanceType").readonly = true; or false, change it back

  • Hide the form field by selecting a choice!

    Hi all...

    The scenario:

    There are four form fields: DeptId (inputText), EmpId (inputText), Nom_agent (inputText), rank (selectOneChoice).
    The field category (selectOneChoice) has the values of {A, B, C}.
    When I select the category as 'C', the Nom_agent field must be hidden immediately.

    Can someone tell me how to do it programmatically?

    Kind regards
    KR

    VERSION JDEV! ???
    What does not work?
    You still won't tell us why you want to do in a bean?

    Try

    public void onValueChange(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    String lovValue = getSoc1().getValue().toString();
    if(lovValue.equals("C")){
      getIt8().setVisible(false);
    }else{
      getIt8().setVisible(true);
    }
    AdfFacesContext.getCurrentInstance().addPartialTarget(getIt8());
    }
    

    Timo

  • Deletion of a link when the database field is empty?

    Using ASP and Access - I make a list of organizations using repeated regions. Some require a link to their Web site, others do not. The code I use is fine when an organization has a web address. However, those who still do not receive the "Web Site" linked text, but lacks a URL in the (orgWebsite) relevant data field is empty. I need to remove the linked Word and the void < a > HTTP: / / < /a > that is rendered when a field is empty.
    Ideally, I want that he continues to behave as it does when a URL is present on the database, but leave no case of absence code. I'm pretty sure this means him < A HREF = and the "Web Site" text must be contained in the ASP code, but none of my attempts worked. Appreciate any assistance on this...
    Thank you

    Assuming that your URL is stored in a field called URLLink then the code
    looks like this

    < %="">< br="">ThisLink = recordset.fields.item("URLLink").value < br=""> ThisLink if <> "" then< br="" >="" %="">
    Website: http:// <%=ThisLink%> ' > <%=ThisLink%>
    <%End if%>

    --
    Paul Whitham
    Certified Professional Dreamweaver MX2004
    Adobe Community Expert - Dreamweaver

    Valleybiz Web design
    www.valleybiz.NET

    "Lancs" wrote in message
    News:e6qddr$f9v$1@forums. Macromedia.com...
    > Using ASP and Access - I make a list of organizations using
    > repeated
    > regions. Some require a link to their Web site, others do not. The code I am
    > help
    > right when an organization has a web address. However, those who don't
    > still
    > get the linked 'Site Web' text, but it lacks a URL as the relevant data
    > field
    > (orgWebsite) is empty. I need to delete the linked Word and the void
    > HTTP: / / returned when a field is empty.
    > Ideally, I want to keep it to behave as it does when a URL is present on
    > the
    > database but leave no case of absence code. I'm pretty sure that this happening by the
    ><>
    > HREF = and the "Web Site" text must be contained in the ASP code but
    > no
    > my attempts worked. Appreciate any assistance on this...
    > Thank you
    >
    ("> http://<%=rsOrgs.Fields.Item("orgWebsite "). Value% > "> Web site
    >
    >

    < / [email protected] > "

  • User alert registration PDF if the required fields are empty/null

    Greetings,

    I read a lot of threads on this topic. I'm not trying to force the user to stay in one area or otherwise, be annoyed. I would like to just draw the attention of the user when they record the PDF file if there are mandatory fields have not been completed. The alert message would simply be a reminder polite form before sending.

    I use Acrobat Pro XI.

    (1) is the other tasks/Set Document Actions / Document will save the right place to use a script in this case?

    (2) the script will check each field required name? Or is it possible to reference all the fields requested in the document?

    (3) I have seen a few examples like this:

    f = getField (event.target.name)

    If (f.value.length == 0)

    {

    f.setFocus)

    App.Alert ("this field is required. Please enter a value. »)

    }

    However there are some problems regarding the closure of the alert dialog box and so on. Can someone provide an example script to help me get started?

    Thank you!

    Exactly how you check a field is empty depends on what kind of field it is. For text fields, you must get the value of the field as a string and compare it to an empty string, something like:

    var val = getField("Text1").valueAsString;

    If {(val)

    App.Alert ("field is not empty");

    }

    If there is a default value that needs to be changed, you would compare it to the default value:

    var f = getField ("Text1");

    var val = f.valueAsString;

    If (val! == f.defaultValue) {}

    App.Alert ("field value is OK");

    }

    For checkboxes and radio buttons, you would compare it to the string "Off", which means that none in the group is selected.

    For drop-down lists (combo boxes) and list boxes, there is normally a single value selected, so you should get the value and check the default value (or something else) to see if the field is filled in correctly.

    You could place the script it, but I usually use a separate button that I encourage the user to click to activate the check box. The problem with the help of her saving the event is that you cannot stop the backup.

    The script can loop through all of the fields (and test all zeros required), or you can define an array of domain names to check.

  • Hide the form field based on the name that contains some characters

    I think it's easy.

    We're looking for help with a script that allows you to hide all instances of text fields that contain a certain value. We have a running feature that applies to the same text fields, however, each text field should be labeled with a number at the end also running with this is a custom save button that flattens the page and hides some elements before the record on. The hide feature works pretty simple with "this.getField... = display.hidden; The problem is we do not want to repeat this step for each unique instance of fields that share the same name.

    We must look to each text box that has a similar title, so for example if we had several fields like that...  "my-text-field-01", "my-text-field-02" and "my-text-field-03" we want the script to find the "my-text field" name and hide all instances of that. ' "."

    Hope this makes sense, I'm sorry, our programming skills are still amateur. Thanks in advance for any help.

    You can do if you use a hierarchical naming convention. For example, instead of using something like: my-text - field.1, my-text - field.2, etc..

    You can then hide as well as:

    // Hide all of the "my-text-field" fields
    getField("my-text-field").display = display.hidden;
    
  • Rule hides the search fields

    I have a comprehensive rule to reduce the fields of metadata users see. I was tripping on the conditions originally but had so I found it easier to remove them all, however I realized that the only rule of information is also applied to the fields in the advanced search screen, what is the dpEvent for research please, so I can out - screen or even create a rule so that users can search only on relevant metadata elements.

    Martin

    Hi Martin,

    You can use ((dpAction like 'Search')) in the activation of rule condition, so it is applied to the search form.

    HTH

    -Anand

  • Hide the input field

    Hello everyone, I have a question on the pages ADF design.

    I have two field input A and B. A is a a select choice (with value 01, 02 and 03). B is an input text.

    I want to B like invisible when A is selected to the value 01.

    When A is selected for the value 02 or 03, B will be displayed.

    Anyone have any ideas? I was wondering if I just need to put in place a sort of "listener" or do I need to code?

    Thank you very much for your time,

    Sincerely,

    Alto

    Hi Viola,

    Something like this should work for you:

    
    ...
    
    

    AP

    Published by: Alejandro Profet on November 27, 2012 20:01

  • Show (a region) IF (value) = recordset field

    Hello - I work on ASP Javascript and must show a region if the column of a recordset in my Access database special value. How can I write this? Thank you.

    <% if (rs_SanFran.Fields.Item("OpenClose").value == "Open") { %>
    Sign up right now!
    <% }else{ %>
    Do something else
    <% } %>

  • Version 2012-WHY THE BROWSER FIELD remains EMPTY

    OK, so this question came about the support forum, but I can't seem to find solutions to the problem.

    Why THE FIELD BROWSER left EMPTY WHEN U RUN IT... What should you do to make a Web site to appear?

    PLEASE HELP ANYONE? !!

    import net.rim.device.api.browser.field2.*;import net.rim.device.api.ui.*;import net.rim.device.api.ui.container.*;
    
    public class BrowserFieldDemo extends UiApplication{    public static void main(String[] args)    {        BrowserFieldDemo app = new BrowserFieldDemo();        app.enterEventDispatcher();    }
    
        public BrowserFieldDemo()    {        pushScreen(new BrowserFieldDemoScreen());    }}
    
    class BrowserFieldDemoScreen extends MainScreen{    public BrowserFieldDemoScreen()    {        BrowserFieldConfig myBrowserFieldConfig = new BrowserFieldConfig();        myBrowserFieldConfig.setProperty(BrowserFieldConfig.NAVIGATION_MODE,BrowserFieldConfig.NAVIGATION_MODE_POINTER);        BrowserField browserField = new BrowserField(myBrowserFieldConfig);
    
            add(browserField);        browserField.requestContent("http://www.blackberry.com");    }}
    

    FOR THE DEVELOPING WORLD ALL BLACKBERRY.

    If you were like me and you've had this problem... Please, try this, it worked for me. (Before you launch the demo of browserfield app do this)

    Options > network connections and > mobile network

    change the network of GSM/UMTS technology

    CHANGE OF MODE 3 G NETWORK

    Good luck

    Kind regards

  • To make the location field fill empty when you create a new assignment

    Hi all

    I have a requirement to customize the form of assignment.

    Whenever develops a new employee and the assignment button is selected to go to the form of assignment, a default assignment is created for the new employee with a default organization and location. The requirement is not to fill the site with the default and keep it empty.

    I understand that the location that is labeled to the default organization is filled on the default assignment form. Is it possible using customization of the form where I can achieve.

    Kind regards

    I guess you should be able to achieve this by using the customization of forms, but you must select the correct triggering event to achieve. In a TIMES-NEW-ITEM - INSTANCE of the item ASSGT. Status of the ASSGT. LOCATION_CODE with a NULL value.

    This is because, according to the movement of the cursor/insertion sign, I could see that the STATUS is the next item to be created after the LOCATION. So we do not know how the data is dtermined in LOCATION_CODE. In order to better clean this value after it was created.

    Kind regards

    Stephanie.

Maybe you are looking for