Mapping 3 columns to 3 attributes in the same element
Hi,
I have 3 columns which are not in a collection as part of my result set. I need to map these 3 columns to an attribute in my result xsd in the transformer.
eg on the left I have :
addrline0, addrline1, addrline2. On the right I have an element called ADDR with an index attribute, so I want the right to display
<ADDRESS>
<ADDR index="0">my address1</ADDR>
<ADDR index="1">my address 2</ADDR>
<ADDR index="2">my address 3</ADDR>
</ADDRESS>
this seems not possible in the transformer out of the box - is there a way I can achieve this ? I know that addrline0 will always map to index 0 and addrline1 always map to index 1 etc.
thanks
The way to do it would be:
Assign the first one normally:
<assign name="first">
<copy>
<from variable="addrlin0" query="pVariable"/>
<to variable="ADDR" query="/tns:ADDRESS"/>
</copy>
</assign>
then assign the following using :
<bpelx:assign>
<bpelx:append>
<from variable="addrlin1" part="return" query="/pVariable"/>
<to variable="ADDRESS" query="/tns:ADDRESS"/>
</bpelx:append>
</bpelx:assign>
Instead of append you can also use InsertAfter or InsertBefore.
hth,
Mike van Alst
Similar Messages
-
Hello everyone,
I'm kind of newbie with MDX language, I'm trying to get filtered measures from a cube with a specific layout.
Here is my exemple :
I want to get all the "order numbers" where the "invoice" cost is more than 300. Each invoice is linked with an ID, one order number can have several invoices.
So what I do is a select request with 2 dimensions : "order num" and "id_invoice"
Here is the result : I get all the cost sorted by "order num" and I can easealy identify those who are above 300
order num
Id_invoice
cost
Total
Total2
15450307
10032013094498
1671
1737
ok
15450307
10032013099835
66
1737
KO
15450596
10032013094078
8524
8524
ok
15451214
10032013094119
228
4348
KO
15451214
10032013097069
978
4348
ok
15451214
10032013097071
3142
4348
ok
15542434
10032013101736
142
142
KO
15550064
10032013097016
1261
1261
ok
15550346
10032013097586
2252
2252
ok
15550353
10032013098446
2617
2617
ok
What i need : In "cost", I need to have the sum of each cost which are above 300 in one line (without showing the invoice id)
order num
cost
Total
Total2
15450307
1671
1737
ok
15450596
8524
8524
ok
15451214
4120
4348
ok
15550064
1261
1261
ok
15550346
2252
2252
ok
15550353
2617
2617
ok
How is it possible to use a filter on a dimension without showing it or merge 2 attributes of the same dimension ?
The problem is that if I show "id" column, the filter doesn't work properly : it compares 300 with the total cost of the whole order and does not compare with each invoice (which could be under 300 ! - see "KO" in Total2 column)
Here is the request I use to generate this result :
with
member [Measures].[Total]
as (
[TP].[ID INVOICE].[All],
[TP].[ORDER NUM].currentmember,
[Measures].[COST]
member [Measures].[Total2]
as (
IIF([Measures].[COST] >
300, "ok",
"KO")
select
{[Measures].[COST],[Measures].[Total],[Measures].[Total2]}
on
columns,
Filter
[TP].[ORDER NUM].[ORDER
NUM].members *
[TP].[ID INVOICE].[ID
INVOICE].members
,[Measures].[COST]
> 0
on
rows
FROM [MYCUBE]
Thank you for your help !
Kind regards,
Olivier.Hi Olivier,
hereunder a similar query against the AW. For all order numbers, we sum all lines above 30 without diplaying the line numbers:
WITH
MEMBER [Measures].[lines above 30] AS
IIF(
[Measures].[Internet Sales Amount] > 30,
[Measures].[Internet Sales Amount],
null
MEMBER [Measures].[aggr lines above 30] AS
SUM(
exists(
[Internet Sales Order Details].[Sales Order Line].[Sales Order Line],
[Internet Sales Order Details].[Sales Order Number].currentmember
[Measures].[lines above 30]
SELECT
[Measures].[Internet Sales Amount],
[Measures].[aggr lines above 30]
} ON 0,
[Internet Sales Order Details].[Sales Order Number].[Sales Order Number] ON 1
FROM ( SELECT
[Product].[Category].[All Products] ON 0,
[Internet Sales Order Details].[Sales Order Number].&[SO51177]:
[Internet Sales Order Details].[Sales Order Number].&[SO51178]
} ON 1
FROM [Adventure Works] )
I reduced the cube with a subselect.
Philip, -
Will deleting a column at logical schema delete the same at physical level by DDL Sync?
Will deleting a column at logical schema delete the same at physical level by DDL Sync?
Hi David,
First of all thanks for your quick response and for your help logging the enhancement request,
I am testing more or less your suggestion but I am not sure if I understood exactly what you mean,
1)I imported from data dictionary in a new model and into the options menu on the schema select screen I un-ckecked partitions and triggers,
I guessed that the import should not get from the data dictionary the information about the partitions but the result is that the tables partitioned (by list in this case) are partitioned by range without fields into the physical model on SDDM,
2)I select one of the tables modify a NO partitioned option and propagate the option for the rest of the tables
3) I imported again from data dictionary but this time I included the partitions into the option menu on select schema screen,
into tabular view on compare models screen I can select all the tables with different partitioned option, also I can change for "list partitions" and select only the partitions that I want to import.
So I have a solution for my problem, thanks a lot for your suggestion
The second step I'm not sure is needed or maybe I can avoid the step with some configuration setting in any of the preferences screen,
if not, I think the options to not include partitions into select schema screen are not so clear, at least for me,
please, could you confirm me if a way to avoid the second step exists or if I misunderstood this option?
thanks in advance -
Measure using UseRelationship not working well when sliced with attributes from the same table
Hi,
I have Measure created using the 'UseRelationship' Function, which uses a different datekey to link to the DateDim than the one the table is directly related by. The measure works as expected except in one scenario.
If I browse the measure using an attribute from the same fact table then the attribute is filtered using active relationship whereas the measure is filtered using the inactive relationship as shown below:
FACT(2 rows)(Active Relationship to Date using DateKey1)
SNo DateKey1 DateKey2 Geo Amt
1 20100101 20120101 India 100
2 20100101 20120101 US 200
AmtMeasure:=CALCULATE(SUM([Amt]),USERELATIONSHIP(FACT[DateKey2],'Date'[DateKey]))
If I browse the above measure in excel, with Year selected as 2012, I get 100+200=300. Now if I drag the Geo attribute against the measure I get 2 rows with 100 and 200.
If I do the same in a power view report I don't get any results after dragging the Geo attribute, whereas I get the correct value of 300 without the geo attribute. I checked the DAX query which the power view generates and figured this is being caused because
there are no rows in the table with DateKey1 having year 2012. I understand why this is happening this way in a DAX query and not in MDX, but shouldn't both behave in the same way and what is a work around.
Thanks,
Sachin ThomasSac, is this still an issue?
Thank you!
Ed Price, Azure & Power BI Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
After reïnstalling Sygic Europe I don't get to download the map content.
Does anyone have the same problem?Hi, I have the problem too. Did you find a solution ?
-
Schemas defining the same element
Hi,
I have 7 schemas (xsd) that define the same element but with different attributes. I want to generate the java classes but obviously there's a problem with the root element. It is possible to join all the schemas that I have to make a unique schema?
All of them define the XFFile element but in differents ways.
<?xml version="1.0" encoding="UTF-8"?>
<xs:element name="XFFile">
<xs:complexType>
<xs:sequence>
here the elements
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
thx in advanceI've been thinking and I'll make a package for each schema..
-
Can We Use Multiple Edgehero Classes On The Same Element?
Does anyone know if it is possible to add multiple Edgehero classes to the same element? More specifically, I would like to use RotateX and RotateY on a rectangle, but it only seems to do one or the other, adding both classes to the element doesn't make it rotate in both directions.
Maybe check out the Star Wars demo to see if that would help.
Rob got the idea from the one I made earlier and here is the code:
sym.$('gradient').css('background', '-moz-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
sym.$('container').css('-moz-transform-origin', '50% 100%');
sym.$('container').css('-moz-transform', 'perspective(250px) rotateX(25deg)');
// Chrome and others
sym.$('gradient').css('background', '-webkit-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
sym.$('container').css('-webkit-transform-origin', '50% 100%');
sym.$('container').css('-webkit-transform', 'perspective(250px) rotateX(25deg)');
// Internet Explorer
sym.$('gradient').css('background', '-ms-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
sym.$('container').css('-ms-transform-origin', '50% 100%');
sym.$('container').css('-ms-transform', 'perspective(250px) rotateX(25deg)');
and the orginal file before edgeHero;
https://app.box.com/s/068vx5x6lj5t2yydrx17 -
How to use the same element in different photoshop files?
It occurs to me often that I use the same element in different photoshop files, a header or footer shown in the example below. So when the footer changes in one document, I need to change this footer in every other single document.
Is there a possibility to use some kind of template, one single document, that can be placed in different files , which is still editable afterwards?
Thanks in advance.
I'm using Photoshop CS6In a single document you can have several pages and these pages may have headers and footers that share smart objects. If you replace the contents of the an embedded smart object on one page page that is shared on an other page the pages you will see both pages contents are changed. For they share the common object. It is also possibly to have independent smart object layers. It depends how you create the layers in the single document.
Example one sharing a smart object hi-light a smart object layer and use menu layer>Duplicate Layer... This will create a second smart object layer that share a common smart object. Each layer has is own associated transform. Do it again and you will have three layers the share a common smart object. So you can use each layer associated transform to position and size the layers contents. Make a picture package for example. When you hi-light any of the three smart layers and you use menu Layer>Smart Objects>Replace Contents... all three layers contents will be replace with the new smart object. Care must be taken to replace the smart object with an identical size object for only the object is replaced the three associated transform for the three layers are not replaced or changed.
Example two independent smart objects hi-light a smart object layer and use menu layer>Smart Objects>New Smart Object via Copy. This will create a second smart object layer that has it own embedded smart object copy. Do it again and you will have three all have independent embedded smart object that are identical. However they do not have to remain identical. For example if the first smart object layer was created by using ACR to open a RAW file as a smart object layer the embedded object is a copy of the raw file and its associated RAW conversion settings. Double clicking on one of the smart object layers and you will see ACR open on its embedded RAW file with the embedded RAW conversion setting. Changing these settings will update the layer smart object content with new ACR setting and pixel when you click OK in ACR. Repeat for the third and you will find you have three different raw conversions in Photoshop you can mask and blend together to bring out detail.
I think what your missing is that a smart object contains a copy of the original object. Changing the original after creating a smart object layer in document will not effect the smart object layer at all. Its independant from the original having a copy of the original. Only changes to the smart object layer and its embedded smart object effect smart object layers. -
The name attribute on the img element is obsolete. Use the id attribute instead.
When I valadate my page I get an error "The name attribute on the img element is obsolete. Use the id attribute instead." In DW CS5.5 I cannot seem to enter an ID without DW also adding the ID as a name attribute too. Aside from manually going in and removing the name attribute from the code.
It won't hurt to leave the name attribute in your <img> tag. In fact, it may be necessary if you are going to add an image rollover behavior, since DW's javascript relies on that name attribute's value to correctly identify the desired image on the page.
-
Showing navigation attributes in the same column of a query
Hi,
I would like to know if there is a way to define a query such that TWO navigation attributes that reference the same underlying characteristic can be displayed in the SAME column rather than TWO separate columns.
I will describe an example scenario to clarify the requirement. We are using a BI Content InfoCube (0COOM_C02) that has the navigation attributes 0COSTCENTER__0PROFIT_CTR and 0WBS_ELEMT__PROFIT_CTR activated. Both of these attributes reference the characteristic 0PROFIT_CTR. The InfoCube contains transaction data for Cost Centres and WBS Elements.
The requirement is to define a query that summarizes the data by profit centre. At the moment, in order to combine Cost Centre and WBS (Project) data in the same query by Profit Centre, both navigation attributes need to be selected, resulting in the following output:
0COSTCENTER__0PROFIT_CTR......0WBS_ELEMT__PROFIT_CTR......AMOUNT
PC01...............................................Not assigned...................................10,000
PC02...............................................Not assigned...................................20,000
PC03...............................................Not assigned...................................12,000
PC04...............................................Not assigned....................................2,000
Not Assigned....................................PC02..............................................5,000
Not Assigned....................................PC03..............................................8,000
Not Assigned....................................PC05..............................................30,000
Not Assigned....................................PC06..............................................50,000
However, the desired result is to display only one profit centre column using the two profit centre navigation attributes as shown below:
PROFIT CENTRE......AMOUNT
PC01..........................10,000
PC02..........................25,000
PC03..........................20,000
PC04............................2,000
PC05..........................30,000
PC06..........................50,000
Is there a way to achieve the above result using the two navigation attributes only, without having to add 0PROFIT_CTR as a characteristic to the InfoCube?
Any suggestions would be appreciated.
Thanks,
Mustafa.Hi Mustafa,
You have to use enhancement RSR00001 in the transaction CMOD to start developing your code.
For more information how the customer exit variables are processed, refer to the documentation:
http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
A short example can be found here:
http://help.sap.com/saphelp_nw70/helpdata/EN/1d/ca10d858c2e949ba4a152c44f8128a/frameset.htm
This should help.
Regards,
Daniel -
Display entity-attributes and global-attributes in the same screen
Hi,
I have a question about entity.
Is it possible to display in the same screen, entity-attributes and global-attributes?
thanks
RosaliaHi Rosalia,
You can only display attributes from the current entity and the entity or entities that it is contained by (the parent entities).
So if you had the following data model
Global
..the person
...the income
the person is contained by global.
the income is contained by the person (which is contained by global).
If you want to create a person-level question screen, you can display global attributes on that screen by using subsitution like %global_field_1%. You cannot, however, input global attributes on that screen (ONLY attributes belonging to the person)
If you want to create an income-level question screen, you can display attributes from the person such as "tell us about %person_name%'s income..." as well as global attributes. Again, you cannot input person or global attributes on that screen (ONLY attributes belonging to the income)
However it only works from child-to-parent containment relationships! You cannot have a global question screen which loops through the person instances and displays attributes from the person, or from the income out-of-the-box.
We have managed to implement this using custom controls.
You can map individual attributes back up to the parent level, and then display them,
such as
the first person's name = InstanceValueIf(the people, the person's name, the person's id = 1)
the first person's name is now a global attribute and can be displayed on global question screens.
Hope this helps!
Ben -
To make one column that do not have the same data value with pk
All right, here's the problem >>
I have a form on a report with columns and attributes taken from the tables in the database. 5 tables are allocated in the database, but one table is used for this "form on a report."
I named the report as a Company form, where users can add/edit company's name and details into it. However, without the use of candidate keys, how do you control the columns such that no two values are the same, although there is a primary key which i named it as company_id.
Regards,
HTMLDB userI suggest to launch an SQL query in a validation process. The where clause would look like this PRIMARY KEY COLUMN LIKE :ITEM%
If the query retrieve at least one row then your validation process return an error and stop the saving process
If you want you can also do it asynchronous with a javascript on blur event -
Struggling to have two document type attributes in the same notification
Hi All,
I need some help. I am working with Oracle Time and Labor, and am trying to get two document type attributes to play nice in the same notification message body.
One documentation type attribute is made available to me. Here is its attribute value:
JSP:/OA_HTML/OA.jsp?&OAFunc=HXC_TIMECARD&akRegionApplicationId=809&retainAM=Y&Action=ApprovalDetail&Timecard_id=-&APP_BB_ID-&ResourceId=-&RESOURCE_ID-&TimecardMode=TIMECARD-REVIEW&Review=Y&FromAppPage=YES&NtfId=-&#NID-&StartTime=-&FORMATTED_APP_START_DATE-
The second one I created as a PLSQL document. This one I have simplified to just a 'Hello World'.
When both are in the message body at the same time, the notification message body looks like this (the name of one of the document type attributes is 'TIMECARD'):
hello world Attribute TIMECARD refers to Framework Region JSP:/OA_HTML/OA.jsp?&OAFunc=HXC_TIMECARD&akRegionApplicationId=809&retainAM=Y&Action=ApprovalDetail&Timecard_id=-&APP_BB_ID-&ResourceId=-&RESOURCE_ID-&TimecardMode=TIMECARD-REVIEW&Review=Y&FromAppPage=YES&NtfId=-3614187-&StartTime=-&FORMATTED_APP_START_DATE-.
When either document type attribute exists by itself in the message, everything works as planned.
Any suggestions?I think the problem here is caused when you token - substitute an attribute which appears in another attribute.
Suppose that you have two document type attributes as shown below:
1. CONTENT whose value is:
plsqlclob:PA_PWP_NOTIFICATION.SHOW_PWP_NOTIFY_PREVIEW/&CONTENT_ID
and
2. CONTENT_ID whose value is: 11629
Now, what happens is, while token substituting &CONTENT_ID in the first attribute, &CONTENT_ID is possibly being broken into
&CONTENT and replaced with a null value and then ID is left as is. The problem seems to be because CONTENTID is used
inside another attribute CONTENT.
The workaround here is to change the name of attribute CONTENT to some other name or change the attribute name CONTENT_ID
to something different.
In your case I suppose that the names of attributes you are having may be similar or one being subset of other. You can avoid the
problem by having different names (or name which is not part of another attribute's name).
If this does not solve the problem you can generate output of $FND_TOP/sql/wfmlrdbg.sql output for this notification id.
Hope that helps !!
Thanks,
Dilbagh -
Duplicate column ids in reports on the same page, how can I reference them?
I have 4 reports on the same page.
I have added a checkbox column to each one.
On clicking I want to populate a collection with the value of the id of the corresponding row and then have a button acting on the whole list.
My code to get the id of the item that contains the value I want is this
id = 'f02_' + $(this.triggeringElement ).attr('id').substr(4,4);
But there is an f02_0001 for each report, and the code just finds the first one, rather than the one in the context of the report being clicked.
<input name="f02" id="f02_0001" type="hidden" value="2072"/>
<input name="f02" id="f02_0001" type="hidden" value="2052"/>
etc etc.
All that is ever picked up is 2072
They have different table ids but I don't know how to reference the correct ones in my code
I'm sure it must be something simple, can anyone help
Cheers
MarkIt looks like this:
I want to click on the check box and get the corresponding value for f02_000X (or could I refer to the class name if I gave it a class)
There are several tables with the same format as below so it needs to work out the table id in the reference.
<table id="report_R1641794306363434600" cellspacing="0" cellpadding="0" border="0" summary="">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<th id="BOX"></th>
<th id="Name"> </th>
</tr>
<tr>
<td colspan="11">
<table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
<tbody>
<tr>
<td valign="top" nowrap="nowrap" style="padding:1px;"></td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td headers="BOX">
<label class="hideMeButHearMe" for="f01_0001"> </label>
<input id="f01_0001_01" class="boxhop" type="checkbox" onclick="if (this.checked) {apex.jQuery('#f01_0001').val('Y');} else {apex.jQuery('#f01_0001').val('');}" value="Y" name="f01_NOSUBMIT">
<input id="f01_0001" class="boxhop" type="hidden" value="" name="f01">
</td>
<td headers="Name">
Administrator
<input id="f02_0001" type="hidden" value="2072" name="f02">
</td>
</tr>
<tr>
<td colspan="11">
<table width="100%" cellspacing="0" cellpadding="1" summary="" style="border-bottom:1px #959562 dotted;">
</td>
</tr>
<tr>
<td headers="BOX">
<td headers="Name">
Angela Murray
<input id="f02_0002" type="hidden" value="2082" name="f02">
</td>
</tr>
<tr>
</tbody>
</table> -
Optimize certain columns and fixed others of the same ALV
Hi All,
I was wondering whether it is possible to optimize the width of certain columns based on their content and fixed( hard coding the width ) the others, all fields found in the same ALV.
Thanks,
ShabirHere is what i am using to manage the lenght of the columns.
TRY.
gets the columns object
lref_columns = iref_alv->get_columns( ).
loops trough the columns to hide the unnecessary ones
lt_columns = lref_columns->get( ).
LOOP AT lt_columns INTO ls_column.
lv_colname = ls_column-columnname.
CASE lv_colname.
WHEN 'MANDT'.
ls_column-r_column->set_technical( if_salv_c_bool_sap=>true ).
WHEN 'MATNR'. "Material Number
ls_column-r_column->set_long_text( 'Material Number'(017) ).
ls_column-r_column->set_medium_text( 'Material Number'(017) ).
ls_column-r_column->set_short_text( 'Mat.Number'(036) ).
ls_column-r_column->SET_OUTPUT_LENGTH( '11' ).
WHEN 'MTART'. "Material Type
ls_column-r_column->set_long_text( 'Material Type'(020) ).
ls_column-r_column->set_medium_text( 'Material Type'(020) ).
ls_column-r_column->set_short_text( 'Mat. Type'(037) ).
ls_column-r_column->SET_OUTPUT_LENGTH( '13' ).
WHEN 'MATKL'. "Material Group
ls_column-r_column->set_long_text( 'Material Group'(040) ).
ls_column-r_column->set_medium_text( 'Material Group'(040) ).
ls_column-r_column->set_short_text( 'Mat. Group'(023) ).
ls_column-r_column->set_output_length( '10' ).
WHEN OTHERS.
ENDCASE.
ENDLOOP.
Maybe you are looking for
-
BED, E Cess and Secondary education cess not showing in MIGO
Dear Experts, i have created one PO with tax code , in the invoice tab all the BED,ED cess and secondary cess are showing properly, but when i am doing the MIGO, the same is not showing in item detail excise item tab, my tax procedure is TAXINN, plea
-
Standard jQuery tabs and an interactive report as a "tab" sub-region
Hi all, I have a standard, simple implementation of jQuery tabs following the exact instructions by Patrick via this thread: Re: New themes in APEX 4 not working with JQuery tabs As one of the "tabs" (sub-regions), I want an interactive report. I use
-
Questions regarding Disk I/O
Hey there, I have some questions regarding disk i/o and I'm fairly new to Java. I've got an organized 500MB file and a table like structure (represented by an array) that tells me sections (bytes) within the file. With this I'm currently retrieving b
-
Hello, I have an imac and a pc! What I want to do is mount a share folder on my mac desktop so that I can just drag a drop file to the pc? How can I do that? I don't want to go to Connect server i already do that now! So is there a way where whenever
-
I have Photoshop Elements 7. I received a notice to update, which I did. However, I do not believe Elements703 Patch was downloaded because the notice appears again. In the C: drive the patch appears as a Zip file. Is there something else I am su