Getting the Fild name of the output
Hi Friends,
Right now I am working with interactive reporting.
and the output contains the fileds CARRID,CONNID,SEATSMAX and -
and s on.
whenever I clik on a reord, in output screen, I should get the name of the filed and When I click Sort button in toolbar, the output should be sorted according to the which I have selected.The selected filed could be anything like CARRID OR CONNID or SEATMAX.
Kindly, help me how I can capuer the fied which user has Cliked.
Regards,
Xavier.P
Use GET CURSOR FIELD [field_properties] .
Here field properties can be Value or length etc.
To get the field name you need to use VALUE.
So the syntax will be :
GET CURSOR FIELD VALUE val
The addition VALUE assigns the formatted content of the output area on which the cursor is positioned to the data object val. For val, a character-type variable is expected.
Similar Messages
-
Get All instance names in the stage
hi,
is there any way to get all instance name of the objects presents on the stage ? trace them for example
thank youthank you, it's the correct answer but i still can't solve my problem ,
the thing is that am using a code from http://www.freeactionscript.com that make enemie follow the player, but i need to do some modification, i need to detect collision between enemies so they will not get the one into the other and the thing that i cannot found their instance name, even when i used your function i only get "player_mc : _level0.player_mc" at the output,
here is the code, i will be really greatful if you can find a way to help me solve this problem .
ps :
am trying to write my own code that make enemie follow the player, coz this one looks very complicated
thank you
the code :
* Game Enemy AI Behavior - Run Away & Follow Player
* Version: 1.0
* Author: Philip Radvan
* URL: http://www.freeactionscript.com
var enemiesArray:Array = new Array();
var radians:Number = 180/Math.PI;
createEnemies(5, "typeA", "e1");
createEnemies(5, "typeB", "e2");
createEnemies(5, "typeC", "e3");
// createEnemies(number of enemies, behavior)
// use ex: createEnemies(10, "slow", "myLinkedMovieClip);
function createEnemies(enemyAmount:Number, enemyBehavior:String, enemyLibraryClip:String):Void
//run a for loop based on the amount of enemies
for(var i = 0; i < enemyAmount; i++)
//set temporary variable that will hold the new enemy attributes
var tempEnemy:MovieClip = _root.attachMovie(enemyLibraryClip, "enemy"+_root.getNextHighestDepth(),_root.getNextHighestDepth())
//give new enemy a random x/y position based on stage width/height
tempEnemy._x = random(Stage.width);
tempEnemy._y = random(Stage.height);
tempEnemy._rotation = random(360);
//set enemy behavior
if(enemyBehavior == "typeA")
//define enemy characteristics
tempEnemy.speed = 1
tempEnemy.turnRate = .05
tempEnemy.agroRange = 200;
tempEnemy.mode = "follow"
else if(enemyBehavior == "typeB")
//define enemy characteristics
tempEnemy.speed = 4
tempEnemy.turnRate = .5
tempEnemy.agroRange = 200;
tempEnemy.mode = "follow"
else if(enemyBehavior == "typeC")
//define enemy characteristics
tempEnemy.speed = 1
tempEnemy.turnRate = .2
tempEnemy.agroRange = 100;
tempEnemy.mode = "run"
//define variables that are used to calculate following
//*don't change these*
tempEnemy.distanceX = 0;
tempEnemy.distanceY = 0;
tempEnemy.distanceTotal = 0;
tempEnemy.moveDistanceX = 0;
tempEnemy.moveDistanceY = 0;
tempEnemy.moveX = 0;
tempEnemy.moveY = 0;
tempEnemy.totalmove = 0;
//add new enemy to array
enemiesArray.push(tempEnemy)
//Update enemies function
function updateEnemies():Void {
//run a for loop based on the amount of enemies
for(var i = 0; i < enemiesArray.length; i++)
//set temporary variable that will hold the new enemy attributes
var tempEnemy:MovieClip = enemiesArray[i];
//run follow function with temporary enemy as the follower
updatePosition(tempEnemy, player_mc);
// updatePosition(follower, target)
// use ex: updatePosition(myEnemyMovieClip, playerMovieClip)
function updatePosition(follower:MovieClip, target:MovieClip) {
//calculate distance between follower and target
follower.distanceX = target._x-follower._x;
follower.distanceY = target._y-follower._y;
//get total distance as one number
follower.distanceTotal = Math.sqrt(follower.distanceX * follower.distanceX + follower.distanceY * follower.distanceY);
//check if target is within agro range
if(follower.distanceTotal <= follower.agroRange){
//calculate how much to move
follower.moveDistanceX = follower.turnRate * follower.distanceX / follower.distanceTotal;
follower.moveDistanceY = follower.turnRate * follower.distanceY / follower.distanceTotal;
//increase current speed
follower.moveX += follower.moveDistanceX;
follower.moveY += follower.moveDistanceY;
//get total move distance
follower.totalmove = Math.sqrt(follower.moveX * follower.moveX + follower.moveY * follower.moveY);
//apply easing
follower.moveX = follower.speed * follower.moveX / follower.totalmove;
follower.moveY = follower.speed * follower.moveY / follower.totalmove;
//move & rotate follower
if(follower.mode == "follow")
follower._x += follower.moveX;
follower._y += follower.moveY;
follower._rotation = Math.atan2(follower.moveY, follower.moveX) * radians;
else if(follower.mode == "run")
follower._x -= follower.moveX;
follower._y -= follower.moveY;
follower._rotation = (Math.atan2(follower.moveY, follower.moveX) * radians)+180;
//onEnterFrame that executes the updatePosition updateEnemies every frame
_root.onEnterFrame = function(){
updateEnemies();
//start/stop drag for player_mc
player_mc.onPress = function(){
startDrag(this);
player_mc.onRelease = function(){
stopDrag(); -
I just noticed this (in comparison to Internet Explorer): In IE, when you favorite a webpage, it uses the actual name of the webpage (for example, for this page, it would be "Ask a Question Firefox Help" as the bookmark name), but in Mozilla it uses the URL address as the bookmark name. I was wondering if it was at all possible to change my Mozilla settings in order to make it use the webpage name as the bookmark name instead of the URL address? I hope everyone understands what I'm getting at? If anyone can help me, I would really appreciate it. Thanks.
Does this happen with each bookmark?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Problems with bookmarks and history not working properly can be caused by a corrupted places.sqlite database file.
*http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
*https://support.mozilla.org/kb/Bookmarks+not+saved#w_fix-the-bookmarks-file
You can try to check and repair the places database with this extension:
*https://addons.mozilla.org/firefox/addon/places-maintenance/ -
Getting the variant name when the report program is run in background
Hi All,
How to get the variant name for the report program when run in background? My requirement is to create an email attachement with the name 'variant.XLS', where variant = selection screen variant, when the report program is run in background. The system field SY-SLSET holds the variant name only when run online.
Any pointers to this will be highly appreciated.
Thanks and regards,
Nilesh.Hello Nilesh,
Please find the algo:
1. Call the FM: GET_JOB_RUNTIME_INFO to get the background job details.
2. Select data from TBTCP using these details:
DATA:
FP_EVENTID TYPE BTCEVENTID
FP_EVTPARM TYPE BTCEVTPARM
FP_ACTIVE TYPE BTCXPGFLAG
FP_JOBCNT TYPE BTCJOBCNT
FP_JOBNM TYPE BTCJOB
FP_STEPCNT TYPE BTCSTEPCNT.
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
EVENTID = FP_EVENTID
EVENTPARM = FP_EVTPARM
EXTERNAL_PROGRAM_ACTIVE = FP_ACTIVE
JOBCOUNT = FP_JOBCNT
JOBNAME = FP_JOBNM
STEPCOUNT = FP_STEPCNT
EXCEPTIONS
NO_RUNTIME_INFO = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
* Error calling FM: GET_JOB_RUNTIME_INFO
ENDIF.
DATA: FP_VARIANT TYPE BTCVARIANT.
SELECT JOBNAME JOBCOUNT STEPCOUNT VARIANT
FROM TBTCP
INTO TABLE L_IT_TBTCP
WHERE JOBNAME = FP_JOBNM
AND JOBCOUNT = FP_JOBCNT
AND STEPCOUNT = FP_STEPCNT.
IF SY-SUBRC = 0.
SORT L_IT_TBTCP BY JOBNM JOBCNT STEPCNT.
READ TABLE L_IT_TBTCP INTO L_WA_TBTCP INDEX 1.
IF SY-SUBRC = 0.
FP_VARIANT = L_WA_TBTCP-VARIANT.
ENDIF.
ENDIF.
Hope this helps.
BR,
Suhas -
Hello Experts,
I follow the flightbooking tutorial to create a Material application to get material list. I can start the agentry server but when I connect to SAP server and get data, I face below issue
Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER
I check the parameters name in SAP Agentry Config panel, all are correct. Why cannt it get the data. Do I have to add anything in javaBE.ini? Please help me. Thank you very much.
My javaBE
[HOST]
server=be1.vdc.csc.com
APPNAME=ZCH_MATERIALLIST
[CLIENT_NUM]
CLIENT=800
[SYSTEM_NUM]
SYSNUM=01
[LOGON_METHOD]
; USER_AUTH if standard UID/Password authentication is used
; USER_AUTH_GLOBAL if pooled connections using single UID/Password is used
; USER_AUTH_GROUP if UID/Password authentication with SAP Message Server
; (load balancing) is used
LOGON_METHOD=USER_AUTH
[GLOBAL_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GLOBAL
; uses a pool of connections to the SAP backend all utilizing a single
; UID/password
UID=
UPASSWORD=
SHAREDCONNECTION=0
GET_PERSONNEL_INFO=
[SERVICE_LOGON]
ENABLED=true
UID=hngu3
UPASSWORD=xxxxxxx
UPASSWORDENCODED=false
[GROUP_LOGON]
; referenced when LOGON_METHOD=USER_AUTH_GROUP
; individual user authentication using an SAP Message Server which distributes
; client connections among a "group" of SAP application servers based on load
; balancing criteria
; host name or IP address of SAP Message Server
MESSAGE_SERVER=
GROUP_NAME=
SYSTEM_ID=
CLIENT=
[LANGUAGE]
LANG=EN
[LOGGING]
Level=4
[REQUIRED_BAPI_WRAPPER]
com.syclo.sap.bapi.LoginCheckBAPI=/SYCLO/CORE_SUSR_LOGIN_CHECK
com.syclo.sap.bapi.RemoteUserCreateBAPI=/SYCLO/CORE_MDW_SESSION1_CRT
com.syclo.sap.bapi.RemoteParameterGetBAPI=/SYCLO/CORE_MDW_PARAMETER_GET
com.syclo.sap.bapi.SystemInfoBAPI=/SYCLO/CORE_SYSTINFO_GET
com.syclo.sap.bapi.ChangePasswordBAPI=/SYCLO/CORE_SUSR_CHANGE_PASSWD
com.syclo.sap.bapi.CTConfirmationBAPI=/SYCLO/CORE_OUTB_MSG_STAT_UPD
com.syclo.sap.bapi.DTBAPI=/SYCLO/CORE_DT_GET
com.syclo.sap.bapi.GetEmployeeDataBAPI=/SYCLO/HR_EMPLOYEE_DATA_GET
com.syclo.sap.bapi.GetUserDetailBAPI=/SYCLO/CORE_USER_GET_DETAIL
com.syclo.sap.bapi.GetUserProfileDataBAPI=/SYCLO/CORE_USER_PROFILE_GET
com.syclo.sap.bapi.PushStatusUpdateBAPI=/SYCLO/CORE_PUSH_STAT_UPD
com.syclo.sap.bapi.RemoteObjectCreateBAPI=/SYCLO/CORE_MDW_USR_OBJ_CRT
com.syclo.sap.bapi.RemoteObjectDeleteBAPI=/SYCLO/CORE_MDW_USR_OBJ_DEL
com.syclo.sap.bapi.RemoteObjectGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteObjectUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteReferenceCreateBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_CRT
com.syclo.sap.bapi.RemoteReferenceDeleteBAPI=/SYCLO/CORE_MDW_USR_KEYMAP_DEL
com.syclo.sap.bapi.RemoteReferenceGetBAPI=/SYCLO/CORE_MDW_SESSION_GET
com.syclo.sap.bapi.RemoteReferenceUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.RemoteSessionDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserDeleteBAPI=/SYCLO/CORE_MDW_SESSION1_DEL
com.syclo.sap.bapi.RemoteUserUpdateBAPI=/SYCLO/CORE_MDW_SESSION_UPD
com.syclo.sap.bapi.TransactionCommitBAPI=WFD_TRANSACTION_COMMIT
com.syclo.sap.bapi.SignatureCaptureBAPI=/SYCLO/CS_DOBDSDOCUMENT_CRTHi Tahir, please help me check the log below
Agentry Runtime Worker Thread###throwExceptionToClient::begin |
Agentry Runtime Worker Thread###throwExceptionToClient::com.syclo.sap.material.steplet.MaterialSteplet::throwExceptionToClient::397::MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER |
Agentry Runtime Worker Thread###Exception: 17:15:35 06/17/2014 : 20 (Agentry3), Java Business Logic Error (com.syclo.agentry.BusinessLogicException: MaterialSteplet - Error in getting the BAPIWrapper name from the ini file or SAP mobile configuration. Please check the ini file or the mobile configuration for the bapi key (com.syclo.sap.material.bapi.materialbapi) either in sections BAPI_WRAPPER or REQUIRED_BAPI_WRAPPER), |
Agentry Runtime Worker Thread###loggedOut::begin |
Agentry Runtime Worker Thread###HNGU3: SESSION END |
Agentry Runtime Worker Thread###BAPI::begin |
Agentry Runtime Worker Thread###create::nulled repository::created new repository |
Agentry Runtime Worker Thread###create::/SYCLO/CORE_MDW_SESSION1_DEL Connection ID: com.sap.mw.jco.JCO$Client@2656ed99 |
Agentry Runtime Worker Thread###create::Function /SYCLO/CORE_MDW_SESSION1_DEL created | -
Dear Expert,
I have one requirement like to read the selected workset name in portal by the current user.I have read two documents regarding how to retrieve the PCD contents (iViews, Pages, Worksets and Roles) and its properties like Created by, Changed by, Last changed by and others using PCD API.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6112ecb7-0a01-0010-ef90-941c70c9e401?overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/508baf88-9335-2d10-efa6-c6ad61e5fc4b?quicklink=index&overridelayout=true
But I am not able to understand how to get the specific name of the workset which is currently selected by the user.Can you please help me.
I am using portal 7.0.
Thanks & Regards,
PatralekhaHi Expert,
I found that we can use Interface INavigationHelperService to read Portal Role selected by user at runtime from http://scn.sap.com/thread/52194
But this class is available in SAP NetWeaver 7.30 Enterprise Portal .
But in SAP NetWeaver 7.0 Enterprise Portal that interface is not available.
INavigationService is available there.
But didn't get any proper discussion on this interface for the same requirement.
Can you please help me.
Thanks & Regards,
Patralekha -
When syncing pictures from my computer to my I-Phone I get 2 copies of the pictures, 1 in the Photo Library and another in a library with the same name as the folder I put pictures in to put on the phone. This started after I upgraded to ios5. I have tried re-installing I-Tunes. I have not reset the phone. My main concern is the amount of memory pictures take up on the phone. It's not a problem now but could be in the future. Any Ideas on why this happening?
It has always been this way. it was never different. This is how the iphone handles photos - always has.
There are NOT two copies, There are simply two ways to access the very same photos. All synced photos will ALWAYS be under Photo Library ( you can look at all photos at once this way or do a slideshow of all photos). Those very same photos can also be accessed from the individual folders so you can show or slideshow just that folder.
Just as a book can be in the library and in the fiction section, there is only one book/photo. -
For some artists in my Music app on my I-phone, the songs do not appear when I search by the artist. However, if I search the album name, all the songs show. How do I get the songs to show under songs?
Hi Spam_Valley,
I understand that you are having issues with your music displaying correctly. This may be an issues with the metadata stored within that song, and iTunes interpretation of that info.
We may need to repair this. See the following resources for information:
iTunes 10 for Windows: If song titles don’t appear correctly
http://support.apple.com/kb/PH1468
Fixing Incorrect Song or Album Listings in iTunes
http://support.apple.com/kb/TA24677
Thanks,
Matt M. -
How to get the column names of the table into the Dashboard prompt
how to get the column names of the table into the Dashboard prompt
Thanks & Regards
Kishore PHey john,
My requirement is as follows
I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
My pivot table looks like this
COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
---------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK REGION DOLLARS DOLLARS DOLLARS DOLLARS
1 CENTRAL 10 20 30 40
2 SOUTHERN 10 30 30 70
3 EASTERN 20 20 20 60
4 WESTERN 10 20 30 40
When i select the District in column selector
Report has to display rank based on Total Sales by District. i.e
------------------------------------------------- JAN 2009 FEB 2009 MAR 2009
RANK DISTRICT DOLLARS DOLLARS DOLLARS DOLLARS
for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
do you have any solution for this?
http://rapidshare.com/files/402337112/Presentation1.jpg.html
Thanks & Regards
Edited by: Kishore P on Jun 24, 2010 7:24 PM
Edited by: Kishore P on Jun 24, 2010 7:28 PM -
Get the variant name of the job shceduled in the Background
Hello All,
I am shcduling printout of the Payment Document from F110 transaction code in background.
My requirement is to get the variant name.
F110 create background job for printing and when i debug it the value of sy-SLSET it is coming some
junk value like &000000012.
I can not schedule this job from SM36. I have to go for F110 only.
Is there any way to get the variant name of the background job.
Kindly help.
Regards
SachinHi,
I am running F110 by maintaning three variant at the same time.
So my program will run three times for these three variant.
Depending upon the variant i have to perform some validations.
So I want to know the variant name for each one run.
I am maitaing the variant but when i checked the system field sy-SLSET it is coming some junk value '&000000013'.
How to get the variant name from this.
Regards
Sachin Yadav -
When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?
When downloading, previously Firefox would show a number at the end of the file name (renaming the file by adding a number) showing that I had already downloaded a file at least once. Now that isn't happening. How do I get that feature back?
-
Getting the domain name of the Client PC using WebUtil
Hi Guys,
Is there a way I can find the domain name of the computer running the forms using webutil.
I use WEBUTIL_CLIENTINFO.GET_HOST_NAME to get the client computer name. I would also need the domain name.
Thanks!
AnandTry this:
message(CLIENT_WIN_API_ENVIRONMENT.GET_ENVIRONMENT_STRING('USERDOMAIN'));I believe if no domain is defined, it will return the host name. Also, this obviously will only work on Windows clients. -
How to get the display name of the dropdownlist?
How can i get the display name of the dropdownlist.
I want to have value as other data not the same as display name.
In that case is there any easy way to get the display name of the selection from the dropdownlist.I usually just use a hashmap to store the value and label, if I want to retrieve the label again later.
HashMap bleh = new HashMap();
bleh.put(dropDownValue, "Drop Down Label"); //Item value (any object), Item Label (String)
Iterator it = bleh.keySet().iterator();
while (it.hasNext()) {
Object key = it.next();
SelectItem selectItem = new SelectItem(key, bleh.get(key));
//And then later, when you want to retrieve the label
bleh.get(itemValue); //The item value of the label you wantThe value is easy to get because the selected item(s) from the list will be set to the value(s) the user selected. You should have a getter in your bean for that.
CowKing
Message was edited by:
IamCowKing -
Can you get the file name of the current executing TSQL script?
Can you get the file name of the current executing TSQL script? I wrote entries to a generic log file and would like to include the script name.
Okay, So What you can do is
1. Read get the version from your database and redirect it to a text file(SQLCMD outout can be directed to text file using -o option or windows redirection operator >)
2. Now you can read this value from the text file either inside a batch file or a powershell script and decide what operations you can do.
Satheesh
My Blog |
How to ask questions in technical forum -
How to get the full name of the Account Owner?
Hi,
I would like to ask if there's a way to display the full name of the Account Owner in a report where the subject area is Opportunity? Currently, the Username (under Owned By User) which displays the full name is equal to the Opportunity Owner.
Thanks,
TeenaHi Cameron,
Thanks again.
Currently, I have a report under Opportunity history where the following fields are being shown:
- Account's Country
- Opportunity Owner (Owned By User - gives me the full name)
- Account Name
- Opportunity Name
- Metrics field (Revenue, Volume. etc.)
- Close Date
- some custom fields
The users want to see the Account Owner so I added this field but it's showing the owner's alias. My question is, in using the "Combine with Similar Analysis", can I display all the values retrieved by the Opportunity report and get the value of 'Owned By User' in the Account report?
I have tried combining the two reports but the values are derived from the driving report which is Opportunity. How can I get the value/format of the field in the Account report?
Teena
Maybe you are looking for
-
Limitation on source group with services using ip address range
Hello, I have an interface on CSS which I regard as public and another interface I regard as private. On the private interface is a server farm with private ip addresses. Since the server admin guys insisted the servers need to access internet just f
-
SharePoint:SPShortcutIcon not working for subsites in IE (but works in Chrome)
All: I'm trying to update the default FavIcon.ico on my share point site by adding a new icon in "Style Library" and adding the following line in my master page: <SharePoint:SPShortcutIcon runat="server" IconUrl="/Style%20Library/Images/MyFavIcon.ico
-
How can i get solstic for Solaris8 on x86
Anybody will tell me how can I get Solstic for solaris 8 on x86? Also can I get Veritas volume manger for Solaris 8 on x86? Thanks
-
Getting User Settings from One MBP to another MBP
Scenario: I've got two 2011 MBP 13" 2.7ghz 500GB Hybrid SSD 8GB RAM laptops. On one of them, the hard drive became unrepairable, so in order to fix, I transferred all of my data via thunderbolt from the unrepairable hard drive to the other MBP's ha
-
At that moment, Ted realizes that he had better get a move on if he too hopes to find true love. Helping him in his quest is Barney (Neil Patrick Harris), a friend with endless, sometimes outrageous opinions, a penchant for suits and a foolproof way