Adding own "functions"

When I write stuff in PHP using dreamweaver in the code view.
When I use a function such as imagecreate(), as soon as I hit the
first open bracket I get a help tip showing up showing me whats
required.
Is it possible I can create my own of these? I use alot of
custom written functions all the time in my web development but I
would like to have Dreamweaver recognise these as functions and
display the help tip.
Im currently on Dreamweaver MX, but I'm willing to upgrade if
this is possible on later versions?

I also had the problem of wanting to use custom javascript that I could call from an Edge Animate Composition.
The solution I found (from a post by hemanth kumar r https://forums.adobe.com/thread/1479495) was to make variables and functions properties of AdobeEdge.
So in the external .js document a variable is declared and given a value:
AdobeEdge.myVariableName = "The variable value";
To use it in a symbol/element:
alert(AdobeEdge.myVariableName);
And a function is declared:
AdobeEdge.myFunctionName(param){...function code...} //param optional
To call these in a symbol/element:
AdobeEdge.myFunctionName(param);
To test this out I created a button on my stage that called a function in my custom .js file that simply called an alert. Once the function works you can expand it to do anything you want (I used it to go to a new html page).
Peter Small

Similar Messages

  • Question on adding one function to a submenu

    hi,dear all.
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??
    thanks in advance.

    What is the application release?
    I added one function to a menu.
    my question is I can find it from the forms navigator page but why I can not find it from the initial navigation web page ??Please mention the steps and the navigation path you follow to reproduce the issue.
    Thanks,
    Hussein

  • Parameter Variable Handling in own Function Types

    Hi experts,
    I've implemented a customer function type using a separate ABAP class. The function type has got several parameters that should be filled in a command that is defined on a WebTemplate button group. Planning functions that use this type are working fine by setting the parameter in the WebTemplate statical (using a string). But if the parameter is bind to a BEx variable or are DataProvider selection nothing will be given to the function type. Investigation in the SAP ABAP code gave me the information, that in case of variables the SAP code will return only empty values, although the code itself has got the technical id of the corresponding variable.
    So my question is, how to give own function types implementation the current navigation state of WebTemplates, e.g. using the DataProvider selection or the state of BEx variables?
    Anyone here with interesting and helpful hints?

    Timo,
    When you stated that parameter readings in your function returns nothing when using variables i assumed that binding is not happening because in the case of binding with variables not only the definition of the binding is important but also the settings of the variables in the metadata (input ready, mandatory etc.),also i assumed that your button is not showing the variable screen and in this case with mandatory variables when no value is bound to the variable then the popup screen appears any way and the function is stopped .
    Hope this helps.
    Regards,
    Eitan.

  • Error adding partner function

    I am a newbie. I am trying to configure SD on my IDES.
    I am at the point of adding partner function (Z9) to the partner procedure (ZAG)
    but I am getting an error message:
    "Partner function Z9 cannot be used for partner procedures"
    I cannot find the answer in google.  please help.
    [click for image|http://i1181.photobucket.com/albums/x421/darkmatter1/196235/pfunction.jpg]

    Hi Anwar,
    Please check the parner function-account group and partner determination  procedure-account groups are assigned properly or not from
    SD >> basic functions >> partner determination >> set up partner determination >> Set Up Partner Determination for Customer Master,sales doc. header etc. which type partner determination you want to maintain if you want to maintain them for customer.
    In that screen, you need to maintain (Z9) to the partner procedure (ZAG) after doing Partner Determination Procedure Assignment and Account Groups - Function Assignment.
    I hope these will solve your problem.
    Regards,

  • Using an own function in a select how can i set that the function run once?

    Hi
    Using an own function in a select how can i set that the function run once, not in every row?
    Please help me
    Thanks
    Viktor

    Something like this ?
    SQL> select * from dept;
        DEPTNO DNAME                          LOC
            10 ACCOUNTING                     NEW YORK
            20 RESEARCH                       DALLAS
            30 SALES                          CHICAGO
            40 OPERATIONS                     BOSTON
    SQL> create or replace function ret_name (deptnum in number) return varchar2
      2  is
      3     name    varchar2(50);
      4  begin
      5     select dname into name
      6     from dept
      7     where deptno=deptnum;
      8     return name;
      9  exception
    10     when no_data_found then
    11             return('Not existent deptno');
    12* end;
    SQL> /
    Function created.
    SQL> select deptno, decode(rownum,1,ret_name(deptno),null) dname from dept;
        DEPTNO DNAME
            10 ACCOUNTING
            20
            30
            40
    SQL>

  • Adding subtitle functionality to my custom flv player

    Hey all,
    I have a custom flv player and i'm slowly adding more functionality to it as I go along but i've hit a wall.
    I want to add a subtitle button that toggles between show/hide. I've seen on the internet that the best way is to use an XML file (holding the script, times etc.), which I have no problem writing.
    I'm having problems trying to replicate the 'FLVPlaybackCaptioning' component (in Flash CS3) in to my custom flv player. I.E. Adding the right actionscript to my toggle button.
    Can anybody help me as I just can't find anything on the internet.
    Any advice is welcome!
    Thanks
    egr103

    Well the problem is that I can't find any tutorials or help about getting a subtitle toggle button into my custom flv player, an example of which can be found here: http://idl.newport.ac.uk/dev/customplayer.html
    I don't like using the FLVPlayback component built into flash as it is too clunky but at the moment that is the only way I can get subtitles to toggle on and off (using the FLVPlaybackCaption component).
    Ideally I would like to use an XML file to do the subtitles. Any ideas?

  • Adding a function once a scrollpane has loaded

    Hi
    I have a scrollpane but need to put the scrollbar on the left. I've used the code:
    _root.scrollPane.vScroller._x = 0;
    This only works once the scrollpane has loaded. Could anyone help me with setting up a function/listener? I'm useless with listeners so any help would be appreciated. I've tried on(complete) with no success. I've also heard an "added" event listener may be the answer, but I've not managed to succesfully set that up.
    Thanks
    Simon

    in as3 you should use the added event and then position using the verticalScrollBar property of your scroll pane:
    sp.addEventListener(Event.ADDED,f);
    function f(e:Event){
    sp.verticalScrollBar.x=0;
    oops.  wrong forum.  delay by some time and then change your scrollpane's vScroller (or vSB) property.  if you're loading content into your scrollpane you can use the complete event.

  • Own function in computation (Interactive Report)

    Hello,
    I have checked package WWV_FLOW_WORKSHEET_DIALOGUE (it's wrapped, so I've checked it only slightly) and table WWV_FLOW_WORKSHEET_COMPUTATION and found that those two objects are responsible for functions we can see/use at Compute panel of Interactive Report. I need to add my own function to computation but it's not possible. When I write MY_FUNCTION(A) in text box and try to apply then I receive message: "Invalid computation expression. MY_FUNCTION".
    Is any way to add own function to be seen by Compute option in Interactive Report?
    It's important that I don't want to use MY_FUNCTION in query defined in Region Source!
    Thanks in advance,
    Regards

    Hi, just stumbled over your question and I happened to have the same problem.
    It appears not to be possible to use your own functions although it would definitely be very nice.
    However, I found a solution, but given that I already had my knuckles rapped once for mentioning them-who-must-not-be-named (anything starting with "WWV..." really), I am not going to post it here.
    If you are still interested (and if you didn't fix it already for yourself), drop me a personal mail and I'll get back to you.
    Needless to say, you should think long and hard before you make any modification in any WWV_ object and then decide that you shouldn't.
    Regards,
    Iulian

  • SQL Loader: using your own function

    Hi,
    Is it possible to include your own function in sql*loader? Would this be a correct syntax?
    LOAD DATA
    APPEND
    INTO TABLE MY_TABLE
    IDE "my_seq.nextval"
    CLIENT_NBR POSITION (1:10)          CHAR     
    CLIENT_TYP POSITION (11:12)     "MY_PACKAGE.MY_FUNCTION(:CLIENT_TYP)"
    )So the value of the data ( position 11:12) needs te be processed first by the function. The result of the function needs to be stored in the CLIENT_TYP column.
    Thank you
    Message was edited by:
    Ratjeuh

    still yes/yes after the edit?Yes :)

  • Transaction BUS3 - Further checks - Own function module

    In order to create additional checks on BP Identification Numbers, we used tx BUS3 to add to view BUP520 under Further Checks our own function module.
    As a start we took a straight copy of BUP_BUPA_PAI_MISC, the SAP delivered function module.
    After the SAP FM, our Z-module gets called with parameter I_SICHT, identical to the
    parameters of the SAP FM. No other parameters nor tables get passed.
    How can we get hold of the same data as the SAP FM ? We want to check e.g. table
    GT_BUT0ID (identification numbers). It is filled in the SAP FM at the end of FORM bup520_pai, but is empty in the Z-module ?
    Thanks for your solution.

    Hi.
    We also validate the ident. numbers but on check or save event.
    Create and Add the new z.fm to the event DCHCK (appl = 'BUP') in tcode BUS7.
    We use some trick to get this data from memory [SAPLBUD0].
    You can try to use it for the PAI (the same f.group = BUD0)
    function z_gzp_but0id_get.
    ""Local interface:
    *"  TABLES
    *"      OT_BUT0ID STRUCTURE  ZGZP_ST_BUT0ID OPTIONAL
    *"      OT_MEM_BUT0ID STRUCTURE  VBUT0ID OPTIONAL
      data: lv_fname1(50) type c value '(SAPLBUD0)GT_BUT0ID[]'.
      data: lv_fname2(50) type c value '(SAPLBUD0)MEM_BUT0ID[]'.
    ***------ ID-NUMMERN -
         BEGIN OF GT_BUT0ID OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA:   XMARK     LIKE BOOLE-BOOLE,
           TEXT      LIKE TB039B-TEXT,
           ENTRYDATESTR TYPE BU_ENTRYDATESTR,
           DATEFROMSTR  TYPE BU_DATEFROMSTR_ID,
           DATETOSTR    TYPE BU_DATETOSTR_ID,
         END   OF GT_BUT0ID,
    ***------ ID-NUMMERN: ZUORDNUNGEN (ALTER STAND) -
         BEGIN OF GT_BUT0ID_OLD OCCURS 0.
           INCLUDE STRUCTURE XBUT0ID.
    **DATA: END OF GT_BUT0ID_OLD,
    corresponds to declaration of gt_but0id in include LBUD0TOP
      types: tp_s_but0id type zgzp_st_but0id.
      types: tp_t_but0id type standard table of zgzp_st_but0id.
      types: tp_s_mem_but0id type vbut0id.
      types: tp_t_mem_but0id type standard table of vbut0id.
      field-symbols: <fs1> type tp_t_but0id.
      field-symbols: <fs2> type tp_t_mem_but0id.
      data: ls_but0id1 type tp_s_but0id.
      data: ls_but0id2 type vbut0id.
      if ot_but0id is requested.
        assign (lv_fname1) to <fs1>.
        clear ot_but0id[].
        loop at <fs1> into ls_but0id1.
          ot_but0id = ls_but0id1.
          append ot_but0id.
        endloop.
      endif.
      if ot_mem_but0id is requested.
        assign (lv_fname2) to <fs2>.
        clear ot_mem_but0id[].
        loop at <fs2> into ls_but0id2.
          ot_mem_but0id = ls_but0id2.
          append ot_mem_but0id.
        endloop.
      endif.
    endfunction.
    I hope it helps.
    Regards, Robert

  • Adding a function module into a SQ01 Query

    Hi ABAP Gurus,
    I was trying to extract few dates from TSEGE Table, by linking the VTTK - HANDLE. We are trying to look at maintaining dates of shipment that were not previously used in our company.
    When I tried extracting the dates from TSEGE, they come as timestamped UTC. I was told to use the function module IB_CONVERT_FROM_TIMESTAMP with CET in a query by an external consultant we use for our services. I am familiar with creating simple queries in SQVI and convert them to SQ01, also I know to create queries in SQ01 itself. But do not know how to add a function module into an SQ01 Query.
    After checking a few threads, I realise that I should be creating a field and entering the code of the function module.
    Is there any way, anybody could instruct me in simple terms how do I go about adding a function module.
    Your help will be greatly appreciated.
    Thanks in advance!

    Dear Jogeswara,
    I have after reading a few threads, understood this small code and changed to my specification
    To convert UTC Start time from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        I_TIMESTAMP = TSEGE-EVEN_TSTFR
        I_TZONE = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    To convert UTC Start End from TSEGE
    CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
      EXPORTING
        i_timestamp = TSEGE-EVEN_TSTTO
        i_tzone = CET
      IMPORTING
        e_datlo = date
        e_timlo = time
    I hope the above codes are correct. If yes, I have a doubt: TSEGE-EVEN_TSTFR & TSEGE-EVEN_TSTTO have different time in the same field, "Actual" & "Forecast", which is determined by TSEGE-EVEN_VERTY wherein 1 is Actual and 0 is Forecast. Is this something I would have to put in the code, or something that would work in the query "Selection Fields"?
    Thanks again!

  • Developing your own function modules

    In NW2004s SP20 WebAs 640C Under Unix
    for Customizating CCMS alert messages paramaters does not working... so I have to create own function modules
    Can anyone tell me how to create own function modules
    Travis

    refer this link:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db98fc35c111d1829f0000e829fbfe/content.htm
    Regards,
    Ravi

  • (c++) adding plugin functions

    Id like to make my program use plugins for certain functions, ideally it would load a .so file and then check if a certain function exists in it,
    if yes it uses the function in the plugin otherwise it uses its own function.
    Also id need to be able to access all (or atleast some specific ones) functions/global variables of the main program from within the function in the .so file.
    Is this doable somehow? if yes how? ^^
    Links to some guides etc would be neat as i havent found much usefull stuff about it yet.

    Since you are going to write it in C++ will you write it with classes? If you are going to do that, I have some code that uses dlopen and is written to handle classes. The code is used in a personal project which I am coding on, it will eventually be published. If you (or anyone else) is interested in the code for the module loading, I could upload it somewhere (I could have done that right now but it's on another computer that I own).

  • Adding our own function to sap standard function code.

    HI,
    My requirement is to add a functionality to icon(import) on alv application tool bar so that the customer get a popup message after data is transfered to excel.
    is that possible.
    else
    i want to know the procedure to pass header of my alv when i try to download using gui_download.
    here the problem is i am having 362 fields in my report.
    so passsing header for these many fields is immposible.
    when i use gui_download i am not getting header in my excel.
    i am not good at ASML_====.
    Pls help me.
    Any helpful ans will be rewarded.

    Declare two internal tables it_header for the header and it_downloads for data.
    data:begin of it_header occurs 0,
    string(100),
    end of it_header.
    <b>Perform Insert_header.
    Call Function GUI_DOWNLOAD
    exporting
    filename = c:xyz.xls
    filetype = DAT
    tables
    data_tab = it_download                 " itab with data
    fieldnames = it_header                  " itab with header info.
    exceptions
    if sy-subrc <> 0.
    endif</b>.
    <b>Form Insert_header.     " You can put some logic ie some loop here for    * all the fields.
    it_header-string = text-001.
    append it_header.Clear it_header.
    it_header-string = text-002.
    append it_header.Clear it_header.
    it_header-string = text-003.
    append it_header.Clear it_header.
    it_header-string = text-004.
    append it_header.Clear it_header.
    Endform</b>.

  • Newbie question... adding my own  function

    I am wanting to add a custom function so I do not have to retype code over and over. I an get something simple with one argument to work, but I need to figure out how to pass things like integers (or any second/third/fourth arguments). For example, something simple like this works:
    in the header file:
    - (NSString *)MyStringer:(NSString *)InputString; //want to add multiple arguemnts
    In the M File:
    - (NSString *)MyStringer:(NSString *)InputString{ //add a int here for example
    NSString *addString=InputString;
    for (int i=1;i<3;i++) // replace the number 3 here with the argument from two lines above here
    InputString= [InputString stringByAppendingString:addString ];
    return InputString;
    and I can call that one by using this in the code somewhere:
    paddedString=[self MyStringer:[NSString stringWithString:@"asd"]]; //how to implement the second/additional argument(s) here.
    I am used to Windoze VB and VBA, where this is fairly easy. I am sure it is here once I get a good example one done. I just can't seem to get any examples online or in the forums to work, or find a good explanation. I can then create the supporting functions without a problem.
    thanks ahead of time,
    Jason

    Hi--
    Have I got this explanation right? I only used HM to prove to myself that it didn't have to be the same as the label portion.
    [self MyStringer:[NSString stringWithString:@"asd"] HowMany:11]
    You've got the idea.
    I'd like to make a couple of suggestions, though: take a look at Apple's Cocoa coding guidelines. It'll give you some pointers and tips on what they consider to be the best way to name methods, capitalization, keyword, etc. While you don't have to do it the way they suggest, it makes reading your code a lot easier if it looks like other peoples' code.
    Second, I'd suggest something a bit more "generic" that could be re-used for different purposes (like maybe you want to pad with a different character):
    - (NSString *)stringByAddingPrefix:(NSString *)prefixString toString:(NSString *)aString length:(int)length
    // empty string to pad out:
    NSString *emptyString = [NSString stringWithString:@""];
    // Foundation method:
    NSString *padString = [emptyString stringByPaddingToLength:length withString:prefixString startingAtIndex:0];
    // add the string to the end of the padding:
    NSString *paddedString = [padString stringByAppendingString:aString];
    // return the padded string:
    return paddedString;
    Then call it like this:
    // Create a string:
    NSString *myString = [NSString stringWithString:@"1234"];
    // add prefix padding:
    NSString *paddedString = [self stringByAddingPrefix:@"-" toString:myString length:3];
    NSLog(@"%@", paddedString);
    Note how my method name and label keywords are a bit more descriptive of what's actually happening.
    Also, I used existing Cocoa methods as much as possible, since I figure they're more reliable than what I could write.
    Finally, this is rather more advanced than you probably are thinking about right now, but something like this would be a perfect candidate to put into an addition to the NSString class. Additions are ways to add to a class. Then, instead of "self", your receiver would be the actual string:
    NSString *myString = [NSString stringWithString:@"1234"];
    NSString *paddedString = [myString stringByAddingPrefix:@"-" toString:myString length:3];
    That's even more obvious about what's going on, so keep that in the back of your mind as a possibility...
    charlie

Maybe you are looking for

  • "...not a valid Photoshop document" error when opening Mac cc file on PC

    I get a "Could not complete your request because it is not a valid Photoshop document." error message whenever I try to open up a PSD file created on a Mac using Photoshop CC on my PC using CC. Other people have been able to open the file from the sa

  • 10035 Waiting for Content Error?

    Hey guys was hoping for some help.  Running SCCM 2012 R2 on SQL 2008 R2 CU6.  I've been running SCCM since SMS 2003 so I'm not a total noob with it.  It started with running 2012 (no SP1), it just broke out of nowhere. and stopped working.  I needed

  • Upgraded to OS X Server, now users can't login

    I recently went to the Apple Store and worked with the guys there to upgrade from Lion Server to Mountain Lion and then to OS X Server. Following the upgrade I can see two users, administrator and a user. The user account will not login, it says "Can

  • Search in internal table utility

    Hi Experts, As per my requirement we need a utlity i.e a  class or F.M  which search for a "Word" or "Phrase" in fields of internal table and display the internal table output  based on there ranking. For example: Search term in internal table is:   

  • Re: Show On Demand Getting Cut Off By Commercials

    I am having the same issue trying to watch AMC's Humans on demand.  Right when it goes to a commercial break, the screen goes blank. If i leave it be, it exits with an error. Fast forward (which is available for this show) does not work. If i exit my