Is it possible to have CFTREE auto expand? (with binding)
Hi there,
ColdFusion newbie here so please bear with me.
I'm doing some tutorials on CFTREE right now, so far it works
well as is, but I have a question:
Is it possible to have the whole tree expanded automatically
when the user first open the page? I know there is the "expand"
attribute for the "cftreeitem" element, but it is not allowed when
using dynamic data bindings.
I know I could probably do the manual looping of queries to
achieve this, but it would be nicer if we could use the binding
mechnism and still have ColdFusion automatically go through
different levels.
The data I intend to use the CFTREE on is of quite managable
amount, so I don't think performance would be a big problem here.
Any tips or hints will be appreciated, and many thanks in
advance!
Billy
I've never used it but it seems that there is an attribute
called expand in the cftree items- I imagine the tag is something
like
<cftree>
<cftreeitem value = "Travel Assistant" display = "Travel
Assistant" parent = "Emp_ID" queryAsRoot = "No" expand = "yes">
</cftree>
good luck
Similar Messages
-
IS it possible to have 2 separate accounts with totally different music libraries on same computer with multiple iPods synced to the computer,
Same answer as last time you asked the same question.
Can I create 2 separate itune accounts on same PC? -
Is it possible to disable the auto lock with clock?
Is it possible to disable the auto lock with clock?
Is it possible to disable the auto lock with clock?
-
Is it possible to have a program start with a splash screen?
Would it be possible to have a program show a splash screen while loading with Java's latest release 1.4.0 ?
If it is possible, could anybody explain me how.. and maybe show me a little example? :)
Thanks in advanceI just implemented this with one of my applications.
I wrote a class which extends JWindow and adds a JLabel icon to the contentPane.
The class containing the main method instantiates this class, makes the window visible, wait's some time and deletes the window:
Through the Dimension object I calculate the center of the screen
=> Splash screen
import javax.swing.*;
import java.awt.*;
class Splash extends JWindow
JPanel pane;
public Splash()
super();
setBounds(300, 225, 300, 200);
pane = new JPanel();
ImageIcon image = new ImageIcon("logo.jpg"); //Splash logo
Dimension dim = this.getToolkit().getScreenSize();
int height = (int) dim.getHeight() / 2;
int width = (int) dim.getWidth() / 2;
int iconheight = image.getIconHeight();
int iconwidth = image.getIconWidth(); // Center of Screen
int x = width - (iconwidth / 2);
int y = height - (iconheight / 2);
setLocation(x, y);
JLabel label = new JLabel(image);
pane.add(label);
setContentPane(pane);
pack();
=> "Main Method"
import util.*;
import app.*;
import java.awt.*;
import javax.swing.*;
public class Main
public static void main(String[] args)
Splash splash = new Splash();
splash.setVisible(true);
try
Thread.sleep(10000);
catch (InterruptedException e)
splash.setVisible(false);
splash = null; -
Is it possible to hav 2 rows displayed with diffeent columns?
I I do a search and try to display information from 2 different tables but they hav different columns is it possible to have 2 tables? like
table 1:
name ID
a 1
b 2
table 2:
name Email
a w
b e
if i search for "a" can i get:
name ID
a 1
name Email
a w
or i get :
name ID email
a 1 w
? please hel me with code..Try:
SELECT *
FROM
(SELECT * FROM id) a
,(SELECT * FROM email) b
WHERE a.a=1 AND b.a='w'
Christoph -
Possible to have user auto-download font?
This is a noob question I know, but I am pretty new to
Dreamweaver-based web design so hopefully it's excusable. Anyway,
what I want to know is if it's possible for a font to be
automatically installed on a user's system upon opening of my
webpage, and how to do so. Or, if I have control over what font is
used as a backup in case that's not possible. I imagine, if all
else fails, I could provide a link to download the font (it's
freeware).No. NO. no. It's not possible (at least it's not practical).
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"marleyforprez" <[email protected]> wrote in
message
news:f1foss$d23$[email protected]..
> This is a noob question I know, but I am pretty new to
Dreamweaver-based
> web
> design so hopefully it's excusable. Anyway, what I want
to know is if it's
> possible for a font to be automatically installed on a
user's system upon
> opening of my webpage, and how to do so. Or, if I have
control over what
> font
> is used as a backup in case that's not possible. I
imagine, if all else
> fails,
> I could provide a link to download the font (it's
freeware).
> -
Possible to have UILabel auto-resize frame?
I'd like to display a block of text, but it's not known at compile time. I know I can set the numberOfLines to 0 for the UILabel and it will automatically use as many lines as it needs, but what about the frame? I want to display content immediately beneath it and I don't know how tall of a rect to provide when I create the UILabel initWithFrame.
Is there something like UILabel.resizeFrameHeightBasedOnTextWrapping?
I've checked the docs and can't find anything like this.
ThanksSolved this myself. sizeWithFont() message series should do the trick.
-
Is it possible to have FTP Conflicts/Collisions with multiple devices?
I understand that you cannot have multiple webservers both using port 80 on your LAN (use different port # and port forward), but I was wondering if the same is true of multiple FTPs?
In other words, I have 2 devices ...., a weather web server that FTPs my weather station data to my weather website, and I have the WVC54GCA IP Camera, which I want to use to display weather conditions outside, and FTP to my weather website. Can they both use their default FTP port 21 at the same time? ...., or do I have to change one of them to an alternative port #, other than 21? Is it possible to FTP with a port other than port 21?
Thanks for any feedback,
Edthanks Castor. I have the Motorola SBG900 ...., I have not set up the port triggering yet, but both my WVC54GCA and my weather server are FTPing up to my weather website without any problems so far. I might try the port triggering as a safety net and see if things still work OK.
Ed -
Is it possible to have define a tag with an attribute called "class"?
Obviously you can't have a setClass/getClass pair in the tag, since getClass is declared final in java.lang.Object. setClass alone doesn't seem to cut it.
I've tried copying the class attribute to a new one in a TagExtraInfo but this doesn't prevent the "no setter for class" exception. This may be because you can't delete an attribute from TagData so the "class" attribute is still there.
It's anoying because I'm trying to define a variant of jsp:useBean and I want it to be as close as possible in attribute options.
Incidentally I'd like to do more validation in TagExtraInfo but how do I get at, for example, the servletContext?There's nothing to stop me writing a setClass() method though. Unfortunately that doesn't seem to work - the system apparently demands a getClass() method too, though it wouldn't be used.
I was hoping to be able to modify the tagData item at compile time and, hence, the data passed to the Tag. -
Possible to have mouse activated slider with buttons for selection
Hi,
I was wondering if anyone has/is or if this can be dome easy enough....
For example, instead of placing a row of buttons on the bottom of the template, instead, is it possibloe to have a mouse activated slider that the buttons are on and is activated when the mouse hovers over it.....?
Hope that explanation is clear enough...;-)
Cheers
RosscoCaptivate 7 has an option to show playbar on hover. It becomes available when you select Overlay Playbar. But this only applies to the standard skins that come with Captivate. It won't help your specific need to have a set of buttons appear on hover over a hit area.
It should be possible to do what you want. But you'll need to group the buttons, give the group a name, create separate advanced actions that apply a fly-in and fly out effect to the group, then execute these actions via an event. In your case you want the event to occur as a result of a rollover and rollout on a hit area.
Captivate's slidelet object has a rollover event, but no rollout event you can use.
The only way I know to have both rollover and rollout events is to use the Infosemantics Event Handler widget:
http://www.infosemantics.com.au/adobe-captivate-widgets/event-handler-interactive
Free trial version here:
http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets -
Is it possible to have a public page with optional authentication?
I want to have an application that will give users view access to all pages, without the user having to log in. On its own i know how to achieve this. However, i also want to give the user the ability to perform specific actions, only if they authenticate themselves. The functionality i am after is much like this forum, the public can read all threads, but to post you have to log in.
is this kind of thing possible in APEX, if so how can this be done?
Craig
[http://www.oracleapplicationexpress.com]Craig,
It's very possible, and quite easy to do.
One of the conditions that APEX supplies is "User is Authenticated (not public)". You can use this condition on buttons, items, regions and processes that will require a user be authenticated to your application. There is also the opposite condition, should you want to display items or regions that will be displayed to non-authenticated users.
Thanks,
- Scott -
http://spendolini.blogspot.com/
http://sumnertech.com/ -
Is it possible to have 2 iWeb sites with one .mac account?
I am trying to create a business site with my CV (resume) and work credentials as well as a personal site with photos etc for family and friends. Is this possible to do with iWeb?
To keep sites totally separate for publishing you
need to keep their data files totally separate,
either by switching them in and out or by running
iWeb from separate user accounts. The data file is
located at
Users/username/Library/Application
Support/iWeb/Domain
thank you -- that's gonna have to be the answer I guess, til they hopefully add a new feature.. my non-.mac site is for my kids' swim team, so I'll just create a 'swim team' user account for now. Not TOO inconvenient, I don't suppose.
If you have two sites in the same data file already
you can separate them by making a copy of the current
Domain, then deleting one site from the current
Domain, putting that somewhere safe, inserting the
old Domain copy, and deleting the other site from
that, giving you two Domains each with one site.
keeping my fingers crossed that this works.
thanks again,
Jo -
Is it possible to have different tabs print with different page setups.
I would like to use specific page setup parameters (under the File menu) for printing from a particular web site, but those parameters do not work well for printing from other web sites. I would like to be able to specify different page setup parameters for each open tab. Is this possible?
That might be possible via a GreaseMonkey user script, by setting the '''@include''' address to a specific domain.
http://wiki.greasespot.net/User_script
This is an example of a script I found a few years ago to bypass a fault in Firefox when printing the Courier font.
<pre><nowiki>// ==UserScript==
// @name Fix Courier Bug
// @namespace http://userscripts.org
// @description Replaces "Courier" with "Courier New" font
// @author Dan
// @include *
// ==/UserScript==
var elementList = document.getElementsByTagName('*');
for (var i = elementList.length - 1; i >= 0; i--) {
var elementItem = elementList[i];
var ff = getComputedStyle(elementItem, '').fontFamily;
var oldff=ff;
ff = ff.replace('Courier New', '1234567890qwertyFONT');
ff = ff.replace('Courier', 'Courier New');
ff = ff.replace('1234567890qwertyFONT','Courier New');
elementItem.style.fontFamily = ff; </nowiki></pre>
Sorry, I can't help you with writing a script. -
I added a second account to my iTunes on my laptop. I wanted to give 2nd acct. its own library. I did by holding down shift key and going to start menu, choosing all programs then iTunes, then iTunes again. It asked me: choose library or create another iTunes library. I chose the later. I renamed it and saved in My Music. It automatically started up iTunes and brought me to the new library, but I cant get back to the old library with all my purchases, etc... What do I do to get the old library back? Computer illiterate, so please be kind. Thanks
You are going to need to change the email address you use with your old ID. Once you have got access to your old account you will then log into both accounts at the same time on your Mac and transfer your data to a single account. We can do this later, but need you to get access to your old account first.
My Apple ID -
Is It Possible to Have an Axis Scale with two Zeros?
Greetings All,
I am currently working on modifying a plot for a program that runs an object through 360 degrees and would like the x axis (degrees) display to reset to zero whenever I scroll past 360 to the right, or reset to 360 whenever I scroll past zero to the left. The reason I would like to add this feature is because the program will frequently be used to "zoom" in on 30 degree intervals. So let's say I centered my graph at 0 degrees. Then I would like it's Min to display as 345 degrees, and its Max to display as 15 degrees. As it is, right now my program displays -15 as the Min and 15 as the Max.
Does anyone know of any possible way of doing this without manually editing the values on the axis?I've attached two (cropped) screenshots showing the X-axis for when the plot is centered at 0 degrees and for when the plot is centered at 360 degrees. In both cases, the plot has a width of 38 degrees. Unfortunately, the plot is too wide to fit on one screen, but you can surmise that for a 0 degree center it goes from [-19,19] and for a 360 degree center, it goes from [341, 379].
This is what I want the axis to actually display left to right:
0 Degree Center
341, 342, 343, 344...359, 360/0, 1, 2... 15, 16, 17, 18, 19
360 Degree Center
341, 342, 343, 344...359, 360/0, 1, 2... 15, 16, 17, 18, 19
So Both centers should display the same, since they are at the same angular position. Hope this clarifies things a bit. Thanks.
Attachments:
Center0.PNG 36 KB
Center360.PNG 36 KB
Maybe you are looking for
-
Unable to install apps after hhd format, need help!
I Am currently a monthly subscriber for CC on full plan. For some dub windows issues, had to format my HDD, after that I reinstall the CC manager and notice that most apps like photshop and ilustrator were showing as test instead of install, also Lig
-
How to broadcast live camera streaming
Hi, I am new in flash and have a project of virtual classroom, which consists white board, video streaming (Teacher and Students) and chat component. I want to capture video from web cam of teacher and students by using flash and publish it on my vir
-
Javafx.scene.media does not exist
javafx.scene.media does not exist I got this message, and I don't know why since I already have downloaded java update 10 which should have javafx in it
-
Bought the starter pack iap on the game 'Injustice: God Among Us', but it didn't give me what it said it would so I want a refund but finding it diffcult to request one, as reporting a problem just redirects me to this website. How to submit for a re
-
CVP 4.0.1 Sr1 All my media files are in C:\Inetpub\wwwroot\en-us\app location. On Studio - Project Properties - Audio Settings - Def Audio PAth URI - I specify the path as: http://10.1.17.18/en-us/app/ My question is there a way to provide two locati