Can you change the value of a variable that is reset by a parameter?
Sorry if this is simple but I just crashed a package and can't do an autopsy. I suspect I sent it into an infinite loop. I know you can't change the value of any passed in parameters. What I tried to do was have the parameter set the value of a variable
and then I tried to change the value of the variable. Is that even allowed?
I was trying to do this:
MyCheckVariable = MyParameter (which equals true)
(some cool stuff happens)
MyCheckVariable = False
I hit F5 and my package turned into the Energizer Bunny. Is the way I try to reset the variable the culprit?
This is a prototype so I just created a project parameter and set it to true. In the real world the parameter will be used to control an optional part of the process because on a re-run after error that part doesn't have to be ran again.
So when I say MyCheckVariable = MyParameter (which equals true) in reality what I actually have is in the variables window I'm using an expression and it looks like this in the variables window
name = runDownload
Scope = Package
Data Type = Boolean
Value = True (but greyed out)
Expression = @[$Project::param_runDownload]
Similar Messages
-
Can you change the value of app_user?
can you change the value of app_user?
Hi Scott,
Thanks for being patient.
A lot of the reports are based on personal information tied to the username. so on my reports I use app_user to pull the information. the app is a production app so when problems arise a lot of the time is user error but the users are in some other state so i need a way to look at the same thing they are looking at. I need to be able to sign in as them but since the app uses sso they cannot give me their corporate passwords. when i changed the value of g_user it changes but only for the scope of the region that i changed it in. it does not persist for the session.
Thanks Fernando -
Can we change the value of a variable in the driver program from sapscript?
Hello Experts,
I am currently developing a form wherein I need to change the value of a variable defined in the standard
driver program through the sapscript form. Unfortunately, I cannot customize this standard program since this is used by many other
subsidiaries. So, is there anyway that I can change a variable defined in the driver program via sapscript?
I tried to use a PERFORM to change its value but it is not working.
I hope you can help me guys. Thank you and take care!SAP SCRIPT:
/: PERFORM GET_ATTNDEE_INFO IN PROGRAM ZHR_TRNG
/: USING &PPVAR-EOBJD&
/: CHANGING &ATTND&
/: ENDPERFORM
Executable Prog.:
REPORT ZHR_TRNG.
FORM GET_ATTNDEE_INFO TABLES IN_PAR STRUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA : LOC_CODE(8),
WF_NAME LIKE PA0001-ENAME, "----Location Code
WF_SOBID LIKE HRP1001-SOBID. "----Business Event Code
DATA: BEGIN OF ITAB_ECODE OCCURS 0,
ECODE(8),
END OF ITAB_ECODE.
DATA: NAME1 TYPE STRING.
READ TABLE IN_PAR INDEX 1.
LOC_CODE = IN_PAR-VALUE.
SELECT SOBID FROM HRP1001 INTO WF_SOBID
WHERE OBJID = LOC_CODE AND OTYPE ='E' AND PLVAR = '01' AND SCLAS = 'P'.
APPEND WF_SOBID TO ITAB_ECODE .
ENDSELECT.
IF SY-SUBRC = 0.
LOOP AT ITAB_ECODE.
SELECT SINGLE ENAME FROM PA0001 INTO WF_NAME
WHERE PERNR = ITAB_ECODE-ECODE ." AND ENDDA >= '31.12.9999' .
CONCATENATE 'Mr ' WF_NAME ',' NAME1 INTO NAME1.
IF SY-SUBRC = 0 .
OUT_PAR-NAME = 'ATTND'.
OUT_PAR-VALUE = NAME1.
APPEND OUT_PAR.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "GET_USR_INFO -
Can you change the wording of a text that someone sent you ?
my sister sent someone a text , they in turn showed me on their phone with her name/number at the top of the feed to prove she said something to this person about this certain subject . She is denying everything in this text and said he altered it to show me what he wanted me to see . Can you change the wording on a text sent from someone in their feed with their name/number at the top of the feed? Does this make sense ? What I do know is , you can copy and paste and change the wording when sending that text to someone else , but he showed me his own phone with these incriminating texts.
No you can't
-
How to change the value of a variable in new ABAP debugger.
Hi Guys,
I can't change the value of a variable in the new ABAP debugger.. when I change its revert back to old value. but this is not the case with the old version. How to do this..
Cheers
SenthilHi,
1. Dobule click in the variable in the variable tab.
2. Click the Change icon in Detail.Dis.
3. enter the new value and press enter
Refer
[http://www.sapdb.info/new-abap-debugger/|http://www.sapdb.info/new-abap-debugger/]
[http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/84/1f624f4505144199e3d570cf7a9225/content.htm]
<removed_by_moderator_together_with_points>
Regards,
SB
Edited by: Julius Bussche on Jun 24, 2008 8:21 AM -
Change the value of a variable used in a View query
I am using JDeveloper 11g to develop a simple portlet application which displays data loaded from database. I am displaying the data by dragging the ViewObject from the AppModuleDataControl to the View.jspx page and selecting the option ADF Read-only Table. My ViewObject has a single variable :empId. Now is it possible to change the value of this variable with a value that comes from the request object. On the internet I found the following code:
FacesContext facesContext = FacesContext.getCurrentInstance();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, "#{data.AppModuleDataControl.dataProvider}",
Object.class);
ApplicationModule am = (ApplicationModule)valueExp.getValue(elContext);
ViewObject emplVO;
emplVO = am.findViewObject("EmployeeView1");
emplVO.setNamedWhereClauseParam("empId", "1");I have put this code in the public void processAction(ActionRequest request, ActionResponse response) method. However this does not work when I deploy it.
Does anyone know if the above code is correct in this case and if there is a better way how I can set this up?Hi there:
Did you add a break point and debug the code to see what is the value for the :empid parameters passed in to your view object?
If you are sure you have passed in the correct value for ":empid" parameter, then do the following:
String amDef = "yourAmDef";
String config = "yourConfig";
ApplicationModule am =
Configuration.createRootApplicationModule(amDef,config);
ViewObject emplVO;
emplVO = am.findViewObject("EmployeeView1");
emplVO.setNamedWhereClauseParam("empId", "1");
empVO.executeQuery();
which will execute your view object with the new bind variable value and refresh the view.
Please mark my answer as 'Correct' if it solves your problem, or 'Helpful' if it does.
Thanks,
Alex
Edited by: Alexbie on 27-Aug-2010 8:52 AM -
Probleme changing the value of a variable in movieclip from my scene
Hello,
i have a probleme changing the value of a variable in movieclip from my scene. i explain: I have combobox on my scene containing categories, and in the scene i load an xml file containing links to php files that work with the combobox.
Also on the scene i have a movieclip "filmstrip", inside this movieclip on the first frame i have a script loading the php file selected in the scene . i use a load() function with a variable "theUrl" inside like this : T.load(theUrl);.
In my scene i want to change the value of "theUrl" inside the movieClip filmstrip. I tried filmstrip.theUrl = url; But it doesnt work
the xml file
<?xml version="1.0" encoding="ISO-8859-1"?>
<slideshow>
<area title1="10 Last updated" link1="link1.php"/>
<area title1="special" link1="link2.php"/>
</slideshow>
here is the code on my scene:
var link1:Array = new Array();
var LINK:String;
var url:String;
var whoOn:Number;
whoOn=0;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
_root.link1.push(photos[i].attributes.link1);
url=link1[whoOn];
filmstrip.theUrl=url;//<<--HERE
x.load("category.xml");
var cbListener:Object = new Object();
cbListener.change = function(event_obj:Object) {
trace(select.selectedItem.label);
if (select.selectedItem.label == "Last updated") {
whoOn=0;
} else if (select.selectedItem.label == "Special") {
whoOn=1;
url=link1[whoOn];
filmstrip.theUrl=url; //<<-----HERE
select.addEventListener("change",cbListener);
here is the code inside the movie clip "filmstrip"
var T:XML = new XML();
T.ignoreWhite = true;
T.onLoad = function(xml) {
etc etc etc }
T.load(theUrl); //<<---HERE it still undefinedYESSSS . Thanks you very much Kglad it wotk i put all in a function inside the filmstrip function Tload(theUrl){etc ect}and in the root i call it like this filmstrip.Tload(theUrl); and it works
code in the root var link1:Array = new Array();
var LINK:String;
var url:String;
var whoOn:Number;
whoOn=0;
var x:XML = new XML();
x.ignoreWhite = true;
x.onLoad = function(success) {
var photos:Array = this.firstChild.childNodes;
for (i=0; i<photos.length; i++) {
_root.link1.push(photos[i].attributes.link1);
url=link1[whoOn];
theUrl=url;
filmstrip.Tload(theUrl);//<<--HERE
x.load("category.xml");
var cbListener:Object = new Object();
cbListener.change = function(event_obj:Object) {
trace(select.selectedItem.label);
if (select.selectedItem.label == "Last updated") {
whoOn=0;
} else if (select.selectedItem.label == "Special") {
whoOn=1;
url=link1[whoOn];
theUrl=url;
filmstrip.Tload(theUrl);//<<-----HERE
select.addEventListener("change",cbListener); -
Can i change the value of the discrete states in EMI_CB_CalculateResetStates?
can i change the value of the discrete states in EMI_CB_CalculateResetStates?
The help of LabVIEW said that calculates the values to which to reset the states of an external model in it.But it didn`t said how to reset the discrete states in it.EMI_GetNextDiscreteStates said it can be called only within the EMI_CB_CalculateDiscreteStates function.So if the discrete states can be reset in EMI_CB_CalculateResetStates,how to do it?
THXWhat is EMI_CB_CalculateResetStates? If I knew what you were asking about I could give a little more inteligent answer.
Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome -
How can I change the value of "colorscheme" parameter at runtime?
Hello all
Can I change the value of colorscheme at runtime ?
This parameter can be config in formsweb.cfg file.
I want to put this colorscheme as "User Preferences" in my application.
Please help me if some one knows how to achieve this.
From
Chirag Patel (Nairobi)Hi,
Try the following. This might help you.
Edit you Formsweb.cfg file with following code (add the code to your file):
[look1]
separateFrame=True
lookandfeel=Generic
[look2]
separateFrame=True
lookandfeel=Teal
[look3]
separateFrame=True
lookandfeel=Khaki
and save your file.
Now, when you call your form in the address bar look for " ? ". After " ? " add config=look1 now your form will take Genric look & feel.
or
config=Teal now your form will take Teal look & feel.
That's how you can change the look & feel at run time.
Hope that you understand what i want to say...... -
can't get the value from two variables when execute MDX : Anyone who can help ?
================================
with member [Measures].[APGC Replied Volume] as
([Measures].[Question],[Dim Replied By].[Replied By].&[APGC])
member [Measures].[APGC Moderated Volume] as
([Measures].[DashBoard Thread Number],[Dim Moderated By].[Moderated By].&[APGC])
member [Measures].[APGC Answered Volume] as
([Measures].[Question],[Dim Answered By].[Answered By].&[APGC])
SELECT
NON EMPTY
[Measures].[Forum Thread Number],
[Measures].[Reply In24 Hour],
[Measures].[Question],
[Measures].[Deliverale Minute],
[Measures].[Working minutes],
[Measures].[Answered],
[Measures].[1D Answer],
[Measures].[2D Answer],
[Measures].[7D Answer],
[Measures].[APGC Replied Volume],
[Measures].[APGC Moderated Volume],
[Measures].[APGC Answered Volume],
[Measures].[Avg HTR],
[Measures].[Avg HTA],
[Measures].[Total Labor]
} ON COLUMNS,
NON EMPTY { ([Dim Engineer].[SubGroup-Alias].[Alias].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS
FROM (
SELECT ( STRTOMEMBER(@FromDimTimeFiscalYearMonthWeekLastDateDay, CONSTRAINED) : STRTOMEMBER(@ToDimTimeFiscalYearMonthWeekLastDateDay,
CONSTRAINED) ) ON COLUMNS
FROM [O365]) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGSHi Ada,
According to your description, you can't get the member when using the strtomember() function in your MDX. Right?
In Analysis Services, while the member name string provided contains a valid MDX member expression that resolves to a qualified member name, the CONSTRAINED flag requires qualified or unqualified member names in the member name string. Please check if the
variable is a Multidimensional Expressions (MDX)–formatted string.
Reference:
StrToMember (MDX)
If you have any question, please feel free to ask.
Simon Hou
TechNet Community Support -
Can you change the legth of time (or number of rings) it takes for on iphone 4 to time out making an outgonig call?
Mostly it's to call in for radio contests. The Iphone is really good at making a quick call, but it seems to timeout after 15-20 rings. I realise this is a small thing, but free tickets is free tickets.
Most commenst I see is abotu incoling calls, not outging.
Thanks.No. You can't do this with any phone.
-
Can you change the DEFAULT VIEW of a published iCal to MONTH VIEW?
Can you change the DEFAULT VIEW of a published iCal to MONTH VIEW? I use this for a vacation rental and people never ever ever ever need to see anything but the MONTH VIEW. I hate having to tell them to click MONTH view at the top of the page. Is there a way to force it to always appear in MONTH? Thanks!
ddotcom,
Welcome to Apple Discussions.
Unfortunately no, but if they are repeat viewers why not tell them to change their view to "Monthly" using the "Preferences" button on that page?
;~) -
How Can You Change the Look and Feel of Charts in OBIEE 11g
How Can You Change the Look and Feel of Charts in OBIEE 11g?
Edited by: user11973122 on Jul 18, 2012 12:13 AMCheck these files
OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\s_blafp\viewui\chart\dvt-graph-skin.xml
OFM_HOME\Oracle_BI1\bifoundation\web\msgdb\views\dvtchart\obips.dvtchart.xml
OFM_HOME\Oracle_BI1\bifoundation\web\display\chartfontmapping.xml
Pls mark correct or helpful if helps -
How can you change your line access selection? I have found where you can change your plan selection, but can you change the line access fee or is that a set amount?
DIVAB71,
Great question. The line access fees for the account are a set amount and can not be changed unless you are going from a basic to a smartphone or vice versa. If you are wondering about adding the month to month discount if you are out of contract Ann154 has provided great information on how to access and add the feature.
LindseyT_VZW
Follow us on Twitter @VZWSupport -
Can you change the background in music player or d...
I have a N80
Can you change the background imge to your own? or is there any skins for the app?
or even beeter cn you display your album art on it?
cheers
My N80 is on Orange purchased in June 2006 firmware v 3.0617.06 03-05-2006
Cheers
AndyYou can change the music player background image but you need to make a theme. You can do it on a website just do a search as i'm not aloud to put a link on here to the site, as there are some adult themes there that peeps have made, and fair does this site has kids coming on it to. But it can be done m8 as mine is changed but you carnt do it from in the phone buy just changing the image.
Thx tingull
Phone History: NK702, NK6210, NK6310i, SamyV200, SamyD500, LG U880, SE W800i, NK N80, and now NK N95
Maybe you are looking for
-
Adding Navigation Buttons for Users of PDF Documents
The default for Acrobat Reader (and even the Pro version) seems to leave the Forward and Back navigation buttons OFF the Acrobat Reader tool bar. You have to deliberately go into the Tools - Customize Tools menu and turn on these two buttons in order
-
I have a 23.50 credit in my itunes account. I am signed into my account and I can hear the preview to the songs I want to purchase. When i click to buy the song nothing happens. It sometimes just plays the preview again. Help please.
-
How to transfer video and audio files from windows PC to new ipad?
How to transfer video and audio files from windows PC to new ipad?
-
LSO portal - offline player configuration
hi team, Could someone shed some light on LSO offline player post installation configuration. The standard installation guide doesn't talk anything about the offline player configuration. As per my knowledge, the offline player installed on the local
-
Attach document (pdf) to a contract in SAP
Hello, we use contracts (ME31K). We now scanned in documents and would like to attach them to the contracts in SAP. Is this possible? thanks