How to make a function call.
Hello ,
I tried to call the function in Form Calc but there are some error. can any one say the right syntax to be used.Please find example what i tried
if(x eq 1) then
values()
endif
func values()
xfa.host.messageBox("test")
endfunc
Kindly any one let me know where i went wrong
Best Regards,
Rakesh
Hi Rakesh,
If you look at page 966 of the XFA specification (http://partners.adobe.com/public/developer/xml/index_arch.html#xfa_28), then you will see how to decalre and call a function in FormCalc:
func MyFunction(param1) do param1*param1 endfunc // Declares a function
MyFunction(3) //Invokes the function, which returns 9
It looks like your previous FormCalc function was missing the "do" call.
Bear in mind that if you start putting functions in script objects, you will have to revert to Javascript.
Good luck,
Niall
Similar Messages
-
How to make a vedio call in windows mobile
sir iam using htc touch pro2 t7373 rhod100 i am use skype but i cant make vedio call how to make a vedio call in this mobile
Hi,
see: ADF Mobile: Start a phone call from app?
Frank -
How to make a conference call from an iPhone
How to make a conference call from an iPhone
http://manuals.info.apple.com/en_US/iphone_user_guide.pdf user manual
-
How to make a function return number(10,0) data type (ORACLE 10g)?
With 10g, how to make a function return number(10,0) data type?
here is the function, it returns a number type :
create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
BEGIN
If p_HistObjTable ='amPortfolio'
then v_Id:=p_LHISTOBJID ;
elsIf p_HistObjTable = 'amComputer' then
select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
else v_Id:=-99;
End If;
RETURN v_Id;
END Get_portfolio_Id3;
Thanks.
Message was edited by:
user631701create or replace FUNCTION Get_portfolio_Id3 (p_HistObjTable In Varchar2,p_LHISTOBJID IN NUMBER) RETURN view_cpu_STD_Asset.LPORTFOLIOITEMID%Type IS
v_Id view_cpu_STD_Asset.LPORTFOLIOITEMID%Type;
BEGIN
If p_HistObjTable ='amPortfolio'
then v_Id:=p_LHISTOBJID ;
elsIf p_HistObjTable = 'amComputer' then
select litemid into v_Id from smcdba.amComputer c where c.LCOMPUTERID=p_LHISTOBJID ;
else v_Id:=-99;
End If;
RETURN round(v_Id);
END Get_portfolio_Id3; -
i don´t know how to make a phone call whit my ipad...and how to senSeleneGMt a message? What do i need? or is it impossible?
You can't; not natively, anyway, since the iPad is not a phone. If you want to make a call, you'll need to use some third-party Voice-Over-IP service such as Skype.
I'm not sure what you're asking when you ask about sending a message. If you mean a text message, you can either use iMessage, which can send messages to other users also running iMessage, or you can look in the iTunes Store for SMS apps, a few of which are available. They use separate services to actually send the message and so require an Internet connection, either WiFi or 3G.
Regards. -
How to make this function module as RFC to get data from different system?
Hi
I am trying to use following function module . This function module is used to copy data from one cube to another cube within same system however I need a this should happen across two different system. How can I use this function module to make it remote call to different system and do the same function what it is doing ?
Name of function module -
RSDRT_INFOCUBE_DATA_COPY
Any help would be really helpful
AGHI,
let us say you want to copy the data of a cube in system A to a cube in system B .
1) create a RFC function module in system B (in this function module call the function module RSDRI_CUBE_WRITE_PACKAGE to update the data), this RFC function module should have same parametersa as RSDRI_CUBE_WRITE_PACKAGE .
2) write a program in system A .. read the data from the infocube using the function module RSDRI_INFOPROV_READ and call the RFC function module in system B that you have created..
for the details of the parameters to pass to these two function modules use the RSDRT_INFOCUBE_DATA_COPY and get the required code
Thanks
mahesh -
PL/SQL: How to make a function accessible to all users?
How can I make a function accessible to all users?
I have written a stored function called GET_NET_BALANCE.
I can run it but my users cannot.
I have tried the following, but my users still cannot
run the function:
GRANT EXECUTE ON GET_NET_BALANCE TO PUBLIC;
Thanks, EileenHi,
You can try creating a public synonym on the function so that it is accessible to all.
To get greater response.. please post your question at
PL/SQL
Regards,
Anupama -
How to make a sim call in ipad2
how to make a Sim call
iPad has no native telephone capability. You will need to use n app like FaceTime
or Skype utilizing wifi or data to make the call. FaceTime works only to other iOS
devices or Apple computers running appropriate versions of OS X. Skype and others
allegedly work independent of the the operating system used by caller and/or callee. -
How to use this function call function 'REUSE_ALV_COMMENTARY_WRITE' in alv
hi all
thanks in advance
how to use this function in alv programming
call function 'REUSE_ALV_COMMENTARY_WRITE'
why use and what purpose use this function plz tell me details
plz guide me
thanksHi
see this exmaple code where i had inserted a LOGO by useing this FM
*& Report ZTEST_ALV_LOGO
REPORT ztest_alv_logo.
TYPE-POOLS : slis.
*ALV Formatting tables /structures
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
DATA: gt_events TYPE slis_t_event.
DATA: gs_layout TYPE slis_layout_alv.
DATA: gt_page TYPE slis_t_listheader.
DATA: gs_page TYPE slis_listheader.
DATA: v_repid LIKE sy-repid.
*ALV Formatting work area
DATA: w_fieldcat TYPE slis_fieldcat_alv.
DATA: w_events TYPE slis_alv_event.
DATA: gt_bsid TYPE TABLE OF bsid WITH HEADER LINE.
INITIALIZATION.
PERFORM build_events.
PERFORM build_page_header.
START-OF-SELECTION.
*perform build_comment. "top_of_page - in initialization at present
SELECT * FROM bsid INTO TABLE gt_bsid UP TO 10 ROWS.
*perform populate_for_fm using '1' '3' 'BUKRS' '8' 'GT_BSID' 'Whee'.
*USING = Row, Column, Field name, display length, table name, heading
*OR
PERFORM build_fieldcat.
gs_layout-zebra = 'X'.
*top of page event does not work without I_callback_program
v_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = v_repid
i_structure_name = 'BSID'
i_background_id = 'ALV_BACKGROUND'
i_grid_title = 'This is the grid title'
I_GRID_SETTINGS =
is_layout = gs_layout
it_fieldcat = gt_fieldcat[]
it_events = gt_events[]
TABLES
t_outtab = gt_bsid.
Form..............: populate_for_fm
Description.......: Populates fields for function module used in ALV
FORM populate_for_fm USING p_row
p_col
p_fieldname
p_len
p_table
p_desc.
w_fieldcat-row_pos = p_row. "Row Position
w_fieldcat-col_pos = p_col. "Column Position
w_fieldcat-fieldname = p_fieldname. "Field name
w_fieldcat-outputlen = p_len. "Column Lenth
w_fieldcat-tabname = p_table. "Table name
w_fieldcat-reptext_ddic = p_desc. "Field Description
w_fieldcat-input = '1'.
APPEND w_fieldcat TO gt_fieldcat.
CLEAR w_fieldcat.
ENDFORM. " populate_for_fm
*& Form build_events
FORM build_events.
DATA: ls_event TYPE slis_alv_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_events.
READ TABLE gt_events
WITH KEY name = slis_ev_user_command
INTO ls_event.
IF sy-subrc = 0.
MOVE slis_ev_user_command TO ls_event-form.
APPEND ls_event TO gt_events.
ENDIF.
READ TABLE gt_events
WITH KEY name = slis_ev_top_of_page
INTO ls_event.
IF sy-subrc = 0.
MOVE slis_ev_top_of_page TO ls_event-form.
APPEND ls_event TO gt_events.
ENDIF.
ENDFORM. " build_events
*& Form USER_COMMAND
When user command is called it uses 2 parameters. The itab
passed to the ALV is in whatever order it currently is on screen.
Therefore, you can read table itab index rs_selfield-tabindex to get
all data from the table. You can also check r_ucomm and code
accordingly.
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
READ TABLE gt_bsid INDEX rs_selfield-tabindex.
error checking etc.
SET PARAMETER ID 'KUN' FIELD gt_bsid-kunnr.
CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.
ENDFORM. "user_command
*& Form top_of_page
Your own company logo can go here if it has been saved (OAOR)
If the logo is larger than the size of the headings in gt_page,
the window will not show full logo and will have a scroll bar. Thus,
it is a good idea to have a standard ALV header if you are going to
use logos in your top of page.
FORM top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_page
i_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "top_of_page
*& Form build_fieldcat
*Many and varied fields are available here. Have a look at documentation
*for FM REUSE_ALV_LIST_DISPLAY and REUSE_ALV_FIELDCATALOG_MERGE
FORM build_fieldcat.
w_fieldcat-fieldname = 'BUDAT'.
w_fieldcat-seltext_m = 'Dte pst'.
w_fieldcat-ddictxt(1) = 'M'.
w_fieldcat-edit = 'x'.
Can change the position of fields if you do not want them in order
of the DDIC or itab
w_fieldcat-row_pos = '1'.
w_fieldcat-col_pos = '10'.
APPEND w_fieldcat TO gt_fieldcat.
CLEAR w_fieldcat.
ENDFORM. " build_fieldcat
*& Form build_page_header
gt_page is used in top of page (ALV subroutine - NOT event)
*H = Header, S = Selection, A = Action
FORM build_page_header.
For Headers, Key is not printed and is irrelevant. Will not cause
a syntax error, but is not used.
gs_page-typ = 'H'.
gs_page-info = 'Header 1'.
APPEND gs_page TO gt_page.
gs_page-typ = 'H'.
gs_page-info = 'Header 2'.
APPEND gs_page TO gt_page.
For Selections, the Key is printed (bold). It can be anything up to 20
bytes. It gets printed in order of code here, not by key value.
gs_page-typ = 'S'.
gs_page-key = 'And the winner is:'.
gs_page-info = 'Selection 1'.
APPEND gs_page TO gt_page.
gs_page-typ = 'S'.
gs_page-key = 'Runner up:'.
gs_page-info = 'Selection 2'.
APPEND gs_page TO gt_page.
For Action, Key is also irrelevant.
gs_page-typ = 'A'.
gs_page-info = 'Action goes here'.
APPEND gs_page TO gt_page.
ENDFORM. " build_page_header -
How to make a function take a specific group of constants
I know i asked this before, maybe a year ago, but I totally forgot how to do it, and I haven't been programming much lately. But I was wondering if somebody can tell me how to make a certain function take specific constants. For example there are java functions, of which I can not remember that will only take certain values. So the function might look like:
public getInfo(String INFONAME){}Where INFONAME has to be like one of two names or something, and they are constants that are defined somewhere else. If anybody knows what I mean by this, and knows how to create functions like that please let me know. Thank you.here's an overkill,
import java.util.*;
abstract class DoWhatever {
public static Hashtable ht = null;
public static Object DoWhat( String s, Object obj ) {
if( null == ht ) {
ht = new Hashtable();
ht.put( ThisDoWhatever.NAME, new ThisDoWhatever() );
ht.put( ThatDoWhatever.NAME, new ThatDoWhatever() );
return ( (DoWhatever) ht.get( s ) ).doWhatever( obj );
public abstract Object doWhatever( Object obj );
class ThisDoWhatever extends DoWhatever {
public final static String NAME = "this";
public Object doWhatever( Object obj ) {
System.out.println( NAME );
return null;
class ThatDoWhatever extends DoWhatever {
public final static String NAME = "that";
public Object doWhatever( Object obj ) {
System.out.println( NAME );
return null;
public class DoThisOrThat {
public static void main( String[] args ) {
DoWhatever.DoWhat( args[ 0 ], null );
} -
How to make a function in separate thread
i need to make a function that is running in a separate thread
Thank's in advanceThank's
but in my program i have a main class which is a server it runs forever.
from the main class when i call a function it runs in a separate thread and returns the result to the callee and the main function continue it's work
class server
//this function when called must be in separate thread
public int function(int x)
//there could be wait here or sleep
return x*2;
public static void main(String[] args)
// Run RMI server
i hope u understand me!!!
Thank's -
Mailing list form, how to make it functional?
I'm trying to add the typical "Join our Mailing List" form into a website where users can submit their email addresses. I've built the form and now I need to make it functional. I don't know a lick of php or databasing, and after investigating it on the web and the forum there seems to be a bunch of different answers and I'm not sure which direction to go in. Is there an easy way to do this with a premade script somewhere? Would I have to get it from the company that's hosting the site? How do I implement it?
Thanks in advance!!!!Awesome, thanks so much for the help CanonBoy. So I can use this for both my mailing list form and my contact message form? I opened Dreamweaver and on the contact page I set the form to this:
<div id="ContactForm">
<form id="form1" name="form1" method="post" action="contact.php">
<table width="300">
<tr>
<td colspan="2"><span class="MainText">All information will be kept private</span></td>
</tr>
<tr>
<td width="61"><span class="MainText">Name:</span></td>
<td width="227"><span class="MainText">
<input name="Name" type="text" id="Name" size="25" />
</span></td>
</tr>
<tr>
<td><span class="MainText">Email:</span></td>
<td><span class="MainText">
<input name="Email" type="text" id="Email" size="25" />
</span></td>
</tr>
<tr>
<td><span class="MainText">Phone:</span></td>
<td><span class="MainText">
<input name="Phone" type="text" id="Phone" size="25" />
</span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td><span class="MainText">Message:</span></td>
<td><span class="MainText">
<textarea name="Message" id="Message" cols="23" rows="5"></textarea>
</span></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Clear" type="reset" class="MainText" id="Clear" value="Clear" />
<input name="Submit" type="submit" class="MainText" id="Submit" value="Submit" /></td>
</tr>
</table>
</form>
</div>
Do I have to change the form ID and the name in line 2? And also I'm not sure what you meant about the hidden field, what exactly do I copy and paste and where do I put it? And is there a generic form on the tectite site I can add the client's email address to, change it to contact.php and upload it? Thanks big time!!! -
How to make a SOAP call using the PI 7.1
Hi All,
Can you please tell me how can we make a SOAP call using the PI 7.1?
Thanks in advanceHello Shweta,
Could you please clarify your question? Do you mean you need to call some business system from PI via SOAP? Or do you need to test integration model using SOAP client?
If the requirement is to make a SOAP call to PI (send SOAP request to PI system), please refer to the guide which Stefan suggested in his post. The general procedure is the following:
1. generate concrete WSDL in PI (you can do it via PI's Integration Directory);
2. import generated WSDL to SOAP client (e.g. XML Spy described in the guide or soapUI which is free SOAP client);
3. create SOAP request message in the SOAP client and send it to the endpoint (in this case, it will be sent to PI).
This is general procedure for making SOAP calls to SAP PI using external SOAP clients. Please advise if specified steps should be described in more details or if there are any questions from your side regarding them.
If the question is about calling business system from PI via SOAP, then please refer to SAP Help, configuration of SOAP receiver::
http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
My regards,
Vadim -
TS4268 How to make cellular video call in iPhone 4S
How to make video call in my iPhone 4S
Did you purchase from an authorized source? I ask, because FaceTime is banned in some Middle East countries, and if you purchase from a non-authorized source, odds are you're gonna get an iPhone that originated in a country where FaceTime is banned. I suspect this is the case with your phone.
-
How to make a video call to a person's i phone from face time on an iMac
I want to use face time to make a video call from my i mac to an i phone. "help" is not informative.
The following may help:
http://www.imore.com/how-make-facetime-call-your-mac
https://www.apple.com/support/mac-apps/facetime/
Maybe you are looking for
-
Images not displayed at all in Lightroom 1.4.1
Hi, I have recently had a problem with Lightroom where all the images are not displayed. The grey tiles are displayed with the filename and the keywords all show up in the right menu however I cannot see any of the images in any module. Also the grid
-
SharePoint Online switching to mobile view when attempting to add user permissions
Hello, I am having a very weird problem that just started out of no where. It happens when I go to the Site Settings of my site collection and click on Site Permissions. When I click Grant Permissions to try to add users, the browser will immediately
-
N97 - Maps 3.04 - difficult to create a multi-poin...
On the face of it, the fact that Maps 3.04 can allow a multi-point, ordered route to be created is a good thing. However, I find building such routes to be difficult, particularly where they involve a mix of places stored as Favourites and places fro
-
Moving keys in a subframe grid?
hey, we have to move a lot of rotoscoped masks to match a reversed field order (rotoscoped with lower first but our client realized that he made an error and needs upper field first - gnarks!) is this possible by any chance? cheers, sebastian
-
Issues with iPhone 5 ringing home
I wonder if someone can help! I'm cabin crew and have been trying to use my iPhone 5 and ring home to the uk and keep getting sorry this function is not available! My phone is in flight safe mode till we land and when I ask the phone to search for si