Write function inside edge ?

How do I write a function to "display Off" of some of my symbols, so that I can call this function when a button is pressed.
Currently I am using this.
sym.$("Symbol_1").hide();
Since I have many symbols to be turn off at once,  manually turning off individual symbol is not an option for me.

Hi,
If the elements [you want to hide] do not have the same class, here is one idea (2 implementations):
1) Using Edge API:
function hideAll(){ $.each( arguments,function(index,item){ sym.$(item).hide(); } ) };
sym.setVariable("hideElements",hideAll);
How to use?
- Same panel code: hideAll("RoundRect","Text","Rectangle","Ellipse");
- Another panel code but same symbol: sym.getVariable("hideElements")("RoundRect","Text","Rectangle","Ellipse");
- Another symbol or timeline (triggers): sym.getComposition().getStage().getVariable("hideElements")("RoundRect","Text","Rectangle","E llipse");
2) Extra API:
I give up sym.setVariable() and sym.getVariable().
sym.iHide = function (){ $.each( arguments, function(index,item){ sym.$(item).hide(); } ) };
How to use?
- Within same symbol: sym.iHide("RoundRect","Text","Rectangle");
- Another symbol or timeline: sym.getComposition().getStage().iHide("RoundRect","Text","Rectangle");
Note: you can replace .hide() by another jQuery function: .show(), .css(), etc.
You can now hide [or show or change] a list of elements.
I will add another idea tomorrow (Monday).

Similar Messages

  • Function inside a trigger

    Can i write function inside a trigger?
    My requirement is that i've to call a function inside a trigger. Since this function is not frequently used so what i am thinking that i should write this function inside trigger. Can i do that?
    i know that function can be called inside trigger, but can i create a function inside trigger?
    if yes, then how?
    give me an overview. I'll appricate any kind of help.

    Hi,
    jadoo wrote:
    you mean to say that i can create a function in declaration section of trigger?Just an example,
    SQL> select empno,sal, deptno
      2  from emp
      3  where empno=7369;
         EMPNO        SAL     DEPTNO
          7369        800         20
    SQL> create table sal_inc_tab
      2  (inc_empno number,
      3  inc_sal number);
    Table created.
    SQL> create or replace trigger f_trg After update on emp
      2  REFERENCING NEW AS NEW OLD AS OLD
      3  FOR EACH ROW
      4  Declare
      5   v_inc_sal number;
      6   function sal_inc (v_sal number)
      7   return number as
      8   Begin
      9    return :new.sal+3000;
    10   end sal_inc;
    11  BEGIN
    12   v_inc_sal:=sal_inc(:new.sal);
    13   Insert into sal_inc_tab values(:new.empno,v_inc_sal);
    14  end;
    15  /
    Trigger created.
    SQL> select * from sal_inc_tab;
    no rows selected
    SQL> update emp
      2  set deptno=10
      3  where empno=7369;
    1 row updated.
    SQL> select * from sal_inc_tab;
    INC_EMPNO    INC_SAL
          7369       3800You can do same thing without function. Here there was no specific logic as such, it was just to show you how this is executed.
    Twinkle

  • Give commands to MUSE widgets inside EDGE is possible?

    Hi. I love designing with Muse and Edge. Wouldn'it be just great if I could controll Muse widgets inside my Edge elements? I tried tracking the Muse document and calling the functions inside Edge using jquery but it didn't work. Is there a way for this?
    Any help would be appreciated.

    While multiadressing may get you "synchronous" enough it's by no means a guarantee that both instruments will really react equally fast when receiving the trigger command over the GPIB bus. For true hardware synchronized operation you will have to use the trigger bus on the back of the device to connect them together, select one of the 4 trigger lines to use and set them up correctly on both instruments, one as input and one as output and then send the trigger command to the device that drives the trigger line. That will give you synchronisation to microseconds accurate. GPIB multi addressing will be in the range of several milliseconds and sequential GPIB in the range of maybe 100 milliseconds. 
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Using javascript to call a signed applet's read/write functions problem.

    Hi, I wan't to use javascript to call the read/write functions of my signed java applet.
    The applet can read/write fine, if its called from inside the applet, but when I make public functions to do the read/write and then call those functions from javascript, i get the old security exception.
    Has anyone done this before?
    Thanks

    From what I understand is that for example file IO can only be done if the current method
    has this privilege and the stack that called the current method had this privilege.
    Javascript doesn't have any privilege and calling methods that do file IO directly from
    javascript should not work, this bug was fixed in 1.4.2.
    The workarround AccessController.doPrivileged(new PrivilegedAction() { might allso be
    fixed in later versions since changing the privileges of currently executing code is
    someting that should not be possible when the currently executing code is called from
    "untrusted" (javascript) code.
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post

  • Calling a function inside a symbol?

    Hi there,
    I'm one of those flash-devs that are trying to get Edge Animate to do what I usually do in Flash, so I might be doing this the wrong way, but I've got a symbol with a function "inside" on my stage, and I wanna call that function from the stage.
    I've been trying to use sym.getComposition().getStage().getSymbol("symbolName").functionName(); but it doesn't work.
    I don't have any problems manipulating the symbol itself by calling .play() or .hide() so I know the path works....can anyone show me the right syntax to call a function inside a symbol?
    Thx in advance

    Hi Abnesher,
    An important principle to grasp is that symbols (and the stage is one of them) lies in parallel, despite the fact of instances of different symbols being nested one in another (and all in fine nested in the stage).
    The consequence is that from inside your nested symbol you have no direct visibility of the function defined inside the stage symbol !
    Inside the Stage symbol, in the document.compositionReady event handler :
    sym.yourGlobalFunction = function( firstParameter)
      // your stuff
    Inside another symbol, in one of its events handlers :
    sym.getComposition().getStage().yourGlobalFunction( 5);
    Gil

  • How to use analytical functions inside a mapping

    Hello everybody. Here Isend you a trick that we are using for two years.
    If you want to use a function (for instance :ROW_NUMBER() OVER (PARTITION BY ... ORDER BY ...)) inside a mapping you must create an expression with in the INGRP1 the fields you are going to use in the window function and in the OUTGRP1 the function you want. Create an Out -attribute with the expressión and link it to a distinct operator (using a "distinct" you encapsulte the sql and you will be able to use the function inside a filter - in the where clause.). The distinct can eliminate some register (depends on the function). If you validate the expression an error will appear (don't worry about that, the mapping will be ok).
    But there is a limitation, you will not be able tou sum over, min over, max over (it detect that they are aggregator functions). Other limitation: the debugger doesn't run with this kind of functions.
    Please publish this information on "The Warehouse Builder Utility Exchange". Mi email is [email protected] (if you need more information)

    It is possible to add SUM, MIN, MAX functions also to OWB releases prior to Paris - You have to put them in double quotes - write "MIN" "MAX" "SUM" etc. The rest of the rules (adding cut-off operator after the expression - as DISTINCT, or UNION ALL) is analogical to with ROW_NUMBER()
    That means You can create mapping with following functionality:
    SELECT
    sum (salary) over (partition by DEPARTMENT) department_salary,
    salary,
    employee_id,
    employee_name
    FROM employees_salaries
    writing it this way in OWB:
    SELECT
    "SUM" (salary) over (partition by DEPARTMENT) department_salary,
    salary,
    employee_id,
    employee_name
    FROM employees_salaries
    Regards,
    Martin

  • Can i create any procedure or function inside a oracle reserve package?

    Hi!
    Can i create any procedure or function inside a oracle reserve package. Suppose, I want to create a function called x in the dbms_output package. Can i do that? Or can i extend the features of this package and create/derived a function from it like we extend any class in JAVA. I'm not sure - whether this is at all possible. I'll be waiting for your reply.
    Thanks in advance.
    Satyaki De.

    No, but you can write a wrapper package and use that instead of using the Built-In package directly. So, instead of calling DBMS_OUTPUT, you call your own Package.
    Steven Feuerstein wrote a wrapper for DBMS_OUTPUT, called P:
    Re: DBMS_OUTPUT.PUT_LINE

  • Using the result of a function, inside a subselect

    Hi!
    I´m wondering if it´s possible to use the result of a function inside a subselect. Let me give you an example of what I´m trying to do here:
    select * from t_node where node_pk in (get_node_parents_pk(22345));
    The function get_node_parents_pk stands in for the following SELECT-statment:
    select node_pk from t_node_child where parent_node_pk = 12345
    The statement above would return something like this: 12435,23423,23453,23452
    These values represent the node_pk value for the parent nodes.
    I want the get_node_parents_pk function to return a result set similar to this so that I might call it inside the IN ( ) statement.
    Any clue? =)

    I created a collection type in the database:
    CREATE OR REPLACE TYPE nodes_pk_arr IS TABLE OF INTEGER;
    The function get_node_parents_pk () is made to return the collection type above. However, this does not work. I get the following error message:
    SELECT *
    FROM t_node
    WHERE node_pk IN
    (SELECT * FROM TABLE (get_node_parents_pk (22345)));
    ORA-22905: cannot access rows from a non-nested table item
    However, if I insert a nodes_pk_arr collection directly into the SQL-statement, like I do below, it works:
    SELECT *
    FROM t_node
    WHERE node_pk IN
    (SELECT * FROM TABLE (nodes_pk_arr(24564,23545,34523));
    So, when returning the collection from the function I´m told that the collection is not a nested table, when in fact it is. What gives?
    Also, is there no way to return a result set directly from the get_node_parents_pk() function, making it possible to write the statement like that shown below?
    SELECT *
    FROM t_node
    WHERE node_pk IN (get_node_parents_pk (22345));
    Your reply is much appreciated!
    Kind regards
    Robert

  • Custom aggregate function inside a package.

    Hi there,
    I'm trying to write a custom aggregate function and group that function inside a package together with some other functions that I have. As an example (to simulate the problem I have) suppose my custom aggregation to do a summation of numbers looks like:
    CREATE OR REPLACE TYPE SUM_AGGREGATOR_TYPE AS OBJECT (
    summation NUMBER,
    STATIC FUNCTION ODCIAggregateInitialize(agg_context IN OUT
    SUM_AGGREGATOR_TYPE) RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateIterate(self IN OUT SUM_AGGREGATOR_TYPE,
    next_number IN NUMBER) RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateMerge(self IN OUT SUM_AGGREGATOR_TYPE,
    para_context IN SUM_AGGREGATOR_TYPE) RETURN NUMBER,
    MEMBER FUNCTION ODCIAggregateTerminate(self IN SUM_AGGREGATOR_TYPE,
    return_value OUT NUMBER, flags IN NUMBER) RETURN NUMBER
    CREATE OR REPLACE TYPE BODY SUM_AGGREGATOR_TYPE IS
    STATIC FUNCTION ODCIAggregateInitialize(agg_context IN OUT
    SUM_AGGREGATOR_TYPE)
    RETURN NUMBER IS
    BEGIN
    agg_context := SUM_AGGREGATOR_TYPE(NULL);
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateIterate(self IN OUT SUM_AGGREGATOR_TYPE,
    next_number IN NUMBER)
    RETURN NUMBER IS
    BEGIN
    IF self.summation IS NULL THEN
    self.summation := next_number;
    ELSIF summation IS NOT NULL THEN
    self.summation := self.summation + next_number;
    END IF;
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateMerge(self IN OUT SUM_AGGREGATOR_TYPE,
    para_context IN SUM_AGGREGATOR_TYPE)
    RETURN NUMBER IS
    BEGIN
    self.summation := self.summation + para_context.summation;
    RETURN ODCIConst.Success;
    END;
    MEMBER FUNCTION ODCIAggregateTerminate(self IN SUM_AGGREGATOR_TYPE,
    return_value OUT NUMBER, flags IN NUMBER)
    RETURN NUMBER IS
    BEGIN
    return_value := self.summation;
    return ODCIConst.Success;
    END;
    END;
    If I write the following function definition:
    CREATE OR REPLACE FUNCTION MY_SUM(input NUMBER)
    RETURN NUMBER PARALLEL_ENABLE AGGREGATE USING SUM_AGGREGATOR_TYPE;
    and corresponding type declaration to test:
    CREATE OR REPLACE TYPE VECTOR
    IS
    TABLE OF NUMBER;
    this statement:
    select my_sum(column_value) from table(vector(1, 2, 1, 45, 22, -1));
    gives the correct result of 70. However, creating a package with the function definition:
    CREATE OR REPLACE PACKAGE MY_FUNCTIONS AS
    FUNCTION MY_SUM(input NUMBER)
    RETURN NUMBER PARALLEL_ENABLE AGGREGATE USING SUM_AGGREGATOR_TYPE;
    END;
    and calling it via:
    select MY_FUNCTIONS.my_sum(column_value) from table(vector(1, 2, 1, 45, 22, -1));
    explodes with:
    ORA-00600: internal error code, arguments: [17090], [], [], [], [], [], [], [], [], [], [], []
    Is it possible to have custom aggregate functions nested inside package declarations?
    I'm using Oracle 11g, Release 2 (11.2.0.1.0).

    HiddenName wrote:
    Is it possible to have custom aggregate functions nested inside package declarations?Yes, it is possible, you have succesfuly created your function. Your problem is that the database throws ORA-600 on execute. And with ORA-600 you can do 2 things: 1) google ORA-600 17090 or 2) contact your Oracle Support.
    You could also try to declare the function without PARALLEL_ENABLE - just to try to see if it changes anything. You can also try to call your function against a regular table with rows and columns - not against an collection type with table() operator.
    Anyway - these 2 tests should be usefull for Oracle Support.
    I never tried to put a custom aggregate function into a package. First - the cases when you need a custom aggregate function to be written for your system are very rare. Second - even if I needed 1 then I never needed 2 or more custom aggregate functions on my system. And as I do not like to make my life more complex than necessary, I have created it as a stand-alone function. And it is works (slowly).I tried using a standard table as you suggested:
    CREATE TABLE TEST_DATA
    test_value NUMBER
    INSERT INTO TEST_DATA
    (SELECT column_value test_value from TABLE(vector(1, 2, 1, 45, 22, -1)));
    COMMIT;
    select my_sum(test_value) from test_data;
    select my_functions.my_sum(test_value) from test_data;
    I also tried removing the PARALLEL_ENABLE clause to create the package as follows:
    CREATE OR REPLACE PACKAGE MY_FUNCTIONS AS
    FUNCTION MY_SUM(input NUMBER)
    RETURN NUMBER AGGREGATE USING SUM_AGGREGATOR_TYPE;
    END;
    And unfortunately it still breaks with the following error: SQL Error: ORA-00600: internal error code, arguments: [17090]. This looks like an Oracle bug to me as the PL/SQL parsing engine should have disallowed me to even create this if it is not supported in Oracle. Instead, it allows me to create the package, and breaks when I call the function with this weird error (additionally cutting my connection from the database) instead of disallowing me to do this altogether and printing a nice error message telling me that Oracle doesn't support this. How would I go about logging a ticket for this?
    Edited by: wcmatthysen on Dec 1, 2010 12:51 PM

  • Possibility to write Functional module in "end routines"

    Hello guys,
    Can you please tell me whether we can write functional module in end routines or not??? If yes,then what is the procedure?
    Thanks in advance,
    Regards,
    Bunty.

    End routines are a feature of BI 7.0, allowing you to take the end results of a transformation, and muck it about with ABAP.
    It is not possible to WRITE function modules in end routines. But it is possible to use them. Function modules exist inside function groups - not end routines.

  • How to write fille inside Dll

    I created one Vi which will write into the data log file. I built the exe for the same vi. now i am calling created dll to another vi. that mean, 
    i am trying to write data log file inside the dll. i have given constant path "i.e  C:\xxx" and tried to write the data the file but dll is giving me error as below
    " Error 1097 occurred at Call Library Function Node in Untitled 1
    Possible reason(s):
    LabVIEW:  An exception occurred within the external code called by a Call Library Function Node. The exception may have corrupted LabVIEW's memory. Save any work to a new location and restart LabVIEW.
    so is it possible to write the file inside the dll?.

    Hi Rajesh
    Yes, It is possible to write file inside the dll
    I am able to write file inside a DLL. It isnt giving me any error. I have tried this out with a text file and a datalog file. I have created a simple file, with the path as an input parameter, and the text as another input parameter.
    I'm calling this in another LabVIEW VI. This creates the file with the expected data in it.
    Vishal
    Applications Engineer
    National Instruments

  • SSIS function inside derived column !!

    HI Friends My Source csv files has one column has below rows:
    counts
    1
    12
    13
    12/10
    13/13
    my destination col datatype is FLOAT, which rows has numerator and denaminator. i want only numerator. I don't want '/10'.
    how can i write ssis function inside the derrived column !  thanks in advance.

    LEFT((DT_STR,10,1252) COUNT + (DT_STR,2,1252) "//",FINDSTRING(COUNT,"/",1)-1)
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • How to call proceduer or function inside LOV of oracle apex

    Hi all,
    how to write statement to call proceduer or function inside LOV of oracle apex?
    Edited by: akki.kumar on Sep 2, 2010 12:25 AM

    Hi,
    Example how call procedure inside dynamic LOV and retrun lov from emp table
    DECLARE
    BEGIN
    my_procedure;
    RETURN 'SELECT ename d, empno r FROM emp';
    END;Regards,
    Jari
    Edited by: jarola on Sep 2, 2010 10:42 AM

  • How to find out list of procedures and functions inside a package

    How I can find out the list of Procedures and Functions inside a Package.

    Look at ALL_PROCEDURES and ALL_ARGUMENTS.

  • How to open labview program with Quit Labview function inside?

    Hi Any idea how to open labview program with  Quit Labview function inside?
    I forgot to add and set the condition of the type for this program.
    If the program is an application, it would close straight away.
    If it is still labview work, it will go straight to editing program without closing.
    So I need to recover, open it and make some changes.
    Clement
    Solved!
    Go to Solution.

    Put the VI in a project and open it from there, then it shouldn't autorun. You can use App.kind property of application to decide whether to close or not.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

Maybe you are looking for

  • Creating subtotal in a table view

    Hi All, Can I create a subtotal in a Table view based on particular column? Any help would be appreciated. Thanks in advance, RK

  • Windows Vista - enter CD and it says iTunes has encountered an error. Help?

    Basically, I bought a iPod the other day and installed the latest version of iTunes. I put a CD in to rip and within seconds of ripping I got a message saying 'iTunes has encountered an error and needs to close. Windows will contact you if there is a

  • URGENT -------- PLEASE HELP GURU's

    hi all could any one tell me what is wrong in this code because when i do it does not go the next string displayed on the screen it goes to the first string only. PLEASE HELP while (st.hasMoreTokens())           String accession = st.nextToken();    

  • Authorizations for Operational Purchaser

    Hi Gurus, We are runnign SAP SRM 7 with ECS. We need Operational Purchasers to be able to create PO from scratch in SRM and to be able to modify other purchasers'POs. It does not seem possible with standard Operational Purchaser role. Should we use a

  • QUICKTIME; CAN'T UNINSTALL OLDER V; AND CAN'T INSTALL NEW V

    I get error message when trying to install Quicktime - can't uninstall older version.  Contact support.  Quicktime does not show up in add/remove programs or in explorer.