External Hier - Duplicated Values
Hy Gurus,
I have created an External Hier with Cost Center (like External CH) and Cost Element (like leaf of the hier). The problem is that in BEx values are replicated for every node, not considering Cost Center detail. Example:
CC: 1000 Amount = 6000
CE: ABCD Amount = 1000
CE: EFGH Amount = 5000
CC: 1100 Amount = 6000
CE: ABCD Amount = 1000
CE: EFGH Amount = 5000
Instead of:
CC: 1000 Amount = 3400
CE: ABCD Amount = 400
CE: EFGH Amount = 3000
CC: 1100 Amount = 2600
CE: ABCD Amount = 600
CE: EFGH Amount = 2000
How can I solve this problem ?
Thank you in advance and I will reward points.
I you need more info please send me an e-mail I will send you printscreen of the BEx.
Ciao.
Riccardo.
Message was edited by: Riccardo Venturini
Message was edited by: Riccardo Venturini
Hi Riccardo,
defining an external hierarchy will be very high effort... the only possibility I see is to create a custom characteristic e.g. ZCOST which consists of both cost center and cost element values. On this characteristic ZCOST you can now apply a hierarchy
-OVHD
1100
-HR Cost
1000
1100
This solution of course implies you would have to reload cube data and change cube design from cost center and cost element to ZCOST... I do not think this solution is feasible for you but I do not know any better suggestion. External hierarchy is not possible as described above and hierarchy in attributes is also not practicable because of the n:m-relation between cost element and cost center. Maybe someone else can propose an easier solution!
Best regards,
Björn
EDIT: I forgot most important point! If you create external hierarchy, each node must be unique. So in above example hierarchy it is necessary to create unique keys for ZCOST (for example by concatenating keys of cost element and cost center). For example keys might be
-OVHD
OVHD1100
-HR Cost
HRCOST1000
HRCOST1100
Similar Messages
-
Making copies of idvd projects on external dvd duplicator not working
i've been trying to make duplicate DVDs of projects i've made on idvd on an external DVD duplicator (Athena) and it won't work, keeps saying there isn't enough space on the disk when it's the same size disk i used for the original. it does, however, work for copying professional CDs (i tried just to see if it would work at all). my question is, is there something i need to do when making the original in idvd in order for it to be duplicated? i have idvd 5.
Is there something i need to do when making the original in idvd in order for it to be duplicated?
No
You need to contact the external DVD duplicator (Athena) manufacturer and see what THEY advise.
F Shippey -
i want to display employee last names, department numbers, and all the employees who work in the same department as a given employee.The tables are like this
departments
Name Null? Type
DEPARTMENT_ID NOT NULL NUMBER(4)
DEPARTMENT_NAME NOT NULL VARCHAR2(30)
MANAGER_ID NUMBER(6)
LOCATION_ID NUMBER(4)
desc employees
Name Null? Type
EMPLOYEE_ID NOT NULL NUMBER(6)
FIRST_NAME VARCHAR2(20)
LAST_NAME NOT NULL VARCHAR2(25)
EMAIL NOT NULL VARCHAR2(25)
PHONE_NUMBER VARCHAR2(20)
HIRE_DATE NOT NULL DATE
JOB_ID NOT NULL VARCHAR2(10)
SALARY NUMBER(8,2)
COMMISSION_PCT NUMBER(2,2)
MANAGER_ID NUMBER(6)
DEPARTMENT_ID NUMBER(4)
output format is something like this
department employee colleague
20 fay hartstein
20 hartstein Fay
50 davies matos
and so on..
i am getting duplicated values. I got 3530 rows.i am having 107 rows in employees and 33 row in departmentYou have what is know an a cartesion product.
SQL> select 107 * 33 from dual;
107*33
3531You need to Join
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/queries7.htm#2054014 -
How eliminating duplicated values from selecItem's List...
Hi guys,
i've a problem.
I've a list of selectItem elements.
private List<SelectItem> names;
filled with some values.
In this values there are some duplicated values, so i need to eliminate them.
How can i do it?
Please help me,thanksthanks very much...
but i have a problem.
I need to use ArrayList.
What i want now is creating a Set and copying in it the arraylist....it should work???
I've tried in this manner
Once i've created the arrayList names
i've defined
private Set<SelectItem> names2;and i've done
names2=new HashSet();
names2.addAll(names);calling in my page names2.
The problem is that it shows me the same list, with changed order, but without eliminating duplicated values.
Can you help me? -
Duplicated values when added to list of list
Hey all,
I'm making a list of lists, when I print the values just after adding in the list of list everything seems fine, but when I print that list where I call it it has duplicate value instead of the 2 different that I see when I first print it, I really don't know what's wrong.
I tried 2 different declarations for the list of list but is the same result, I also tried using index to add the list but no change either.
What is wrong? or how should I do it instead.
Thanks in advance
The code is this
public class ReadFile extends Metrics{
public List loadFile(String filename) throws IOException{//void
FileInputStream fstream = null;
///TRACE POINTS
List<TracePoint> CharPoints=new ArrayList<TracePoint>();
List<List> ListaChars = new ArrayList<List>();
//List<List<TracePoint>> ListaChars = new ArrayList<List<TracePoint>>();
try {
fstream = new FileInputStream(filename);//"xy.dat");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
Normalize norm = new Normalize();
//Read File Line By Line
while((strLine = br.readLine())!= null) {
int INDEX=0;
///READING VALUES FROM XY FILE and splittting
String[] temp = strLine.split(" ");
///clear list before reusing it
CharPoints.clear();
String[] tempNorm = norm.normalize(temp, 0, 1);
for (int i = 1 ; i < tempNorm.length ; i=i+2){
CharPoints.add(new TracePoint(Float.parseFloat(tempNorm),Float.parseFloat(tempNorm[i+1])));
ListaChars.add(INDEX, CharPoints);
System.out.println(" Charpoints is "+ CharPoints);
System.out.println(" LISTofCHARS is "+ ListaChars);
INDEX++;
//Close the input stream
in.close();
}catch (FileNotFoundException ex) {
Logger.getLogger(ReadFile.class.getName()).log(Level.SEVERE, null, ex);
}finally {
try {
fstream.close();
} catch (IOException ex) {
Logger.getLogger(ReadFile.class.getName()).log(Level.SEVERE, null, ex);
//return CharPoints;
return ListaChars;
public static void main(String args[]) throws IOException{
ReadFile test2 = new ReadFile();
List<List> characters = new ArrayList<List>();
characters = test2.loadFile("xy.dat");
//System.out.println("\ncharacters = " +" "+ characters.get(0));
The result is this, the first look like its copying ok, but when the second is added is duplicated and the first value is not there anymoreCharpoints is [TracePoint: 0.395683, 0.913669, 0.000000, TracePoint: 0.136691, 0.928058, 0.000000, TracePoint: 0.000000, 1.000000, 0.000000]
LISTofCHARS is [[TracePoint: 0.395683, 0.913669, 0.000000, TracePoint: 0.136691, 0.928058, 0.000000, TracePoint: 0.000000, 1.000000, 0.000000]]
Charpoints is [TracePoint: 1.000000, 0.004096, 0.000000, TracePoint: 0.999937, 0.003151, 0.000000, TracePoint: 0.999811, 0.001765, 0.000000, TracePoint: 0.998866, 0.000000, 0.000000]
LISTofCHARS is [[TracePoint: 1.000000, 0.004096, 0.000000, TracePoint: 0.999937, 0.003151, 0.000000, TracePoint: 0.999811, 0.001765, 0.000000, TracePoint: 0.998866, 0.000000, 0.000000], [TracePoint: 1.000000, 0.004096, 0.000000, TracePoint: 0.999937, 0.003151, 0.000000, TracePoint: 0.999811, 0.001765, 0.000000, TracePoint: 0.998866, 0.000000, 0.000000]]
Edited by: mtiv on Oct 24, 2009 6:02 PMwhile((strLine = br.readLine())!= null) {
int INDEX=0;
INDEX++;
}On each iteration of the while loop, index equals 0. Try moving the variable index outside of the while loop.
List<TracePoint> CharPoints=new ArrayList<TracePoint>();By convention variable names begin with a lower case letter, it is an important practise to live by as I was lead to believe CharPoints was a class at first.
Mel -
If I change the external value of the field EPSTP concerning a language translation,in the following example (ES) from V to U, when I receive a SAP upgrade will I loose the new value - U?
Is it going to be replaced by V?
Int Code
<b>7</b>
Language Ext Code
PT U
DE U
EN U
FR U
ES <b> V</b>Hi, You could use Mass change functionality to change the Item Cat. Grp. Otherwise, Item cat group VCIT barely has any effect except for requirement type. You could continue to use NORM but jus make sure all integration points are tuned up as desired result or change ITEM cat. Grp by mass change.
Pls reward if helpful. -
Eliminating the duplicated values
Hi,
I have an array and i am filing this array with values which comes from defined function and these values are some time duplicated.
can any one tell me how can i eliminate them?
hope to hear from you.
Best regards
Yasir NomanHi Yasir,
What about using Hashtable instead?
Regards,
Marc -
How to find duplicated values in rows obtained from multiple tables
Hi.
I need to find the duplicates stored in different tables of my database. I have some tables like the following model (I know it could be nonsense, but that's because it's simplified):
table person { id, name, surname }.
table zoo {id, owner, name, city} (zoo.owner -> person.id)
table area {id, zoo, type, name} (area.zoo -> zoo.id).
table dog {id, area, name, colour} (dog.area -> area.id)
table elephant {id, area, name, height} (elephant.area -> area.id)
As ids are autoincremental, it could happen that a person has two zoos with identical areas (meaning, these areas has the same type and name, same dogs (same name and colour) and same elephants (same name and height)). In an example with data:
person
id name surname
p1 john doe
zoo
id owner name city
z1 p1 central NY
z2 p1 central NY
area
id zoo type name
a1 z1 open main
a2 z2 open main
dog
id area name colour
d1 a1 jaro brown
d2 a1 chispa white
d3 a2 jaro brown
d4 a2 chispa white
elephant
id area name height
e1 a1 dumbo 5
e2 a1 elphy 4
e3 a2 dumbo 5
e4 a2 elphy 4
That is: John Doe has two zoos in the same city and with the same name. These two zoos, has one open main area each. Each of these areas has two dogs with the same names and colours and two elephants with the same names and heights. So this zoos would be identical. What I want is to delete z2 zoo.
I'd like to find a SQL function which returns me the id of one of these zoos, so it can respond to the question. Has the person called "John Doe" more than one area with the same type, name, dogs and elephants?
Is it possible?Hi,
Interesting problem!
Two distinct zoos are duplicates of each other if they have the same owner, the same name, the same areas, and the same animals in each of those areas.
It's pretty easy to tell if two zoos are distinct, but have the same owner and name. We could do that with a self-join:
SELECT z1.*
, z2.id AS id_2
FROM zoo z1
JOIN zoo z2 ON z1.owner = z2.owner
AND z1.name = z2.name
AND z1.id < z2.idBut how can we tell if two zoos that meet these criteria have the same aminals in the same areas? (It amuses me to call these the "critter criteria".)
One way is to make a list, for each zoo, of all the animals, with all their attributes (that is, the attributes that matter for determining if they are the same), in each area, and then see if the lists for those two zoos is identical. Like this:
WITH all_animals AS
SELECT d.id, d.area
, d.name -- || '~' || d.colour || ...
AS attributes
, 'DOG' AS animal
FROM dog d
UNION ALL
SELECT e.id, e.area
, e.name -- || '?`' || e.height || ...
AS attributes
, 'ELEPHANT' AS animal
FROM elephant e
-- UNION ALL ... cat ... monkey ...
, got_analytics AS
SELECT z.id AS zoo_id
, ar.type -- , ar.name, ...
, an.animal
, an.attributes
, COUNT (*) OVER ( PARTITION BY z.id ) AS cnt
, ROW_NUMBER () OVER ( PARTITION BY z.id
ORDER BY ar.type -- , ar.name, ...
, an.animal
, an.attributes
) AS r_num
FROM zoo z
LEFT OUTER JOIN area ar ON ar.zoo = z.id
LEFT OUTER JOIN all_animals an ON an.area = ar.id
SELECT z1.*
, z2.id AS id_2
FROM zoo z1
JOIN zoo z2 ON z1.owner = z2.owner
AND z1.name = z2.name
AND z1.id < z2.id
WHERE NOT EXISTS
SELECT type -- , name, ...
, animal, attributes
, cnt, r_num
FROM got_analytics
WHERE zoo_id = z1.id
MINUS
SELECT type -- , name, ...
, animal, attributes
, cnt, r_num
FROM got_analytics
WHERE zoo_id = z2.id
ORDER BY z1.id
, z2.id
;The first sub-query, all_animals, combines all the animals from all of the separate species tables. For each one, it makes a delimited list (the attributes column) of the columns that count in determining if 2 animals are the same. Different species may have different attributes and different numbers of attributes. The lists have to be delimited by some sub-string (not necessarily a single character) that can never occur in any of the attributes for that species. For example, dogs may never have '~' in their names (or their colours, if you expand the example to include colour). Elephants might have any character, but never have a '?' followed immediately by a grave accent '`'.
The next sub-query, got_analytics, joins the zoo and area tables to this combined list of animals. The joins are outer joins, so we can detect as duplicates two zoos that have no areas, or two areas that have no animals.
In the main query, I used MINUS to tell if the lists for two given zoos were identical. If x MINUS y produces no results, then every row in x has a matching row in y. To say that x and y are identical, we also have to know that every row in y has a matching row in x. Rather than do another MINUS, I counted the rows (got_analytics.cnt), so that if y has more rows than x, no rows will match when we do the MINUS.
Here's the output I got from your sample data:
` ID OWNER NAME ID_2
1 1 CENTRAL NY 2This shows the distinct ids, and the common attributes, of all distinct pairs of zoos that match. You can join this to the person table, if you want to see details about the owner.
If a query is correct, it will not only find all the results it is supposed to find; it will also not find all the results it is not supposed to find, for all the various reasons. I added some more sample data to test one such reason:
INSERT INTO ZOO (ID, OWNER, NAME) VALUES (91, 1, 'CENTRAL NY');
INSERT INTO AREA (ID, ZOO, TYPE) VALUES (92, 91, 'MAIN');
INSERT INTO DOG (ID, AREA, NAME) VALUES (93, 92, 'JARO');
INSERT INTO DOG (ID, AREA, NAME) VALUES (94, 92, 'CHISPA');Zoo 91 is identical to zoos 1 and 2, except that 91 has no elephants. To thoroughly test this solution, you need to add some more test data, especially zoos that will not be selected for various reasons: for example, two zoos that have all the same animals, but different numbers of areas, or that both have two areas, but the animals are distributed differently between the areas. -
Empty report returned from WEBI and Crystal report when using external hier
Hi,
WEBI and Crystal report build from BEX query returned empty report when we used external hierarchy 0PROFIT_CTR. In BEX we don't have any problems with it.
No authority check is perfomed on the hierarchy when we start the report in WEBI/Crystal. Only check on the hierarchy is performed when the root authorization is assigned to the userWe using BO4 SP12
-
I created a very simple car reservation system in CF.
Basically, the customer enters their account number, the start date
(pickup) and end date (return). At the end of the month, i simply
count (sum) the number of occurances of each account number,
calculate a percentage, and bill according to the percentage. Now a
new requirement has come up and i have to bill according to the
number of days they have the car. I know I have to do a datediff
between end date and start date to figure out the number of days.
If it is 0 or 1, then it is one day and I only count the account
number once. If it is 2 days, then I have to count it twice, even
thought it is only entered once. Based on the datediff value, how
do I add and/or count the account number that number of times.The syntax for datediff varies from db to another, but this
should show you the logic.
select accountnum,
sum(case when returndate <> pickupdate then
datediff(day, returndate, pickupdate
else 1 end) days
from yourtables
where whatever
group by accountnum -
Move row based on one duplicated value
is it possbile to move entire rows base on just the value in the first column?
1 a
1 b
2 c
2 d
the result should be
1 a
2 cYes - double the header row, then use a formula like the one that I posted but start in row 1, with the formula
=COUNTIF($A$1:$A1,$A1)
Then copy down, copy that column, paste as values, and finally, sort the entire table
based on that value. Then List1 will all have 1s in that column, List2 will have 2s, etc. -
Macally firewire 400 external HD - Duplicated connection id.
I recently bought 3 firewire 400 external HD. My G5 has 2 400 firewire ports. There is not problem connecting disk 1 and 2, in a daisy chain to any of the 2 ports or each disk independently to each port. Same thing is true for disks 2 and 3. But when I tried to have the three disks simultaneously the system automatically disconnect disk 1 and 3. In summary disk 1 and 3 can not be connected simultaneously.
Using disk utility I realized that there is something called connection ID for each disk and disk 1 and 3 both have the same id. Could it be the reason for the problem? Is it assigned by the operating system or fixed in the external HD? if so, how do I change it?Hi-
As DaddyPaycheck has advised, daisy chaining isn't really a good idea. Reports of drive problems, lost/corrupt data, due to daisy chaining, aren't hard to find, Mac or PC......
There are noted instances of external drive makers housings that will not support over two drives (total) in the chain.
Using disk utility I realized that there is something called connection ID for each disk and disk 1 and 3 both have the same id.
The report of bus location of the external housing controller to the I/O controller of the system is how the BSD (operating system) assigns a name (actually an address). Each device should have a unique ID. This is not something that one can manually assign; you cannot change it.
Could it be the reason for the problem?
The problem you are experiencing could indicate a conflict between the drive housing controllers and/or firmware version. It could be a malfunction of a controller, as well.
I would follow the excellent advice received, and get a FW card or hub before some important data is trashed.
Also, because there is some question in my mind as to the health of the external housing(s), I would definitely inquire with Macally Support regarding the matter. -
Why does this keep duplicating values?
Hi, I have this sub vi that reads opc values(addresses) from a server across a local network. It uses a data socket read within a for loop to pass these values into an array. The problem i have is every so often it duplicates the same value rather than just reading the exact address in the opc array.
e.g.
123 123
103 103
110 103
121 110
Which may values that i save in a spread sheet out of sequence. Anyone knows whats wrong here?
Stuart
Attachments:
RandD Cell room Software Project.llb 415 KBYour code has a lot of issues.
First do a block diagram cleanup, you have a lot of wires with unnecessary bends and sections of code scattered all over the place.
Why do you have 13? stop buttons. Then proceed to crash your code by wiring the real Stop button to a Stop LabVIEW stop sign? That is like hitting the abort button on the toolbar. Not a good way to stop a program.
I think you are seeing the effects of a race condition caused by the use of local variables. You are writing to an indicator on one loop and reading from its local variable in another loop. Depending on where each independent parallel loop is in its execution, you could read duplicate values (i.e., the indicator was not updated in between), or miss a value (indicator updated twice without being read.) You should be using a producer/consumer architecture with queues to pass data if you want to avoid this problem.
I would suggest spending more time on the forums reading up on race conditions, queues, and the LabVIEW style guide.
Message Edited by Ravens Fan on 01-28-2010 11:24 AM -
Duplicating values in Qualified Tables.
Hi all
We're using a vendor repository that contains a qualified table about company code information. We use the standard xsd file (CREMDM) for export the master data to R3, but we want to duplicate the information (segment E1LFB1M) as many times as neccesary according to a relation between company and purchasing organization:
Ej.
Purchasing Organization Company
ABMX 126
ABMX 127
ABMX 128
ABMX 129
When the record is created, the user only create it for one Purchasing organization and one company (qualified), and we need the same information entered by the user to be repeated for all the companies. Is there anyway to do this trhu syndication map or data manager formula?
Idoc looks like:
<?xml version="1.0" encoding="UTF-8" ?>
- <CREMDM04>
- <IDOC BEGIN="1">
- <E1LFA1M SEGMENT="1">
<MSGFN>005</MSGFN>
<LIFNR>0010001000</LIFNR>
<ANRED>/</ANRED>
<BRSCH>SEJ</BRSCH>
<DATLT>/</DATLT>
<DTAWS>/</DTAWS>
<ERDAT>/</ERDAT>
<ERNAM>/</ERNAM>
<KTOKK>VPRN</KTOKK>
<KUNNR>/</KUNNR>
<LAND1>/</LAND1>
<LNRZA>/</LNRZA>
<NAME1>/</NAME1>
<NAME2>/</NAME2>
<NAME3>/</NAME3>
<NAME4>/</NAME4>
<ORT01>/</ORT01>
<ORT02>/</ORT02>
<PFACH>/</PFACH>
<PSTL2>/</PSTL2>
<PSTLZ>/</PSTLZ>
<REGIO>/</REGIO>
<SORTL>/</SORTL>
<SPRAS>/</SPRAS>
<STCD1>BBQ030122SEO</STCD1>
<STKZU>X</STKZU>
<STRAS>/</STRAS>
<TELBX>/</TELBX>
<TELF1>/</TELF1>
<TELF2>/</TELF2>
<TELFX>/</TELFX>
<TELTX>/</TELTX>
<TELX1>/</TELX1>
<XCPDK>/</XCPDK>
<VBUND>/</VBUND>
<FISKN>/</FISKN>
<ADRNR>/</ADRNR>
<MCOD1>/</MCOD1>
<MCOD2>/</MCOD2>
<MCOD3>/</MCOD3>
<REVDB>/</REVDB>
<KTOCK>/</KTOCK>
<PFORT>/</PFORT>
<WERKS>/</WERKS>
<LTSNA>/</LTSNA>
<WERKR>/</WERKR>
<PLKAL>/</PLKAL>
<DUEFL>/</DUEFL>
<TXJCD>/</TXJCD>
<FITYP>03</FITYP>
<STCDT>04</STCDT>
<ACTSS>PG</ACTSS>
+ <E1LFA1A SEGMENT="">
+ <E1ADRMAS SEGMENT="1">
+ <E1BPAD1VL SEGMENT="1">
+ <E1BPAD1VL1 SEGMENT="1">
+ <E1BPADTEL SEGMENT="1">
- <E1LFB1M SEGMENT="">
<MSGFN>005</MSGFN>
<LIFNR>0010001000</LIFNR>
<BUKRS>102</BUKRS>
<AKONT>0021051001</AKONT>
<ZWELS>C</ZWELS>
<ZTERM>Z000</ZTERM>
<FDGRV>A1</FDGRV>
<REPRF>X</REPRF>
<HBKID>BNMX</HBKID>
<ALTKN>62058</ALTKN>
</E1LFB1M>+ <E1LFM1M SEGMENT="">
+ <E1WYT3M SEGMENT="">
<MSGFN>005</MSGFN>
<LIFNR>0010001000</LIFNR>
<EKORG>ABMX</EKORG>
<PARVW>PR</PARVW>
</E1WYT3M>
</E1LFM1M>
+ <E1LFBKM SEGMENT="1">
+ <E1LFASM SEGMENT="1">
</E1LFA1M>
</IDOC>
</CREMDM04>Hi Jose,
In the syndicator, after opening the XSD, go to the destination properties,
Select the segment - E1LFB1M and in the properties pane, Tick the property - Repeatable XMl Node in the second column.
I hope this will solve your problem.
Thanks and Regards
Nitin Jain -
Flex Help - Accordion List - External XML - Duplicate Values
Hi, I am having what's got to be a really simple problem. You see: http://acompanydesign.com/wcr/11/
The menu headings come out fine, however the links within all duplicate. Can't seem to figure out why. Can you help?
MXML
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import flash.events.Event;
import mx.core.Application;
public var app:Object = mx.core.Application.application;
//public var myComp1:Menu1 = app.Menu1.newLink;
//[Bindable]
//public var navData:ArrayCollection;
[Bindable]public var str:String;
[Bindable] public var httpServiceURL:String;
[Bindable]public var xmlData:Object = new Object();
[Bindable]public var headingData:Object = new Object();
[Bindable]public var linkData:Object = new Object();
[Bindable]public var newLink:String;
private function init():void{
httpServiceURL = "properties1.xml?" + Math.round(Math.random() * ( 1+1000 ));
srv.send();
private function getHeadings(evt:ResultEvent):void{
xmlData = evt.result;
headingData = xmlData.a_nav;
linkData = headingData.heading[1];
private function getLinkObject(a:Number):Object{
linkData = headingData.heading[a];
return linkData;
public function getLinks(a:Number):String{
str = linkData.link[a].linkname;
return str;
public function StrapPrint(event:MouseEvent):void
newLink = event.currentTarget.getRepeaterItem();
app.VideoWindow.source = newLink;
app.VideoWindow.play();
//ExteriorUpperPrint(event)
//navigateToURL(new URLRequest(event.currentTarget.getRepeaterItem()), '_top')
]]>
</mx:Script>
<mx:HTTPService id="srv" url="{httpServiceURL}" resultFormat="object" result="getHeadings(event);"/>
<mx:Accordion id="accordion" width="193" height="380" x="0" y="0">
<mx:Repeater id="rep" dataProvider="{headingData.heading}">
<mx:VBox label="{rep.currentItem.title}" styleName="headerBox" backgroundColor="#fafafa" width="{rep.currentItem.width}" height="{rep.currentItem.height}">
<mx:Repeater id="rep2" dataProvider="{getLinkObject(rep.currentIndex).link}">
<mx:LinkButton click="StrapPrint(event)" label="{getLinks(rep2.currentIndex)}" />
</mx:Repeater>
</mx:VBox>
</mx:Repeater>
</mx:Accordion>
XML
<a_nav>
<heading title="Category5" width="230" height="500">
<link linkname="Video 45">2</link>
<link linkname="Video 46">3</link>
<link linkname="Video 47">4</link>
<link linkname="Video 48">5</link>
<link linkname="Video 49">6</link>
<link linkname="Video 50">7</link>
<link linkname="Video 51">8</link>
<link linkname="Video 52">9</link>
<link linkname="Video 53">10</link>
<link linkname="Video 54">11</link>
<link linkname="Video 55">1</link>
</heading>
<heading title="Category 6" width="230" height="500">
<link linkname="Video 56">http://www.acompanydesign.com</link>
<link linkname="Video 57">http://www.acompanydesign.com</link>
<link linkname="Video 58">http://www.acompanydesign.com</link>
<link linkname="Video 59">http://www.acompanydesign.com</link>
<link linkname="Video 60">http://www.acompanydesign.com</link>
<link linkname="Video 61">http://www.acompanydesign.com</link>
<link linkname="Video 62">http://www.acompanydesign.com</link>
<link linkname="Video 63">http://www.acompanydesign.com</link>
<link linkname="Video 64">http://www.acompanydesign.com</link>
<link linkname="Video 65">http://www.acompanydesign.com</link>
<link linkname="Video 66">http://www.acompanydesign.com</link>
</heading>
<heading title="Category 7" width="230" height="500">
<link linkname="Video 56a">http://www.acompanydesign.com</link>
<link linkname="Video 57a">http://www.acompanydesign.com</link>
<link linkname="Video 58a">http://www.acompanydesign.com</link>
<link linkname="Video 59a">http://www.acompanydesign.com</link>
<link linkname="Video 60a">http://www.acompanydesign.com</link>
<link linkname="Video 61a">http://www.acompanydesign.com</link>
<link linkname="Video 62a">http://www.acompanydesign.com</link>
<link linkname="Video 63a">http://www.acompanydesign.com</link>
<link linkname="Video 64a">http://www.acompanydesign.com</link>
<link linkname="Video 65a">http://www.acompanydesign.com</link>
<link linkname="Video 66a">http://www.acompanydesign.com</link>
</heading>
</a_nav>Hi, I am having what's got to be a really simple problem. You see: http://acompanydesign.com/wcr/11/
The menu headings come out fine, however the links within all duplicate. Can't seem to figure out why. Can you help?
MXML
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.utils.ArrayUtil;
import mx.rpc.events.ResultEvent;
import flash.events.Event;
import mx.core.Application;
public var app:Object = mx.core.Application.application;
//public var myComp1:Menu1 = app.Menu1.newLink;
//[Bindable]
//public var navData:ArrayCollection;
[Bindable]public var str:String;
[Bindable] public var httpServiceURL:String;
[Bindable]public var xmlData:Object = new Object();
[Bindable]public var headingData:Object = new Object();
[Bindable]public var linkData:Object = new Object();
[Bindable]public var newLink:String;
private function init():void{
httpServiceURL = "properties1.xml?" + Math.round(Math.random() * ( 1+1000 ));
srv.send();
private function getHeadings(evt:ResultEvent):void{
xmlData = evt.result;
headingData = xmlData.a_nav;
linkData = headingData.heading[1];
private function getLinkObject(a:Number):Object{
linkData = headingData.heading[a];
return linkData;
public function getLinks(a:Number):String{
str = linkData.link[a].linkname;
return str;
public function StrapPrint(event:MouseEvent):void
newLink = event.currentTarget.getRepeaterItem();
app.VideoWindow.source = newLink;
app.VideoWindow.play();
//ExteriorUpperPrint(event)
//navigateToURL(new URLRequest(event.currentTarget.getRepeaterItem()), '_top')
]]>
</mx:Script>
<mx:HTTPService id="srv" url="{httpServiceURL}" resultFormat="object" result="getHeadings(event);"/>
<mx:Accordion id="accordion" width="193" height="380" x="0" y="0">
<mx:Repeater id="rep" dataProvider="{headingData.heading}">
<mx:VBox label="{rep.currentItem.title}" styleName="headerBox" backgroundColor="#fafafa" width="{rep.currentItem.width}" height="{rep.currentItem.height}">
<mx:Repeater id="rep2" dataProvider="{getLinkObject(rep.currentIndex).link}">
<mx:LinkButton click="StrapPrint(event)" label="{getLinks(rep2.currentIndex)}" />
</mx:Repeater>
</mx:VBox>
</mx:Repeater>
</mx:Accordion>
XML
<a_nav>
<heading title="Category5" width="230" height="500">
<link linkname="Video 45">2</link>
<link linkname="Video 46">3</link>
<link linkname="Video 47">4</link>
<link linkname="Video 48">5</link>
<link linkname="Video 49">6</link>
<link linkname="Video 50">7</link>
<link linkname="Video 51">8</link>
<link linkname="Video 52">9</link>
<link linkname="Video 53">10</link>
<link linkname="Video 54">11</link>
<link linkname="Video 55">1</link>
</heading>
<heading title="Category 6" width="230" height="500">
<link linkname="Video 56">http://www.acompanydesign.com</link>
<link linkname="Video 57">http://www.acompanydesign.com</link>
<link linkname="Video 58">http://www.acompanydesign.com</link>
<link linkname="Video 59">http://www.acompanydesign.com</link>
<link linkname="Video 60">http://www.acompanydesign.com</link>
<link linkname="Video 61">http://www.acompanydesign.com</link>
<link linkname="Video 62">http://www.acompanydesign.com</link>
<link linkname="Video 63">http://www.acompanydesign.com</link>
<link linkname="Video 64">http://www.acompanydesign.com</link>
<link linkname="Video 65">http://www.acompanydesign.com</link>
<link linkname="Video 66">http://www.acompanydesign.com</link>
</heading>
<heading title="Category 7" width="230" height="500">
<link linkname="Video 56a">http://www.acompanydesign.com</link>
<link linkname="Video 57a">http://www.acompanydesign.com</link>
<link linkname="Video 58a">http://www.acompanydesign.com</link>
<link linkname="Video 59a">http://www.acompanydesign.com</link>
<link linkname="Video 60a">http://www.acompanydesign.com</link>
<link linkname="Video 61a">http://www.acompanydesign.com</link>
<link linkname="Video 62a">http://www.acompanydesign.com</link>
<link linkname="Video 63a">http://www.acompanydesign.com</link>
<link linkname="Video 64a">http://www.acompanydesign.com</link>
<link linkname="Video 65a">http://www.acompanydesign.com</link>
<link linkname="Video 66a">http://www.acompanydesign.com</link>
</heading>
</a_nav>
Maybe you are looking for
-
Can't download U2 album (this computer is already associated with an Apple ID)
Title pretty much sums it up. I can see the recently released, free-of-charge U2 album in my purchases, but when I click on the cloud icon I get the message that "This computer is already associated with an Apple ID" which is not at all revealing of
-
Hey guys, my name is Armando I bought this laptop back in April -->http://www.walmart.com/ip/HP-Anodized-Silver-17.3-Pavilion-17-e119wm-Laptop-PC-with-AMD-A10-5750M-Qu... cause my old HP laptop had too many problems. Anyway I was wondering if thi
-
Can I plug a Roland Mini Cube into my Imac G5?
I usually play everything by hookin' my LP to a M-Audio AUDIO BUDDY (pre-amp) then outta that into my Imac G5 - I use Amplitube and Guitar Rig software within LOGIC EXPRESS... I have a couple of old amps that suck - was thinking of purchasing a Rolan
-
When downloading a CD album, if it contains different artists, the album is split up into separate albums/icons. How do I get all songs into one album (just like the original CD)?
-
SD end to end Configuration document
Hi Friends, i am Quality department and very recently shifted to SD.so if any one of you having the SD end to end Configuration document, please forward the same to (removed by moderator) Thanks in advance, Srinivas.