Hide/show text when field null and not null
I discovered how only display a field in a query using Dreamweaver 8, PHP, and MySQL when the value of the field is zero in showing this:http://www.Adobe.com/cfusion/webforums/Forum/MessageView.cfm?forumid=12 & catid = 189 & ThreadID = 1005921 & arctab = & highlight_key = y & keyword1 = see the % 20region
However, how can I put text next to the field data when there are data in the field? Therefore, 1) hide textes_ data when the value in the record field is zero and 2) show text data and when the fields of records is not null.
I tried to put the text with the echo, but then the text is displayed without the data from the field when the field is null.
The code I have so far is:
<? PHP if (! is_null ($row_rsProperties ['US_List_Price'])) {echo $row_rsProperties ['US_List_Price'] ;}? >
rsProperties is the recordset and US_List_Price is the field
Thank you!
dulcey1 wrote:
> I tried to format the text with the echo, but then the text is displayed
> without data field when the field is null.
>
> The code I have so far is:
>
> $row_rsProperties ["US_List_Price"] ;} ?>
The is_null() function checks a NULL value. I suspect that your
the fields are empty instead of NULL. Change the code to do this:
"Text". $row_rsProperties ['US_List_Price'] ;} ?>
--
Adobe Community Expert David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Tags: Dreamweaver
Similar Questions
-
Hello
I'm new to OFA.
I have a requirement to hide/show a dynamic field based on the operating unit.
So instead of hard coding UO, I use lookup.
Now, what I've done, spread the VO and VO query added a new column to validate in relation to research and back 'n' or 'Y '.
I created a transitional and in VORowImpl attribute. I'm valid against the newly added column VO and assigning the value TRUE or FALSE to the transitional attribute.
and I'm on SPEL in Customizing the page.
Now what is happening is when an existing record is asked in the page, the field is hidden/unhinden based on the given condition.
But when a new record is created, this condition does not work.
So I guess that the VO don't get initialized when the page is loaded? Is this the reason why the condition is unchecked in VORowImpl?
My hypothesis is correct?
How do I get my requirement?
Pointers would be useful...
Thank you
Naren
Hi AJ,.
I forgot to update the thread. Reached the requirement.
Solution,
Created a transient VO attribute.
Then in VORowImpl, written the code to set the transient attribute.
Then using customization, SPELL, set the property to the item.
It works perfectly.
Thank you for guiding me to assign to the attribute.
Kind regards
Naren
-
Use a check box for hide/show (toggle) another field
I have a form I created in Adobe Acrobat X. The form will be used ultimately interface of data entry on iPads. I need to keep the very simple form, but there are a lot of technical information, that users may need help filling out the forms. I wish I could have a button, checkbox, or another object allows the user to view additional information.
I played to establish links to documents is attached, using the article tool and finally try to use a checkbox control to control the property visible and hidden in a text field. Admittedly, I'm a horrible programmer so I need assistance to swallow.
My box is called: GMR1_1_Details_Select
The text field is called: GMR1_1_Details
I have tried this and that with JavaScript in the Actions tab and tab calculate and fail.
Can anyone solve this puzzle for me? I want this code in my form:
so when the checkbox named "GMR1_1_Details_Select" is checked, my text box field ("GMR1_1_Details") is visible. If the user disables the box, it might be hidden. By default, the text box must be hidden and the box must be unchecked.
If GMR1_1_Details_Select = yes
Then GMR1_1_Details = visible
on the other
GMR1_1_Details = hidden
I tried the codes similar to:
If (event.target.value! = "On") This.GetField ("GMR1_1_Details"). Display = display.hidden;
and any other code that is similar to:
Var GMR1_1 = this.getField ("GMR1_1_Details");
If(GMR1_1==="Yes");
{
- This.GetField ("Text10"). Display = display.hidden;
}
on the other
{
- This.GetField ("Text10"). Display = display.visible;
}
In both cases I get nothing. I realized that I have at least 2 problems:
(1) I don't know how to write code and,
(2) I don't know where to put it.
Please and thank you
OK, I read your original question in more detail and there are other approaches that work. The additional amount of information you're talking about, at the top end? A paragraph of text, a page, several pages?
A simple popup dialog box code is as simple as:
Script mouse upward to a button
App.Alert ({CMSG: "it's the first line.\r\rThis is the third line, which follows two returns cart.", cType: 0, nIcon: 3 '' '});
Rather than an action to read the article, use an action of type "Go to a page view" If you want to use this approach.
I would use a button for those two things, using the MouseUp event.
-
Hello
I display the image one after the other on the screen.
According to indext of image I want to hide show next previous button,
How can I do?
If (current_index == Questions.size () - 1) {}
_btnnext.getManager (). Delete (_btnnext);
} ElseIf (current_index == 0) {}
_btnprevious.getManager (). Delete (_btnprevious);
} else {}
If (! _btnnext.isVisible ()) {}
_hfm. Add (_btnnext);
}
If (! _btnprevious.isVisible ()) {}
_hfm. Add (_btnprevious);
}}
Currently, I found this solution.
But I think there must be another way and then add and remove from view every time.
Thanks in advance.
bskania.
You can do this using the setEditable method
If (current_index == Questions.size () - 1) {}
_btnnext.setEditable (false);
} ElseIf (current_index == 0) {}
_btnprevious.setEditable (false);
} else {}btnnext.setEditable (true);
_btnprevious.setEditable (true);}
-
Hi, I created the text box as hiring date: which is the column in the database.
I would like to show the hiring date if the empno exists in the database, otherwise do not show.
How display the date of hiring only when the empno is exists in the database.
Please help fix.
Thank youHello
Is this report, tabular, normal form or another region type?
If it is normal, because it's simple game field is conditionally EMPNO element is not null.And always mention your Apex version
Kind regards
Jari -
ADF LOV->; UI: main table showing the fields ID and not the search values
Hello
I am very new to the development of the ADF and will have a simple question that I can't solve.
Using Oracle JDeveloper 11.1.2.0.0 I create my views and objects of entity without incident. I have an entity object that has several "search values" (these are all optional references to foreign keys to tables 'children'). Objects and relations are perfectly mapped the ADF.
In the views of child object I created the list UI tips
-Type: Combo box with list values
-the "selected" column is the "description" of the research
in the editable display object, I traced the fields 'id' to use the predefined LOVs.
This works as expected in the user interface, I created with an ADF table can be updated.
However (here's the noob question), the "id" is displayed in the search on the table column. When I click the menu drop-down I can see the description, etc, but for a professional user when they look at the table, they see an unfriendly identification number.
How can I get the part of the LOV display to show the description, while remaining linked to the ID of the parent entity.
for example, it shows
while I want to display:Country LOV1 LOV2 LOV3 United States 15 18 2
If this has been answered several times or walk through there, sorry for the redundant question, I simply can't find a solution!Country LOV1 LOV2 LOV3 United States Washington Seattle Rain
Hello
There are several ways to do this, you simply need an additional outputText next to the lov component field to display the value of the description.
If you search the forum or adf blocks, you'll find several implementations.
And here's one: http://andrejusb.blogspot.com/2010/06/lov-description-text-with-groovy.html
Gabriel.
-
I have photoshop cs6 extended and used a few days ago. Now it will not start up. I shows that it is the digitization of the presets, but does not progress.
Hi Dave,.
Press ESC on the keyboard when Photoshop crashes scanning for presets and check if it starts over.
If it isn't, he quit and press on and hold the SHIFT key while launching Photoshop > click Yes to ignore the loading of additional plugins and check.
Kind regards
Claes
-
Custom show incorporating the loop slides and not forming a loop
I created a PowerPoint file that I want to show that two segments: one for play on a loop as long as the participants in the meeting and the other to show than the official presentation. Normally, I'd create just two files for these different purposes, but the presenter wants to simply click on a button to move the sliding loop to begin his presentation. I'm not very familiar with the custom show feature, but I tried different ideas today and none of them worked so far. TIA!
Is not a feature of this program, so you should have to do so manually by adding something on the slide, click on, and each of them to go to the "next slide" or "loop to #1' program."
As this PowerPoint file, I created a form a little bit and set it to go to the #1 slide again.
-
Divide the long text into multiple blocks of text by PARAGRAPH breaks, and not by line breaks
I'm creating a catalog of the auction. Right now I have a long table in Word, where each line is an item in the catalog.
I know how to place the table in InDesign and convert it to text so that each line is its own paragraph (click table > > convert table to text).
Now, I want to run a script so that each paragraph becomes its own text box.
I tried to use the script of Jongware mentioned on this thread (https://forums.adobe.com/thread/652308), but it breaks to the top of each LINE in its own text box, not each paragraph.
Previously, a solution that worked for me is to manually adjust the text boxes until each paragraph is in a separate box, then use the SplitStory script to remove all the. However, the catalog has over 100 articles in there it is time consuming. Is there a way to separate each paragraph into its own text box automatically?
Well, I guess you can set up a master page with two frames of text related to this topic.
To keep Options (see above), choose 'Start in the new framework' rather than 'new page '.
Create a page in the document and apply the master page.
Then follow the first set of instructions, I gave above. For autoflowing, click inside the box of one of the blocks of text on the master page (I mean, do it on a regular page that has the master page applied; the text block should appear with a dashed line, because it is on the master page). Now, all text should flow between these two images, two images per page which gives you 1 point in each image.
-
Hide/show dynamic Action on the region, not hiding title area
I use APEX 4.0.1 with topic 13.
I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?
To identify the area to the DA, I use the following method:
In the DA dom object is now XYZRegion Header <div id=XYZ> Region Footer </div>
Thanks in advance
PaulPPaulP says:
I use APEX 4.0.1 with topic 13.
I created a dynamic Action to show/hide a region on my page, but that content hiding as expected, the region remains title. Any idea on how to hide title area as well?To identify the area to the DA, I use the following method:
Region Header
Region FooterLose the header/footer code, it does not act as a container for the whole region. Use a static region ID as selector of DA.
-
How can I stop the show text when I print it?
You can see the Web page, I work here: http://www.peterforkes.com/Resume.html
I created a staylesheet called "print.css" and add the following lines in my file Resume.html:
< link href = "_css/Resume.css" rel = "stylesheet" type = "text/css" media = "screen" / > "
< link href = "_css/Print.css" rel = "stylesheet" type = "text/css" media = "print" / > "
In my Resume.html file, I have a link that allows to print a PDF of my resume. However, if print you the CV so I don't want the link to print the CV to shown.
The print.css I created the following class:
{.doNotPrint}
color: #FFF;
}
I applied the class the "offending" text, so:
< class p = "doNotPrint" > < a href = "Files PDF/Peter A. Forkes - Resume.pdf" > Resume.pdf < /a > < /p >
However, it doesn't have any effect. I guess (since the background is white) that change the color of the white text should make invisible.
If you can suggest how to make my way of work (or suggest a better method) that this should mean I'm done everything I want to do with my Web page.
Thank you
Peter
I guess (since the background is white) that change the color of the white text should make invisible.
The problem with the CSS, it's that you have taken to target the
-
I don't know what happened, but the display of my address book has changed for visible group names and also a visible tab to show the collected addresses. I see now are the personal address list
Open the address book
In the Menu bar select view-page-directory paneNo menu bar? Press the ALT key.
-
I received an email from an old friend recently and instead of my display as reception address e-mail address, one of his e-mail addresses is visible in the box "to". My email address should be not one indicating that the address of reception? Could there be an email address that is hung with mine somehow?
I do not use the programs you mention, and they have their own forums.
For Hotmail: Windows Live Solution Center Hotmail Forum
http://windowslivehelp.com/forums.aspx?ProductID=1The Outlook forum is located here:
The Applications Microsoft Office forums
http://answers.Microsoft.com/en-us/Office -
Adobe Acrobat Pro DC at Best Buy bought and installed on the new Dell PC. However, my PC says "Acrobat Reader DC" not Acrobat Pro DC. What should I do to get the version of what I bought on my PC?
Please get on your system in the program Acrobat Pro DC categories, if this isn't there, then installation using this link Download Adobe Acrobat products. Standard, Pro | DC, XI, X.
Kind regards
Nicos -
HP 1510: HP 1510 print application review panel shows 'Save' and not 'print '!
When I try and print something on my new printer HP1510 print review board show a blue button 'Save' and not 'print', how can I fix this please?
PERFECT! I see the problem!
See the Destination section, save in PDF is selected. Please, click Edit and choose your printer!
I am sure that this will solve the problem, but if for some reason you cannot always print let me know, I will not give to the top!
If I'm wrong and that it is indeed do the trick, please mark this post as solved!
Maybe you are looking for
-
Firefox, Thunderbird and Quicken were active when I loadad & ran a slot machine game. When I left the game & click on icon to return to Firefox full screen, I could see the flash of the image to the right of my screen and disappear. When I clicked on
-
HP G62 keyboard key use normal function requires FN change. This can be changed?
My HP G62 laptop keyboard function keys have uses of media by default such as jump, stop, louder, quieter, wireless power. I rarely feel like that at all. But I use the terminal emulation function keys. For this I have to hit FN all the time before u
-
Can I turn on my computer and other devices to use WEP and how?
I need to be able to use WEP security to play on a wi - fi on my DS. However, when I want to use my laptop WEP won't connect just about. Is there a way to be able to use WEP, without my laptop completely reject?
-
Cisco ASA 5508 with firepower of speeds VPN
Nice day Can someone tell me which is better performance Anyconnect VPN or Cisco VPN?, I intend to use a VPN for my users to connect and transfer files to a shared folder speed does. Also, I don't want my clients to access a Web page or portal to get
-
Updated last Lightroom and color management print arrived damaged
Hi, I have a problem with printing from Lightroom 6. It seems that since the last update of Lightroom color management has corrupted. Impressions are now far the color range as they were before and as it should. I understand that all would be nice if