Button makes visible subform, and then adds another instance
Hello
I have a button that makes a subform visible. Which works very well.
I would like the button when a user clicks a second time to add another instance of the same subform. Is this possible? I have no idea how start with the JavaScript for this and would appreciate help.
Thanks in advance,
MDawn
Rather than raise the subform, and then adding cases you can do simply by using the instances, then the button does the same thing.
To 'hide' the subform using the instances, make sure that under binding that the Min County click on and the initial count is set to 0 (zero) - your subform is now hidden by default.
Change the code you have showing the subform to use addInstance() instead of the presence, using the underscore for the Instance Manager shortcut (you must use the underscore method, because the instance does not yet exist):
_hiddenSubform.addInstance (true);
If you remove instances to zero then the subform will disappear again. Doing it this way also has the advantage of reset all data in the subform.
Tags: Adobe LiveCycle
Similar Questions
-
Group by query, and then add another dimension
Hello guys,.
I am facing problem while building a query. In this, I do group first, and then add a column with a condition more.
I have following data in the table or existing query.
create table tableA (key number (5), newspaper varchar2 (5), varchar2 (5) Blog, available1 number (10), disponibles2 number (1), Type varchar2 (5))
Insert into tableA values (100, ' 501 ', ' 1501', 10000, 8000, "T1")
Insert into tableA values (100, ' 501 ', ' 1501', 12000, 0, 'T2')
Insert into tableA values (200, ' 502 ', ' 1505', 15000, 9000, "T11")
Insert into tableA values (200, '502', '1505', 8000, 1000, "T12")
Insert into tableA values (200, '502', '1505', 5000, 1000, "T13")
Insert into tableA values (300, ' 503 ', ' 1510', 7000, 6000, "T21")
Insert into tableA values (400, '503', '1510', 6000, 1000, 'T31')
I created the 'Difference' on the fly using NVL (available1, 0)-NVL(Revenue2,0) as the difference
Type of difference key1 journal Blog available1 disponibles2
100 501 1501 10000 8000 2000 T1
100 501 1501 12000 12000 T2
200 502 1505 15000 9000 6000 T11
200 502 1505 8000 1000 7000 T12
200 502 1505 5000 1000 4000 T13
300 503 1510 7000 6000 1000 T21
400 503 1510 6000 1000 5000 T31
Desired output
We must show Type (Sun) only when the difference is high and have to group by (Key1, Journal, Blog) while the rank becomes a.
It is like showing the first 6 columns first and then add the columns of 'Type' later (probably using subqueries).
Type of difference key1 journal Blog available1 disponibles2
100 501 1501 22000 8000 14000 T2
200 502 1505 28000 11000 17000 T12
300 503 1510 7000 6000 1000 T21
400 503 1510 6000 1000 5000 T31
Any idea or detail will be appreciated.
Thank you
Use the DUNGEON:
Select the key,
Journal,
blog,
Sum (revenue1) available1,
Sum (revenue2) disponibles2,
NVL (Sum (revenue1), 0)-nvl (sum (revenue2), 0) difference.
Max (type) keep (dense_rank last order of nvl(revenue1,0) - type nvl(revenue2,0))
from tablea
Key, group
Journal,
blog
order by key,
Journal,
blog
/
TYPE OF KEY JOURNAL BLOG AVAILABLE1 DISPONIBLES2 DIFFERENCE
---------- ----- ----- ---------- ---------- ---------- -----
100 501 1501 22000 8000 14000 T2
200 502 1505 28000 11000 17000 T12
300 503 1510 7000 6000 1000 T21
400 503 1510 6000 1000 5000 T31SQL >
SY.
-
How do I search a Movieclip given stage and then add all instances of it in a table? AS3
I would like to add multiple instances of a Movieclip, (name of the library = bats | instance name = none), inside an another Movieclip (name of the instance = back.visuals) / / (by HAND) NOT addChild (mc_name); Easy
If someone could help me with the code to perform the following steps:
Search the Movieclip, (name of the instance = back.visuals), which contains the Movieclips, (= bats library name: instance name = none), added manually to the scene at hand.
Then, for all instances of this movieclip (= bats library name: instance name = none) add them to a table.
Thank you
Dyami
Assuming that you are talking about DURATION, if you export a symbol of action script, give it a class name you can always read if the child of an object is an instance of that symbol.
Say, if the name of the symbol is bats you can identify it in the loop as follows:
var enemyList:Array = []; for (var i:int = 0; i < back.visuals.numChildren; i++) { var child:DisplayObject = back.visuals.getChildAt(i); if (child is Bats) { enemyList.push(child); } }
-
In Adobe buy screen serial number, the "Download" button directed me to a download Avarto Bertelsmann. I have too drive my Mac, security s and downloaded files. Avarto installation was a failure and then found another site of Adobe which was a success. Should I be concerned about the unsuccessful Avarto download?
I've never heard of this person/company/link... but I'm not on Windows, Mac
-
Try to add a page to a pages document. It worked until now but just finished page 13 with text and photos and cannot add another page, using macbook pro with El Capitan and the most recent version of the Pages.
You have placed your beam to insert at the end of your text on page 13 and then apply Insert menu: Page Break? In the v5.6.2, Pages I just add a new page to a section of four pages to this approach.
-
Effectively remove and then add the piece of table 2D
I have a table that is 72 lines (32 channels, 8 channels, 32 channels). I am now taking the middle 8 channels and move it to the end, he will be 32, 32, 8. I could delete a subset of the table, and then add at the end, but I think that it would cause 2 allowances. I wonder if there's a cleaner way to achieve inplace?
Take 2 table subsets (32.8) (40,24) can do two replacements in the original array (index of 64 and 32). I find that it is usually two times faster than delete + rebuild (to research cleaner), which is two times faster than the IPES (slower and uglier by far). Your mileage may vary. It's all the microseconds at this size of table.
-
Hello Hello. If I have Adobe audition, can I install first program in my laptop, and then in another (if I decide to change my cell phone for a newer laptop)?
You can install hearings on as much as you can, there are not limited to the facilities. However if you had bought the individual subscription, you can log in and activate the app as a full version on 2 devices only.
If you buy a new device and want to activate on the same, all you have to do is simply disconnected from Adobe Creative Cloud application of either of the 2 previous devices, so that you can maintain the number of activations that 2.
You can switch activation between devices, no problem.
Let us know if you need more details.
-
Make the visible object, and then print?
Apologies for being a tad lazy... after finally got my head around the basics of dynamic forms and managed to create the shape that I wanted to, I'm kinda stuck on javascript, and my brain (mathematically hopeless) text based will probably take months to understand the code required for the final piece of the puzzle.
In its newly opened State, my form has all the fields of user on page 1 input and an object of the containing page 2 assembly instructions text field.
As the shape may extend to 2 or sometimes even 3 pages at the end, the subject of guidelines (which almost fills a page and does not allow for breaks) will move to page 3 or 4.
The purpose of guidelines is visible (display only).
I added a subform with two fields impression over the subject of the text of the directive. One is the standard print button that prints the entire document, and, as expected, the directives do not print. The other was to print the form and guidelines, but it does not make the visible guidelines.
So... the first question is, can someone tell me why this script does not work? (no action at all, but no syntax error)
+ PRODUCT - CHANGE NOT (ID:E8C4C0CE-1372-4CCB-96F3-AA8469CAF35F CRC:1860632424)
+ Type: Action
+ Result1: SetPresence ("$Node2", "visible")
+ Node2: form1 [0]. Text6 [0]
+ Node1: form1 [0]. #subform [23]. PrintButton2 [0]
+ Condition1: Button ("$Node1", "click")
+ ActionName: PrintButton2.click
this.resolveNode("Text6").presence
XFA. Host.Print (1
, "0" , (xfa.host.numPages –1).toString() , 0 , 0 , 0 , 0 ,
(0);
Better yet: y at - it a (not excessively complex) way to print a specific object only (in this case, the guidelines text field)?
Thank you very much!
Hello
Your form is already dynamic (flowing), then for your second button print, you can hide the main pages in the click event, print the remaining pages and then finally show all pages.
If you are looking for the syntax change the presence and properties of an object (Text6) watch here: http://assure.ly/h7whb8.
This will allow for example the object is visible and printing:
Text6.presence = "visible"; Text6.relevant = "+print";
To change back to Visible (display only):
Text6.presence = "visible"; Text6.relevant = "-print";
Hope that helps,
Niall
-
I have Visual Studio 2010 Professional. On the start page, I started with file, new Web Site and you click New ASP.NET Web Site. I created a new web site and added a default.aspx page. I want to create a library of classes (entity component) and then use the Solution Explorer window to add a reference to the class library project to the web site solution. I'm trying to do from the start. in other words, a request has not created to which I simply add web pages. Is this possible?
Or do I make file, new project, and create a new web application in place initially to create the class library and to add a reference in the Visual Studio solution.
Hello
Check out these resources:
MSDN - Visual Studio Developer Center
http://msdn.Microsoft.com/en-us/vstudio/defaultVisual Studio MSDN forums
http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudioMSDN Visual Studio, and related Forums
http://social.msdn.Microsoft.com/forums/en-us/category/vsvnext, visualstudio, vsarch, vsdbg, vstest, vstfs, vsdata, vsappdev, visualbasic, visualcsharp, end, visualfsharpI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
2 operating systems: Windows XP and Windows 7
Windows 7 is to make all the folders and files on another partition (Windows XP) read-only!
Once, I opened a file from "My Documents" from XP in Windows 7.
But when I Wen back to Windows XP.
But while starting up, I got a lot of error messages:
Access denied!
When I am gone to Windows 7 yet once I noticed that all records on the other partition where unalterable.
But after I tried to void that lookt again to see if she had cancelled it.
But he remains unalterable reports!
I have lookt on Google and Bing, but could not find someone with the same problem!
Now it works!
I used these 10 steps to solve the problem!
10 STEPS TO GET FULL CONTROL ON a FILE / FOLDER / PARTITION (Microsoft Windows Xp):
1. press F8
2. select Safe Mode
3. log in with an administrator account
3. go into the properties of the folder / partition / file that you cannot access
4. Select security and then advanced
5. in 'owners' define yourself as an owner (if it is not defined)
6. click on 'Ok '.
7 configure yourself: make sure you clickt on the box "Total control" (allow)
8. click 'OK' and then 'apply '.
9 reboot
10. the test (if it still does not, try again a few times)
____________________________________________________________________________
And then it worked!
-
I'm trying to understand vSphere PowerCLI how to activate the "Options of VAPP" on an exsiting VM (in this case a model freshly cloned) then add properties and select cdrom of the FVO data access such as when the virtual machine is running the FVO - env.xml contains the properties in the CD-ROM drive.
If I use the vSphere client and open the virtual machine settings and click on the tab 'Options' and then select "Options of VAPP" and change the setting to "Enabled" and then select 'VAPP-> Advanced Options' and click on the button 'Properties' on the right, I can add the properties and then I can change them vsphere PowerCLI, but given that these actions are not retained if I clone the virtual machine I need a way to put these in place of vSphere PowerCLI without using the vSphere client to do.
Thanks in advance for the help!Mike
You can use the vSphere API to activate the 'Options of VAPP"on an existing virtual machine, and set properties. For example:
$spec = new-Object VMware.Vim.VirtualMachineConfigSpec
$spec.vAppConfig = new-Object VMware.Vim.VmConfigSpec
$spec.vAppConfig.property = new-Object VMware.Vim.VAppPropertySpec [] (1)
$spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertySpec
$spec.vAppConfig.property [0] .operation = 'Add '.
$spec.vAppConfig.property [0] = new-Object VMware.Vim.VAppPropertyInfo .info
$spec.vAppConfig.property [0].info.key = 0
$spec.vAppConfig.property [0].info.classId = "Property1ClassID".
$spec.vAppConfig.property [0].info.instanceId = "Property1InstanceID".
$spec.vAppConfig.property [0].info.id = "Property_1.
$spec.vAppConfig.property [0].info.category = "Property1Category".
$spec.vAppConfig.property [0].info.label = "property 1.
$spec.vAppConfig.property [0].info.type = "string".
$spec.vAppConfig.property [0].info.userConfigurable = $true
$spec.vAppConfig.property [0].info.defaultValue = "Property1DefaultValue".
$spec.vAppConfig.property [0].info.value = «»
$spec.vAppConfig.property [0].info.description = "Property1Description".
$vm = get-VM-name vm3
$vm. ExtensionData.ReconfigVM_Task ($spec)
-
I download mp3s in their own directories, which usually come with the download. The media puts them all together, in a group and puts the mp3s where they should be, but that said, windows maintains media that he does not recognize the directories it has put itself so it is just keps saying that downloads, even if they are just mp3s as usual, in fact nothing has changed except the windows media itself which does not recognize what is put into it. I also use pen drives and have passed the sycronising according to most of my music on their site. Windows media play, cutting CD synchronous, etc.. She just can't trust if you see what I mean. It keeps telling me to buy when I play some of my songs, which I stopped sharing lately because he intervened to make my own CD, and then he would start trying to download music from me and make a mess of me trying to make my own CD. I was hopeing that someone would have an answer or could tell me where and what to do about this. I am all ideas now. Thanks in advance
E-mail address is removed from the privacy *.
Hello
-What version of Windows is installed on your computer?
I suggest you run the fixit for the following Microsoft KB article and.
Solve the problems of Windows Media Player video and other media or library
http://support.Microsoft.com/mats/windows_media_player_diagnostic/
Let us know the result of the Fixit.
-
MAX value query and then add to existing querry
Hi all
Asked me to add some fields to add to an existing query.
I'm having a problem with the initial query, so let's start first, and then maybe I'll be able to figure out how to add it in.
Here is my sample data:
My desired output is the MAX (TASK_SEQ) based on the data set, the TASK_SEQ and the COMPL_DATE should always be recording albums that I'm trying to capture,CREATE TABLE TASK ( TASK_TYPE VARCHAR2 (50 BYTE), TASK_SEQ VARCHAR2 (50 BYTE), COMPL_DATE DATE, REQUIRED_TASK VARCHAR2 (100 BYTE) ); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('ABC',18, TO_DATE('12-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('DEF',16, TO_DATE('12-MAR-12','DD-MON-YYYY'),'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('HIJ',12, TO_DATE('09-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('KLM',15, TO_DATE('12-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('NOP',11, TO_DATE('11-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('QRS',20, TO_DATE('29-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('TUV',13, TO_DATE('11-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('WXY',19, TO_DATE('30-MAR-12','DD-MON-YYYY'), 'Y'); INSERT INTO TASK (TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK) VALUES ('Z',24, TO_DATE('04-APR-12','DD-MON-YYYY'), 'Y');
such as:
{Europe}
TASK_TYPE TASK_SEQ COMPL_DATE REQUIRED_TASK RNK
Z 24 4 4 2012 Y (DO NOT WANT THIS)I have this code that I thought would work, but not as of yet - it returns all rows and ranks eac as 1. {code} WITH DST AS ( SELECT TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK, RANK () OVER (PARTITION BY TASK_TYPE ORDER BY COMPL_DATE) rnk FROM TASK ) SELECT * FROM DST WHERE rnk = 1 {code} And this yields basically the same results: {code} SELECT TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK FROM TASK WHERE (TASK_TYPE, TASK_SEQ) IN (SELECT TASK_TYPE, MAX(TASK_SEQ) FROM TASK GROUP BY TASK_TYPE ) {code} Thanks for taking the time to look. G
Hello
GMoney says:
... Here is my sample data:Thank you! It is very useful.
... My desired output is the MAX (TASK_SEQ) based on the data set, the TASK_SEQ and the COMPL_DATE should always be recording albums that I'm trying to capture,
such as:
{Europe}
TASK_TYPE TASK_SEQ COMPL_DATE REQUIRED_TASK RNK
Z 24 4 4 2012 Y (DO NOT WANT THIS)
Be careful. The keyword tiny must code. (It must be spelled correctly, too.)
What is the desired line or line that you don't want? If this is the desired line, so you were on the right track with your first attempt. Try this:WITH DST AS ( SELECT TASK_TYPE, TASK_SEQ, COMPL_DATE, REQUIRED_TASK, RANK () OVER (ORDER BY COMPL_DATE DESC) rnk FROM TASK ) SELECT * FROM DST WHERE rnk = 1 ;
Exactly what you have published, with the exception of the analytical clause.
'PARTITION BY task_type' means a separate set of numbers (starting with 1) assign to each separate task_type. Since task_type is unique, this means that each line is #1 in his own little world. If I understand the problem, you want (except ties) only 1 rank for the entire result set. This means you don't at all want a PARTITION BY clause. PARTITION BY is never required in any analytic function.
"ORDER BY compl_date" means that the first compl_date gets rnk = 1. You want the latest comp_date to get #1, so you must specify descending order. Note that this has nothing to do with task_seq. It you want to display the line with the highest task_seq, then the rnk column would be defined as:RANK () OVER (ORDER BY task_seq DESC) rnk
If you know that the line with the upper task_seqs is always compl_dates later, then it does not matter that you use. Remember to descending order.
-
How can I make the biscuit and then break for both sides and have a few small pieces?
Hello
Please tell me...
How can I make the biscuit in AE and then break for both sides and has a few small chips fall?
any help would be so appreciated...
Strictly within EI, you have two options. Breaking with custom maps shatter and masking + particle effects. Wouldn't conviceing as Dave.
If you have access to a 3D application (blender is free) you can do it here.
This is a project of 2 minutes in AE with a stock image:
with one broken high buscuit animated to adjust to the split, it might be unconvincing.
Here's the project CS6 ASP file for you to play with. Take a look at all the elements to see how it worked by selecting all layers, then pressing the key u twice to see what I changed.
-
How to make objects appear and then disappear with buttons...
Hello world
Im currently trying to build a flash presentation that will have different buttons on the same stage and each button when clicked on will be particular to appear on the scene objects. Then once you click each button once again he'll disappear connected on particular objects from the scene. Each button and the objects he made appear / disappear is separated from all other buttons actions.
I would greatly appreciate anyone who could help me build the ActionScript for this presentation as im find that it is quite complicated to have several things going at the same time on the same stage. IM currently working in Flash CS4 actionscript3.
The example the closer, I saw the program I want to create can be found using the link below... http://steffne.deviantart.com/art/create-your-own-fastfood-meal-138790878
However, my program would be easier, for example by clicking on the bun in the program adds just the bun on the screen, it does not scroll through different types of bread.
Thanks for your help with this
Ben
An easy way to toggle the visibility of objects is to make the 'visible' property equal to what it currently isn't. This is done by using the "!" operator... (exclamation point)
Here is an example of a button named btn code so as to make a movieclip named mc change visible current status:
function show_hide_MC(evt:MouseEvent):void {}
MC.visible =! MC.visible;
}
btn.addEventListener (MouseEvent.CLICK, show_hide_MC);
Maybe you are looking for
-
Firefox sync reports has incorrect name or password, but he worked a few hours ago
I used firefox sync for years and I have never changed the password, but only a few hours earlier, sync asked me that my account is incorrect. I tried to reconnect several times, but whenever I logged in, I'm disconnected. Help, please.
-
How can I delete unwanted updates from the list?
Windows 7 update list more than 35 languages to be updated. How I removed these updates from my list of updates not installed so that I see only the coming updates to install in the future? Whenever I open the list of updates, these 35 languages co
-
Vista 32 bit does not display the Epson NX230, but I can use the scanner of this part.
I just bought an Epson NX230 because my ip2600 canon is not print anything. When I load & install Epson the O. S says it is not found. It's an all in one and I can use the scanner. I tried to uninstall the old driver but the comp is suspended. Any
-
Remove the user from the start menu of windows image 7
We are currently testing Windows 7 drivers. In this context, some computers will be in our manufacturing areas where they need to be "locked". With Windows XP, we use a group policy. My last key to lower or remove element is the user photo icon.
-
How can I transfer my IPad3 images to my laptop
Can't seem to transfer my images from my Ipad 3 to my laptop. I was told on the camera wizard, but not sure. I have windows 7