Func variable

Anyone nows what the Func variable does ?
Thanks in advance

i new in java i know few thinks Well that's just great darling. It's not really going to help anyone answer your question though.

Similar Messages

  • Set systemwide variable with /etc/launchd.conf does not work in 10.10

    Hi,
    before i upgraded my system, i set in file /etc/launchd.conf some variables. I need this for the Shell, Eclipse and some other tools.
    user@osx10-10:~$ cat /etc/launchd.conf
    setenv M2_HOME /opt/maven
    setenv MAVEN_OPTS "-Xmx2048m -Dmaven.surefire.debug=-Xmx2048m"
    user@osx10-10:~$
    With Mavericks there was no problem, since Yosemite no Variables are set.
    Also when i try to set it manually with launchctl setting xxxxx xxxx, no variable is set.
    Does anyone has a workaround for me?
    Regards
    Joerg

    Alex It should work . by the way your PATH variable should be placed in /etc/paths like this :
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    /Users/alex/Dev/apache-ant-1.9.2/bin
    Note after each line there is a return key
    As for environment variables open your ~/.bash_profile and place the.
    export ANT_HOME = /Users/alex/Dev/apache-ant-1.9.2
    launchctl setenv ANT_HOME $ANT_HOME
    export ANT_OPTS = -Xmx512M
    launchctl setenv ANT_OPTS $ANT_OPTS
    make sure you save and restart all applications that need to read environment variables. I faced the same problem with intelliJ accessing M2_HOME
    As a side note : consulting the man pages of launchctl(1)
    DEPRECATED AND REMOVED FUNCTIONALITY
         launchctl no longer has an interactive mode, nor does it accept commands from stdin. The
         /etc/launchd.conf file is no longer consulted for subcommands to run during early boot time; this func-
         tionality was removed for security considerations. While it was documented that $HOME/.launchd.conf
         would be consulted prior to setting up a user's session, this functionality was never implemented.
         launchd no longer uses Unix domain sockets for communication, so the LAUNCHD_SOCKET environment vari-
         able is no longer relevant and is not set.
         launchd no longer loads configuration files from the network

  • [JS CS3] Variable Function Name

    Hello everyone,
    Does anyone know if you can put a variable into a function name?
    Bellow is a function that I am working on to avoid using an if statement with 33 possiblilites. It does work but I get a "undefined is not an object error".
    function myFunction(){
    var myDoc = app.activeDocument;
    var myRootXMLElement = myDoc.xmlElements.item(0);
    var myData = myRootXMLElement.xmlElements.item("xyzTag");
    for (b = 2; b <= 34; b++){
    if(b = myData.contents){
    myNewFunction = "my"+b+"VariableFunction()";
    try{
    eval(myNewFunction);
    }catch(e){
    alert(e);
    Because this physically does what I intend it to do I believe this should work but I can't get past this error. Could someone please let me know if there is a way to make this error free?
    Regards,
    Brett

    Change this line:
    >if (b = myData.contents)
    to this:
    >if (b == myData.contents)
    and it probably works. It is possible to use variables and eval() to call functions. This script works ok:
    for (i = 0; i < 3; i++)
       f = 'my' + i + 'Func()'
       eval (f)
    function my0Func ()
       $.writeln ('this')
    function my1Func ()
       $.writeln ('that')
    function my2Func ()
       $.writeln ('and the other')
    Peter

  • How can I use evaluate to get the instance variable in customized tag

    1.
    At first , I create a class called bean,and declared several params in it and do not define any getter function for the param.
    class bean{
    String param = "test";
    SomeClass scObj = new SomeClass();
    2.
    The second ,I use
    request.setAttribute("beanObj",new bean());
    3.
    And then I wanna use the customized tag to show a text box , then initialize it's value.
    <salt:text name="param" value="beanObj.param">
    <salt:text name="obj" value="beanObj.scObj.func()">
    4.
    I tried the evaluator provided by JexlContext ,Struts, JSTL and it seems that if I do not define the getter for the variable ,I can not get the bean's instance variable's value.
    Expression e = ExpressionFactory.createExpression( value );
    JexlContext jc = JexlHelper.createContext();
    jc.getVars().put(strInitBeanName, request.getAttribute("beanObj"));
    Object obj = e.evaluate(jc);
    the result of the obj is null....
    Can anybody recommand some other evaluator can get the value of a instance variable from an object?

    do you have any other suggestion ? Nops, somebody else may have though. AFAIK, all lookups of the type
    beanName.propertyNameuse reflection on the getXXX() methods to access the property.
    Having said that, I guess you could write one though in a custom tag, using the same - reflection (you will ahve to rely on the java.lang.reflect.Field class quite heavily) - but that would be reinventing the wheel for most other functionality that you would have to include (like looking up the bean in scope etc)
    cheers,
    ram.

  • Reading variable value via exit

    Hi folks,
        I have a problem while reading a variable value for a lead colum.my layout as follows,
    header : Cost center
    Lead Coloum : Functional location
    Lead Coloum : Equipment
    Data Coloum : Budget proposal.
    Here, I have written a exit for both lead coloum. Actually i want Functional location based on Costcenter and <b>Equipment based on Cost center and Functional location.</b>
    But Equipment variable is getting read before selecting the Functional location, So I am not getting the Equipment variable value based on Functional location.
    Note : I am running layout in the  Web.
    Please suggest.
    Thanks and Regards,
    Meiy

    Dear Meiy,
    Try using characteristic relationship. Use two steps. In the first step, use exit to select the Func location. In the second step, use exit to select the Equipment.
    regards,
    Lokesh Nandula

  • Accessing a JSTL variable in a JSP Scriptlet (need to replace string )

    I have
    <c:set var="myVar" value="..." />
    I need to replace single quotes and double quotes to be escaped because I pass them into javascript functions and set them as ID for div sections
    ... onclick ="func('${myVar}')" ..
    <div id="${myVar}">
    but if the string contains ' single quotes it messes up the javascript or double quotes messes up the ID portion of the HTML tag
    I know there is the JSTL function fn but I can't figure out how to do it properly in JSTL
    <c:set var="myVar"
    value="${fn:replace(myVar, "'", "\"")"/>
    But that gets tricky since the value portion is enclosed in quotes
    So I was thinking of using a Scriptlet part instead.

A: Accessing a JSTL variable in a JSP Scriptlet (need to replace string )

escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
  return .......
}Then define the function in a tld:
<function>
    <description>
      Escapes a string for javascript purposes
    </description>
    <name>escapeJavascript</name>
    <function-class>com.mypackage.ELFunctions</function-class>
    <function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
    <example>
      <c:out value="${myfunc:escapeJavascript(name)}">
    </example>
  </function>Cheers,
evnafets

escaping quotes within quotes within quotes.... ARGH!
Recipe for a headache if ever there was one.
However you must be strong and resist the temptations of the dark side (Scriptlet code)
My suggestion for cleaning this up - write your own static function for escaping javascript strings.
public static String escapeJavascriptString(String s){
  return .......
}Then define the function in a tld:
<function>
    <description>
      Escapes a string for javascript purposes
    </description>
    <name>escapeJavascript</name>
    <function-class>com.mypackage.ELFunctions</function-class>
    <function-signature>java.lang.String escapeJavascript(java.lang.String)</function-signature>
    <example>
      <c:out value="${myfunc:escapeJavascript(name)}">
    </example>
  </function>Cheers,
evnafets

  • Shared java static variables

    I have an application where I would like to
    read from some small configuration tables
    and cache them into java variables, in order to avoid each stored procedure call to redo
    those queries. The configuration data is
    pretty static, so I don't worry about refresh
    problems.
    My first attempt to do that was using static
    final variables (like Vector). In our oracle
    environment however (8.1.7) each session
    seems to have its own copy of static final
    variables, resulting in each session to
    perform those queries for initializing all
    over again.
    firstly, i would like to find out if there is another way to share this data among java
    sessions, but otherwise I am curious how
    I can get the claims made in http://technet.oracle.com/products/oracle8i/pdf/8ir2java.pdf , page 6 to work.
    Specifically, here is what the document says:
    "In Oracel8i Release 2, JServer introduces the concept of "hotloaded" classes. Various core classes that
    initialize static variables known to be constant are pre-initialized during database creation time. When you use
    one of these classes in your program, the class loader loads the pre-initialized form. In many cases, the time
    required to initialize the static variables is itself quite significant, and now with the introduction of hotloaded
    classes that time is completely eliminated. In addition, the objects in these particular static variables are shared
    among all sessions. Hotloaded classes therefore improve performance by eliminating class initialization and
    they reduce per-user-session footprint by increasing the amount of data shared between sessions. Hotloaded
    classes provide improved performance and scalability "for free", with no user intervention. "
    the kind of initialization I have been
    trying is like:
    public static final int inti = func();
    this also didn't seem to work:
    public static final int inti;
    static {
    inti = ....;
    thanks,
    null

    I have an application where I would like to
    read from some small configuration tables
    and cache them into java variables, in order to avoid each stored procedure call to redo
    those queries. The configuration data is
    pretty static, so I don't worry about refresh
    problems.
    My first attempt to do that was using static
    final variables (like Vector). In our oracle
    environment however (8.1.7) each session
    seems to have its own copy of static final
    variables, resulting in each session to
    perform those queries for initializing all
    over again.
    firstly, i would like to find out if there is another way to share this data among java
    sessions, but otherwise I am curious how
    I can get the claims made in http://technet.oracle.com/products/oracle8i/pdf/8ir2java.pdf , page 6 to work.
    Specifically, here is what the document says:
    "In Oracel8i Release 2, JServer introduces the concept of "hotloaded" classes. Various core classes that
    initialize static variables known to be constant are pre-initialized during database creation time. When you use
    one of these classes in your program, the class loader loads the pre-initialized form. In many cases, the time
    required to initialize the static variables is itself quite significant, and now with the introduction of hotloaded
    classes that time is completely eliminated. In addition, the objects in these particular static variables are shared
    among all sessions. Hotloaded classes therefore improve performance by eliminating class initialization and
    they reduce per-user-session footprint by increasing the amount of data shared between sessions. Hotloaded
    classes provide improved performance and scalability "for free", with no user intervention. "
    the kind of initialization I have been
    trying is like:
    public static final int inti = func();
    this also didn't seem to work:
    public static final int inti;
    static {
    inti = ....;
    thanks,
    null

  • Example of calling PL/SQL func in JavaScript

    I need to validate a form element based on existing database value and give an alert. Does anyone know how to capture the value returned by a PL/SQL func in JavaScript variable? Thanks.

    hi,
    in the PL/SQL block 'before form displayed'
    insert the code:-
    htp.p('{script}var myVar = "' &#0124; &#0124; myPLSQLfunc &#0124; &#0124; '";{script}');
    (I have replaced the less-than and greater-than symbols with {} so that they will show in the browser)
    The variable myVar will now be available to JavaScript in the page and will have the value returned by myPLSQLfunc.
    Regards Michael.

  • Calling a function and passing parameters via Variables

    I've got an XML file that is loading in data and is calling functions.
    I've figured out how to call the methods from classes with variables set from the XML file:
    var functionToCall:String = xml.functions.func[0].to_fire.toString();
    myClass[functionToCall]();
    This calls the function perfectly.
    I was wondering if there is anyway to pass parameters into the function as well through variables.  Some functions may have no parameters, some functions could have 5... so the xml could be like this:
    <functions>
       <func>
        <to_fire>function1</to_fire>
        <param>
         <value>true</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
       <func>
        <to_fire>function2</to_fire>
        <param/>
       </func>
       <func>
        <to_fire>function3</to_fire>
        <param>
         <value>false</value>
         <type>Boolean</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>My String Value</value>
         <type>String</type> <!-- Must be set to Boolean, String or Number -->
        </param>
        <param>
         <value>10</value>
         <type>Number</type> <!-- Must be set to Boolean, String or Number -->
        </param>
       </func>
    </functions>
    whats the best way to set something like this up?

    how would I set something like that up?
    in the class:
    public function myFunction(_param1:String, _param2:Number):void {
    then to call it, would ParamTypes be cast as an array or object or something?
    var functionVariable:String = "myFunction";
    myClass[functionVariable](??);
    Or do I structure the XML file in some way to pass in the information?

  • Can we write function with variable number of argument

    Hi
    Can anybody tell that can we pass variable number of arguments to a function in oracle 10gR2.
    As in function decode we can pass variable no. of arguments upto 255 arguments, similarly can we creat a function which accept any no. of variables.

    I'm not sure that this is what you were asking about, but depending on the logic you want to implement, you can declare the maximum possible number of parameters to your function, give them default values, and then pass to your func as many parameters as you want:
    SQL> create or replace function test(p_a number:=null, p_b number:=null) return varchar2 is
      2    Result varchar2(100);
      3  begin
      4    result:='a='||p_a||', b='||p_b;
      5    return(Result);
      6  end test;
      7  /
    Function created
    SQL> select test() from dual;
    TEST()
    a=, b=
    SQL> select test(1) from dual;
    TEST(1)
    a=1, b=
    SQL> select test(1,2) from dual;
    TEST(1,2)
    a=1, b=2
    SQL> drop function test;
    Function dropped
    SQL>

  • Authorisation variable using customer exit

    Hi,
    how to populate a authorisation object at runtime? is it possible to have a variable etc that can be populated a runtime?
    I have a object zsales_off which has different values for different users. i need to create separate roles just to have different values for sales office for different users. i would like to avoid this by having a single role with the zsales_off getting populated at runtime.
    please give details steps with code if possible? 
    i have created the authorisation variable and am using it in the query. if i manually assign values for sales office in the role, it is working fine.
    i want to assign values at run time. i am confused with the process as such.
    few specific doubts like:
    1> the variable should be of "authorisation" processing type or "customer exit" processing type.
    2>what to use I_step=0 or I_step =1? how to use? where to use?
    3>to write a abap code or use a func module, which one? how to use.
    4> what(value) to assign for the zsales_off object in the authorisation profile?
    thank u in advance..

    Hi torsten,
    thank you. but i am afraid it doesn't give me an idea as to how to move ahead?
    i have variable with processing type "authorisation" used in many queries.
    can i use the customer exit rsr0001 for this variable? what value should be assigned in the authorisatio profile for this object?
    please give the detail process and a abap code if possible.
    thank u

  • Question reg bind variable...

    hi,
    I have learnt that when we pass parameter to proc/func. those parameters are auto. treated as bind variables...
    but what if I have a simple proc. which does not accept any argumets nor it returns anything just a batch job type for e.g to send emails.. then how will the variables declared in that proc treated as bind variables or not?
    If not, how can i modify the proc to use bind variables
    thx

    Any PL/SQL variables or parameters will be automatically treated as bind variables in static SQL. There is nothing special you have to do.

  • Passing variables from php to flash and the opposite

    Hi guys, im trying weeks now to solve this problem but nothing yet
    If someone could just tell me how to pass variables from flash to php and the opposite i would be thankful!!! Please help!

    I have recently had to learn this, so this may not be the best way but it worked for me
    I suggest looking at the code below stripping out everything you don't need (e.g. the databse stuff) and just get a simple string going back and forward
    have a go and post any problems here and I'll try and help
    in flash i have
    private function getBalanceAndXP():void
              var request:URLRequest = new URLRequest("utils.php");
              request.method = URLRequestMethod.POST;
              var variables:URLVariables = new URLVariables();
              variables.func = "getBalance";
              variables.fbid = userID;
              request.data = variables;
              var loader:URLLoader = new URLLoader();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              loader.addEventListener(Event.COMPLETE, onBalanceComplete);
              loader.load(request);
    private function onBalanceComplete(e:Event):void
              var loader:URLLoader = e.target as URLLoader;
              loader.removeEventListener(Event.COMPLETE, onBalanceComplete);
              var variables:URLVariables = new URLVariables(loader.data);
              _balance = parseInt(variables.balance); // class variable
              _experience = parseInt(variables.experience); // class variable
    public function setBalanceAndXP(balance:int, experience:int):void
                _balance = balance;
              _experience = experience;
              var request:URLRequest = new URLRequest("utils.php");
              request.method = URLRequestMethod.POST;
              var variables:URLVariables = new URLVariables();
              variables.func = "setBalance";
              variables.fbid = userID;
              variables.balance = _balance;
              variables.experience = _experience;
              request.data = variables;
              var loader:URLLoader = new URLLoader();
              loader.dataFormat = URLLoaderDataFormat.VARIABLES;
              loader.load(request);
    and then I have my php file
    <?php
    $func = $_POST["func"];
    $fbid = $_POST["fbid"];
    $balance = $_POST["balance"];
    $experience = $_POST["experience"];
    $numVariables = 0;
    $link = mysql_connect("localhost","username","password");
    mysql_select_db("databaseName");
    if ($func == "getBalance")
              getBalance($fbid);
    else if ($func == "setBalance")
              setBalance($fbid, $balance, $experience);
    mysql_close($link);
    function getBalance($fbid)
              $query = "SELECT balance, experience FROM tableName WHERE fbid = '".$fbid."'";
              $result = mysql_query($query);
              $row = mysql_fetch_row($result);
              writeVariable("balance", $row[0]);
              writeVariable("experience", $row[1]);
    function setBalance($fbid, $balance, $experience)
              $query = "UPDATE tableName SET balance = ".$balance.", experience = ".$experience." WHERE fbid ='".$fbid."'";
              mysql_query($query);
    function writeVariable( $name, $value )
              global $numVariables;
              if ( $numVariables > 0 )
                        echo "&";
              echo $name . "=" . urlencode($value);
              $numVariables++;
    ?>

  • Write VISA - escribir una variable continuamente

    Hola a todos, 
    he diseñado una función de PID en labview y ésta me saca una variable de salida que la debo mandar al Write VISA para que escriba en el puerto serie continuamente, ya que la variable se va modificando todo el rato sin parar. Mi duda es como hacerlo porque lo he intentado de mil formas y me estoy desesperando. Nose si esto será posible de todas formas.
    Gracias por vuestra respuesta de antemano!

    Adjunte su archivo VI y snapshot

  • Gráficar suma variables

    Alguien sabe si es factible graficar la suma de dos variables que han sido historizadas? Es decir, en Citadel tengo información de la variable A y la variable B. Vamos a suponer que extraigo las últimas 24 horas de cada variable y las grafico. Eso es sencillo. La pregunta es, si pueden graficarse las últimas 24 horas de la suma de A + B sin haber creado previamente una variable C que contenga este resultado. He visto que hay una función Arithmetic que hace la suma (o resta, multiplicación y división) de dos señales pero hasta donde logro entender lo hace de información que se está adquiriendo en este momento y no sobre información histórica.
    Saludos.

    Mete un campo de formula que sume dichos campos, los unicos que quieres sumar, los otros los puedes dejar como ocultos quitando la casilla de Visible en pestaña General

  • Maybe you are looking for

    • ABAP-- diff between sy-sy-tabix and sy-index

      Hi Guru's, Pleae can anybody expalins me what is the difference between sy-tabix and sy-index(Loop Index) ? Because in one case i am Modifyimg the internal table inside the do loop by giving sy-index ((Index of Internal Tables)(MODIFY scarr_tab INDEX

    • How to fix errors in a Password Protected vi?

      Hi all, I have selected a wrong DLL to be loaded. Now i cannot relocate the right dll because i don't know password. How to make the vi to reload  and promote me to select a right DLL file? Thanks. czhen Win 7 SP1 & LabVIEW 2012 SP1, Teststand 2012 S

    • Subcontracting with Vendor's own material.

      Hello I have a scenario wherein client sends a component for machining to Vendor and pays for the machining charges to the  Vendor. It happens that Subcontracting Vendor attaches say a nut bolt(hos own material,we have not provided the same) to the m

    • RGB Curves crashing Premiere after update

      I just updated Premiere CC and every sequence that uses RGB curves has been crashing on me. Premiere starts acting as if it is being asked to do way to much. The video starts displaying still images every ten seconds from the video until the entire p

    • Calcualtion of Moving average price

      Hi All,     I like to know the Calcualtion of Moving average price in Materail master Record. Is there any T. Code to Check Moving avrage Price. Based on which Moving average price is updated automaticly in SAP. Thanks in Advance, Mahesh