Filter using a variable instance by Papi
Hi I'm implementing a filter to get the instances in determinated activity by some variable instance attributes. Now I'm receiving all the instances of my activity and save them with a loop that validates by a variable instance, but I want to establish a property of the filter before my method receives all the instances. How can I achieve this?
+public List<Object> getInstanciasByIdFraccionamiento(Long idFraccionamiento){+
List<Object> listaObjetos = new ArrayList<Object>();
System.out.println("inicio");
+if (sesion == null) {+
+try {+
acceso = new AccesoPAPI();
acceso.setUp();
processService = ProcessService.create(acceso.getConfiguracion());
sesion = processService.createSession(acceso.getUserBPM(), acceso.getPasswordBPM(), null);
String idProceso = "/Promociones";
String idActividad = "AdministrarPromociones";
String tipoDato = "informacionPromocion";
Filter filtro;*
InstanceInfoList instancias;*
ProcessIdSet idProcesos;*
+//Establecer filtro de busqueda+
filtro = ProcessService.createFilter();*
SearchScope searchScope = new SearchScope(fuego.papi.ParticipantScope.ALL,fuego.papi.StatusScope.ALL, null);*
searchScope.setActivityScope(idActividad);*
searchScope.setStatusScope(StatusScope.ONLY_INPROCESS);*
filtro.setSearchScope(searchScope);*
filtro.setMatchAll(true);*
+// Busca instancias por actividad+
idProcesos = ProcessIdSet.create();*
idProcesos.add(idProceso);*
instancias = sesion.processesGetInstancesByFilter(idProcesos, filtro);*
+for (InstanceInfo informacionInstancia : instancias.toArray()) {+
informacionInstancia.getId();
DynamicObject objeto = (DynamicObject)informacionInstancia.getVariable("idFraccionamiento");
+if(objeto.longValue() == idFraccionamiento){+
System.out.println("long: " objeto.longValue());+
System.out.println("id is: " informacionInstancia.getId());+
System.out.println("nombre actividad es : " informacionInstancia.getActivityName());+
System.out.println("XML del Objeto BPM: " informacionInstancia.getVariable(tipoDato));+
+//Obtiene objeto BPM+
listaObjetos.add(informacionInstancia.getVariable(tipoDato));
+}+
+}+
sesion.close();
processService.close();
+}catch (AuthenticationException e) {+
System.out.println("No se pudo autenticar al participante " e.getParticipantId());+
e.printStackTrace();
+} catch (CommunicationException e) {+
System.out.println("No se pudo conectar al Servicio de Directorio");
e.printStackTrace();
+} catch (OperationException e) {+
System.out.println("No se pudo completar la operacion requerida");
e.printStackTrace();
+}catch (BatchOperationException e) {+
System.out.println("Could not perform the batch operation");
e.printStackTrace();
+}+
Just for context, here is what I'm trying to do:
I have jpegs in my library and I want to add them to the stage when they're needed, so just to add one image, here is the code I have:
var pic_1=new pic1(0,0);
var image_1:Bitmap=new Bitmap(pic_1);
material_mc.addChild(image_1);
I want to put the above into a loop so that I dont have to repeat those three lines for every image in my library like so:
var pic_1=new pic1(0,0);
var image_1:Bitmap=new Bitmap(pic_1);
var pic_2=new pic2(0,0);
var image_2:Bitmap=new Bitmap(pic_2);
var pic_3=new pic3(0,0);
var image_3:Bitmap=new Bitmap(pic_3);
var pic_4=new pic4(0,0);
var image_4:Bitmap=new Bitmap(pic_4);
var pic_5=new pic5(0,0);
var image_5:Bitmap=new Bitmap(pic_5);
var pic_6=new pic6(0,0);
var image_6:Bitmap=new Bitmap(pic_6);
var pic_7=new pic7(0,0);
var image_7:Bitmap=new Bitmap(pic_7);
the variable "picNum" is the total amount of images that in the library, each one exported as "pic1", "pic2", "pic3" respectively.
var picNum:uint=7;
var picCaller:uint=1;
var picMC:MovieClip = new MovieClip();
picMC=this["pic_"+picCaller];
for (var i:int = 1; i <= picNum; i=i+1)
var "pic_"+i = new image_i(0, 0);
var image:Bitmap = new Bitmap("pic_"+i);
Thanks so much for your help.
Similar Messages
-
Session variable using :GROUP variable in init block
I'd like to filter using session variable.
This session variaible should be build using :GROUP special session variable
I'd like do something like this (init block):
select case when instr(upper(':GROUP'), 'ADMINISTRATOR')>0 then 'Yes' else 'No' end from dual
but it seems to doesn't work properly (It means I have always 'No' value)
After investigation i did some simple test
initialization block like this:
select upper(':USER'),upper(':GROUP') from dual
set variables using above init block: UPP_USER and UPP_GROUP
next i did simple reques with 4 columns:
*1. VALUEOF(NQ_SESSION.USER)*
*2. VALUEOF(NQ_SESSION.GROUP)*
*3. VALUEOF(NQ_SESSION.UPP_USER)*
*4. VALUEOF(NQ_SESSION.UPP_GROUP)*
and my result is:
1. Administrator
2. Administrators;IT_Deparment ....
3. ADMINISTRATOR
4. _:GROUP_
Why in 4th column I didn't get: ADMINISTRATOR;IT_DEPARTMENTS ....
Can I use special variable GROUP in initialization block?
Could someone explain it?Hi,
Only :USER and :PASSWORD are available
try (select 'VALUEOF(NQ_SESSION.USER)', 'VALUEOF(NQ_SESSION.GROUP)' from dual instead.
(You migth have to force a fill of the group variable first)
Regards
John
http://obiee101.blogspot.com/ -
Error in using a variable in filter condition in an Interface
Hi All,
I am using a variable in my interface in a filter condition. I have an EMP table of scott schema and want to pull all the records wiht hiredate date lying between 2 dates, incremental pull.For this I have created 2 variables and using them in the filter condition. I am getting an error inthe interface when I run in a package after declaring and refresing the variables.
com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.i(e.java)
at com.sunopsis.dwg.cmd.g.y(g.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Unknown Source)
Regards,
KrishnaHi Krishna,
What is the datatype of the Variable lastupdate ?
In my case
Variable
Name : LastUpdateDate
Datatype : Alphanumeric
Action : Historize
Query : select to_char(to_date(sysdate,'DD-MON-YY'),'DD-MON-YY') from sys.dual
Then in filter I used
EMP.HIREDATE>to_date('#LastUpdateDate','DD-MON-YY')
Thanks
Sutirtha -
Using a variable in an instance name
Hey all,
Simple question:
I'm trying to use a variable to call on different instance names:
var picCaller:uint=2;
material_mc.addChild(pic_""+picCaller+"");
The code in red is the issue in question. In this example, I'm trying to add a child called "pic_2", with the number two called from the variable "picCaller"
Any assistance is greatly appreciated.
Thanks!Just for context, here is what I'm trying to do:
I have jpegs in my library and I want to add them to the stage when they're needed, so just to add one image, here is the code I have:
var pic_1=new pic1(0,0);
var image_1:Bitmap=new Bitmap(pic_1);
material_mc.addChild(image_1);
I want to put the above into a loop so that I dont have to repeat those three lines for every image in my library like so:
var pic_1=new pic1(0,0);
var image_1:Bitmap=new Bitmap(pic_1);
var pic_2=new pic2(0,0);
var image_2:Bitmap=new Bitmap(pic_2);
var pic_3=new pic3(0,0);
var image_3:Bitmap=new Bitmap(pic_3);
var pic_4=new pic4(0,0);
var image_4:Bitmap=new Bitmap(pic_4);
var pic_5=new pic5(0,0);
var image_5:Bitmap=new Bitmap(pic_5);
var pic_6=new pic6(0,0);
var image_6:Bitmap=new Bitmap(pic_6);
var pic_7=new pic7(0,0);
var image_7:Bitmap=new Bitmap(pic_7);
the variable "picNum" is the total amount of images that in the library, each one exported as "pic1", "pic2", "pic3" respectively.
var picNum:uint=7;
var picCaller:uint=1;
var picMC:MovieClip = new MovieClip();
picMC=this["pic_"+picCaller];
for (var i:int = 1; i <= picNum; i=i+1)
var "pic_"+i = new image_i(0, 0);
var image:Bitmap = new Bitmap("pic_"+i);
Thanks so much for your help. -
Issue in using presentation variable as filter condition in the reports
Hi,
I have an issue in using presentation variable as filter condition in my reports the details are as follows:
Details :
We want to implement the Max and Min variables through Presentation variables only.we do not want to implement it through session variables in this case.
We have two variables MIN and MAX to be used as Presentation Variables,for a column of the report (which is a quantity),so that the user wants to see the data for this column within a particular range.i.e the Min and the Max.This part has been implemented well . The issue is when the user wants to see the full data.In that case we will not pass any values to these two Presentation Variable or in other words we are not restricting the report data so we are not passing any value to the variables,this is when the report is throwing the error. we want to leave this variables blank in that case.but this is giving error.
Please suggest how can I overcome this issue.
Thanks in Advance.
Regards,
Praveeni think you have to use guided navigation for this. create two reports first is the one you are having currently and second is the one in which remove the presentation variable from the column formula. i.e. the same report with no aggregation applied.
Now create a dummy report and make it return value only when the presentation variable value is not equal to max or min. guide the report to navigate between the first and second report based on the result of the dummy report. -
Creating variables in Process Flows and using thse variables in the filter
Hi,
I am new to OWB and in learing stage. Need to information.
*1. as to how pass/create/use variables to OWB mapping ?*
*2. Creating variables in Process Flows and using thse variables in the filter operator of the OWB mapping?*
*3. Other mechanisms of how to create/use variables within OWB mapping itself ?*
can you please provide the above details and guide me / help me in this regard.
Thanks,
skms.1. Add parameters to your mapping using the MAPPING INPUT PARAMETER from the pallette.
2. Add parameters to the START operator in the process flow. Bind the process flow parameter to the Mapping parameter.
3. May be appropriate to use CONSTANTS instead of parameters.
Regards
Si -
BUG ? : ADF creating extra VO instance using bind variables in a LOV query
ADF 11.1.1.1.0
After "playing around" with bind variables Setting bind variables in view objects for LOV I've come across something strange that I've reproduce using the HR schema and tables Employees and Departments. Its a bit long but here goes :
Using the HR schema tables departments and employeesI'm trying to create a LOV (selectOneChoice) for the
employee department, the LOV having a bind variable that limits the values returned in this case returning only DepartmentId = 50
I've create a VO lovDepartment (not based on an EO) with the following query :
SELECT Departments.DEPARTMENT_ID,
Departments.DEPARTMENT_NAME,
Departments.MANAGER_ID,
Departments.LOCATION_ID
FROM DEPARTMENTS Departments
where DEPARTMENT_ID = :pDeptIdA LOV has been defined on the DepartmentId attribute of the EmployeesView.
The lovDepartmentImpl overrides the executeQueryForCollection to set the bind variable value.
@Override
protected void executeQueryForCollection(Object object, Object[] object2,
int i) {
setNamedWhereClauseParam("pDeptId", "50");
super.executeQueryForCollection(object, object2, i);
}When using an ADF form to create a new employee the DepartmentId lov is empty.
Enabling SQL tracing shows the following :
[370] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
[371] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.execute caused params to be "un"changed
[372] Column count: 4
[373] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0 ViewRowSetImpl.doSetWhereClause(-1, pDeptId, null)
[374] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 ViewRowSetImpl.setNamedWhereClauseParam(pDeptId, 50)
[375] ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1 Created new QUERY statement
[376] _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1>#q computed SQLStmtBufLen: 235, actual=195, storing=225
[377] SELECT Departments.DEPARTMENT_ID,
Departments.DEPARTMENT_NAME,
Departments.MANAGER_ID,
Departments.LOCATION_ID
FROM DEPARTMENTS Departments
where DEPARTMENT_ID = :pDeptId
[378] Bind params for ViewObject: _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1
[379] For RowSet : _LOCAL_VIEW_USAGE_model_EmployeesView_lovDepartment1_0
[380] Binding null of type 12 for "pDeptId"
[381] No Resource Bundle found but null value id:LOV_DepartmentId_LOVUIHints_NullValueId is defined in an ListBinding Definition.It would seem that 2 lovDepartment instances are used one at line 370 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0
and one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1
The one at line 374 LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1 gets the variable bound at line 374
however LOCALVIEW_USAGE_model_EmployeesView_lovDepartment1_0 gets a null value and would explain the empty LOV
Can anybody explain what is happening here ? (and how to use bind variables in LOV queries)
Regards
Paul
(bump)
Edited by: Paul (MITsa) on Jul 14, 2009 10:46 AM
I've now tried all types of LOV from ChoiceList to Radio groupe by testing the application module - none of them work.....
Edited by: Paul (MITsa) on 14-Jul-2009 22:52when you rinvoke executeQueryForCollection the bind variables are allready set and they exist in Object[] object2 method parameters.
in order to change them you need something like:
private void changeGenericBindVariable(Object[] params, String paramName, Object paramValue) {
for (int i = 0; i < params.length; i++) {
if (paramName.equals(((Object[])params)[0].toString()))
((Object[])params[i])[1] = paramValue;
* executeQueryForCollection - overridden for custom java data source support.
protected void executeQueryForCollection(Object qc, Object[] params,
int noUserParams) {
changeGenericBindVariable(params, "pDeptId", "50")
super.executeQueryForCollection(object, object2, i);
But its better to set bind variables before you executeQueryForCollection. like when you invoke LOV.
For cascading LOVs and the problems i have check:
[http://adfbugs.blogspot.com/2009/07/jdeveloper-11-r1-cascading-lov-bugs.html] -
Using 'variables.instance' structure and implicit getters/setters
I am adopting the use of creating a variables.instance (I use 'variables.my') structure to separate instance data from the object, however I have a question when it comes to ColdFusion creating implicit getters and setters based on that object's defined properties.
BEFORE, if I had a Name property, CF would create getName() and setName() for me, and it would update the variables.Name private variable accordingly in each. But now that my variables are being stored in 'variables.my.Name', does this mean I can no longer use ColdFusion's implicit getters and setters? (because it would improperly be attempting to execute getName and be looking for variables.Name, when that data now exists in variables.my.Name?
Are there any methodologies around that allow me to utilize CF's implicit getters/setters while using this 'my' instance variable and have them work with one another?Thanks for the confirmation Carl.
How cool, then, would it be if ColdFusion 11 supported something like:
<cfcomponent
accessors="true"
implicitpropertyprefix="my."
That way I could specify "my." as the property prefix and when it goes to create those implicit getters and settings, it will concatenate that into 'variables.my.' as the prefix when it alters property values or returns them. -
Set filter (with presentation variables) for requests using "SQL Issued"
if I have a "SQL issued":
SELECT saw_0 saw_0, saw_1 saw_1, saw_2 saw_2, saw_3 saw_3, saw_4 saw_4 FROM (
SELECT saw_0 saw_0, saw_1 saw_1, SUM(saw_2) saw_2, SUM(saw_3) saw_3, SUM(saw_4) saw_4
FROM
SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, COUNT("Sales"."SalesDate") saw_2, "Sales"."No.OfConsumer" saw_3, 0 saw_4
FROM CRM
WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
UNION ALL
SELECT "Period"."YearMonth" saw_0, "Customer"."CustomerName" saw_1, 0 saw_2, 0 saw_3, Count("SuperSales"."SuperSalesDate") saw_4
FROM CRM
WHERE ("Period"."YearMonth" >= 200904) AND ("Period"."YearMonth" <= 200910)
) t1
GROUP BY saw_0, saw_1
ORDER BY saw_0, saw_1
) t2 ORDER BY saw_0
actually, in this request, I would like to set a filter for "Period"."YearMonth" using presentation variable.
is it possible to do this ?
Thanks !!Hi Forreging,
You can use presentation variables, but not if you are directly setting the SQL via the Advanced tab.
Instead, build up the first report just like the first part of the UNION statement. Then use the "Combine with Similar request" to build up the logic for the second part of the query.
When you approach it this way, you have the ability to set filters on each "Sub-Request" via the Criteria tab. Otherwise, OBIEE only lets you add a filter at the outer level of the query when you go the route of setting the SQL in the Advanced tab.
Good luck and if you find this post useful, please award points!
Best regards,
-Joe -
Use of Variable in Script Logic
Dear All,
We are working on a BPC Script Logic involving depreciation calculation, which calls an implementation of the BAdI BADI_UJ_CUSTOM_LOGIC. We are passing some parameters from the script logic to the BAdI. There are two parameters to be passed: an account number (Account in which the posting will happen), and the rate (rate with which depreciation will be affected). The parameters are stored in the Dimension member of the account dimension and need to be fetched from there. We are using the following piece of code to achieve this:
*INCLUDE FUNCTIONS.LGF
[#PERC] = PRO([%ACCOUNT_DIM%].CURRENTMEMBER,DEP_PERCENTAGE)
[#DEPACCOUNT] = PRO([%ACCOUNT_DIM%].CURRENTMEMBER,DEP_ACCT)
*START_BADI DEPR
QUERY = ON
WRITE = ON
DEPACCT = [#DEPACCOUNT]
PERCENTAGE = [#PERC]
*END_BADI
Here, FUCNTIONS.LGF contains the PRO function, which fetches the account and percentage properties from the account dimension member. Problem is, when we refer to the temporary variables within our code using the variables [#DEPACCOUNT] and [#PERC], we encounter a short dump for CX_SY_CONVERSION_NO_NUMBER. We suspect that instead of passing the parameter values, the logic is passing the variable name as the value. How do we rectify this? What is the correct syntax for passing such a parameter to the BAdI? Any ideas?
Thanks in Advance,
SidHi Ethan,
Thanks for the answer. Unfortunately, even after trying out your solution with K2 variables, we are getting the same dump, this time the log says:
An exception with the type CX_SY_CONVERSION_NO_NUMBER occurred, but was neither handled locally, nor declared in a raising clause
The argument '%PERC%' cannot be interpreted as a number
We are starting to think that maybe only substitution variables can be passed as parameter to the BAdI call, because whenever we use a local variable, we end up in passing the variable name to the BAdI, and not the variable value. We digged through the SAP Help, following is the excerpt from there:
Run the following instruction to call custom ABAP programs: where filter_value_of_your_BADI_implementation is the name of the filter you provided during the BADI implementation of UJ_CUSTOM_LOGIC BADI.
*START_BADI <filter_value_of_your_BADI_implementation>
<key1> = <value1>
<key2> = <value2>
*END_BADI
where filter_value_of_your_BADI_implementation is the name of the filter you provided during the BADI implementation of UJ_CUSTOM_LOGIC BADI.
Does this mean we can only pass <key>:<value> pairs, and not <key>:<variable> pairs? Is there any instance / documentation which points to this (or the contrary)?
Awaiting answers.
Thanks and Regards,
Sid -
Using a variable in Spry conditional tests included in a Spry Tooltip
I have the following code:
<div spry:region="company" id="tooltip">
<div spry:repeat="company" spry:choose="spry:choose">
<div spry:when="'{name}'==memberName">
<table>
<tr>
<td
align="center"><h2>{name}</h2></td>
</tr>
<tr>
<td align="center"><img src="{headshot}"
alt="{name}" width="227" height="350" /></td>
</tr>
<tr>
<td align="center">{description}</td>
</tr>
</table>
</div>
</div>
</div>
<script type="text/javascript">
var tooltip_trigger_one = new
Spry.Widget.Tooltip("tooltip","#trigger", {showDelay: 200,
hideDelay: 200, offsetX: 250, offsetY: 200} );
</script>
where the variable "memberName" is set elsewhere to a value
that matches one of the occurrences in the column "name" in the
dataset "company". I can see, using debugging tools, that the
variable is being set correctly. But.... when the tooltip is
triggered, only a small few-pixel square box opens up.
If, instead of using the variable "memberName" in:
<div spry:when="'{name}'==memberName">
I use a string, as in
<div spry:when="'{name}'=='John Doe'">
then the code works correctly and I get a large tootlip
showing me the correct information for that member of the company.
I have tried different tests (spry:if and spry:test for
instance), tried various combinations of quotes and parenthesis and
tried placing the code at various places both inside and outside of
the <body> -- but always get the same results.
Is it not possible to test against a variable or am I doing
something else incorrectly?
Thanks,
JanetOK.... some progress to report.
I was setting memberName onmouseover-- which is also the
trigger for the tooltip-- thusly:
<p><em onmouseover="memberName='John Doe'"
id="trigger">John Doe</em></p>
It seems that the variable is being set, but too late, as the
trigger has already caused the div... id="tooltip"> to be
evaluated with "memberName" not equal to any of the names in the
dataset. I tried using a function call to set "memberName" and
tried putting the onmouseover in the <p> tag and leaving the
trigger id in the <em> tag. but neither of those appear to
change the outcome. "memberName" still appears to be set to the
value I initialized it to up the the <head> section at the
time the tooltip <div> is evaluated. Although it is set
correctly if I check it's value using Firebug after I have
mouse-overed it.
Incidentally, using a Firebug breakpoint just before the
<div spry:when...> and checking the value of memberName was
how I discovered that "memberName" still seemed to have a value of
"initialized" which is what I set it to up in the <head>
section.
Having written all of this, I am wondering though, shouldn't
the value of "memberName" be equal to "John Doe" the second time I
mouseover it? Or, if there are more than one trigger "names" on the
page, shouldn't "memberName" be equal to the name of the previous
trigger that I moused-over? And with memberName having a legitimate
value at that point, shouldn't the tooltip now show the correct
display information rather than just that little few pixel square
box that I am getting when I mouse-over the trigger name?
Clearly there is something that I just am not understanding.
Janet -
I have a simple sharepoint workflow that sends and email to users. I know that the mail portion works because I can put a user's email address in the to: field and it sends fine. If I use a string variable with the email address, I get a workflow
error.
Simple steps to repro for me:
Create a new workflow in SPD (I have tried a list workflow and site workflow)
Create a workflow variable named email.
Set the variable to an email address where the user is in the site
Send email and do a variable lookup to the email variable just set.
The workflow just hangs in this scenario
I do get an error:
Retrying last request. Next attempt scheduled in less than one minute. Details of last request: HTTP BadRequest to https://[tenant].sharepoint.com/_api/sp.utilities.utility.SendEmail
Correlation Id: 568e9c68-ea75-d057-ab9f-d86f6cae3021 Instance Id: 9cc721a4-78e6-456f-812b-67351dfc9710
The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.
Retry nowSimple answer... When I used the variable, I marked it as a string. There is an email address setting.
-
'How to..use reporting variables in BPS' syntax issue
Hi,
I am implementing the white paper 'How to...use reporting variables in BW-BPS' and I am getting a syntax error in the include YBW_BPS_VAR_READ. The error indicates 'Statement is not accessible' for my line:
SELECT SINGLE * FROM ybw_bps_var_map
ybw_bps_var_map being my transparent table as described in the white paper.
I have never seen such a syntax error, has anyone had the same issue? My code is the one in the white paper.
Thanks for any help.
DavidHi David,
I have the coding up and running. I have not seen this error before and don't know how to resolve it. If you cut&paste it from the PDF, then maybe some special characters got pasted into the ABAP editor. Try to delete the line and type it in manually.
Regards
Marc
SAP NetWeaver RIG -
How to use a variable between interfaces or class?
Hello All;
Far by now I can say that the forum is very helpful for me. Thanks for all the people who have the time and generosity to help our problems. Thank you.
Unfortunately I have a problem <Again :( >
I want to use a variable in two different *.java files.
Is it possible?
The Variable i want to use is; int CiftSayisi
The variable is declared in the CamCalib.Java under a button's Action Listener.
Here is the code;
public void actionPerformed(ActionEvent arg0) {
ImagePair.main(null);
String[] ImPath = list.getItems(); //Storing Items in an Array
Dimension dim = Toolkit.getDefaultToolkit().getScreenSize(); //Dimensions of the Screen Storing in an object
int ScreenHeight = dim.height; //Definition ScreenHeight
int ScreenWidth = dim.width; //Definition ScreenWidth
// System.out.println(ScreenHeight); //Testing of the Dimensions
// System.out.println(ScreenWidth); //Testing of the Dimensions
int CiftSayisi = ImPath.length -1 ;
if (CiftSayisi == 0){
System.out.println("Added Images do not Construct a Pair");
else {
}Now i want to use it in another java file which is ImagePair.Java in the loading part of the interface;
setType(Type.UTILITY);
setTitle("Image Pair Selection");
setResizable(false);
setAlwaysOnTop(true);
setBounds(100, 100, 450, 68);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(null);
textField = new JTextField();
textField.setBounds(61, 11, 22, 20);
textField.setEditable(false);
textField.setEnabled(false);
contentPane.add(textField);
textField.setColumns(2);I have a text field in here that i need to fill with the value of CiftSayisi
Any help please?
ömer kaya
METU-GGIT
Edited by: Ömer K. on Apr 10, 2012 12:43 AMI didn't bother reading the code, since you didn't format it.
But to answer your question (if I understand it correctly), yes, it is possible to pass variables between different object instances (not from an interface specifically, since interfaces don't have members). The simplest way to pass the variable as an argument to a method or constructor. If these aren't available, you could create a static global variable, though in a multithreaded app you'd have to synchronize access. -
How to use presentaion variable in the SQL statement
Is there any special syntax to use a presentation variable in the SQL Statement?
I am setting a presentation variable (Fscl_Qtr_Var)in the dashboard prompt.
If i set the filter as ADD->VARIABLE->PRESENTATION, it shows the statement as 'Contract Request Fiscal Quarter is equal to / is in @{Fscl_Qtr_Var} '.
And this works fine but when i convert this to SQL, it returns
"Contract Request Date"."Contract Request Fiscal Quarter" = 'Fscl_Qtr_Var'
And this does not work.It is not being set to the value in the prompt.
I need to combine this condition with other conditions in the SQL Statement. Any help is appreciated. ThanksTry this: '@{Fscl_Qtr_Var}'
Maybe you are looking for
-
How to put Video/DVD/games/eBook to Nokia
Nokia phone still the NO.1 of all the phones, As a fan to Nokia phone, I want to share with you some tips to play Nokia. Only some experience of play Nokia phone, just enjoy it. This guide will show you how to put videos to Nokia, DVD to Nokia, games
-
Assign direct material cost to value field in copa while issue to Prod orde
Dear All, My requirement is like this: There are some 16 material groups from A to P each containing some materials(finished goods). I want to allocate overhead to different material groups(Charecteristic in copa) in COPA using the periodic assesment
-
I download the new Ios7 and lost all my apps , now i don't know how to recover my purchased apps , Plz help?
-
I can't print my documents.
I can't print a file.
-
Transferring entire music/video library from apple t.v. to new computer
My old computer died and everything got erased but luckily everything is saved on my apple t.v. is there any way to transfer everything on my apple t.v. to my new laptop that runs on vista? help is greatly appreciated.