Combination of data in foreach
Hi,
I have a fox formula with a foreach statement. In my layout When I delete a record, my foreach still seeing the combination of characteristics.
Why this occurrs? Is this behind normal?
Thank,
Victoria.
I was seeing combination of characteristics deleted in my foreach because had a keyfigure with value that was filled in other layout.
Similar Messages
-
How do I take two separate non numeric fields in a acrobat form and combine the data to display in a third separate field?
You have to use custom JavScripting to concatenate the first 2 fields. You cannot use the first 2 calculation options because they force the values of the fields to a numeric value or ignore string values.
Possible scripts for the 3rd field are:
event.value = this.getField("Text1").valueAsString + " " + this.getField("Text2").valueAsString;
or
event.value = this.getField("Text1").valueAsString.concat( " ", this.getField("Text2").valueAsString);
If you do not want change the separator or not show the separator when on or the other field is empty, you will need to add more code to adjust for change.
The above scripts will also concatenate number because the field values are read as strings and not numbers.
There is also a generalized user written function to concatenate up to 3 fields with a separator that adjust for missing data. -
Can we combine multiple data sources in single report?
<span style="font-size: 10pt; font-family: Verdana">Can we combine multiple data sources in single report?</span>
If you can't do this at the Metalayer (BVs or Universe) - then subreports and shared variables are the method for CR to use multiple datasources in the same report.
-
Combine two date field into one timestamp field
Hello all,
I need help combining two date fields into one timestamp field.
I have separate Date and Milliseconds fields and want to
combine to one Timestamp field can some suggest sql???This is my data
01 JAN 1989 12:01:00.001 AM
this is my insert drag_time is a timestamp field in another schema
INSERT
INTO DRAG (drag_time)
SELECT to_char(drag_time, 'DD MON YYYY HH12:MI:SS')||(drag_second)||to_char(drag_time, ' AM')
FROM sa.drag;
This is the error
ERROR at line 3:
ORA-01855: AM/A.M. or PM/P.M. required -
Combining heterogeneous data sources in a single data target
Dear Experts,
I have a requirement as below for combining multiple data sources (different key fields) into a single target
Target Key Fields : sales doc, item, schdl line, delivery no and delivery item.
1 source key fields : sales doc and item (VAITM)
2 source key fields :sales doc, item, schdl line, delivery no and delivery item (V_SSL)
3. source key fields : delivery number and delivery item. (VCITM)
Is there an innovative way of combining all these records in a single record in data target rather then creating multiple entries (due to different source keys) rather than using a conventional look up routines.
We are on BI 7.0.
Thanks,
Rita
Edited by: Rita Tripathi on Jan 19, 2012 7:05 PMHi,
Target Key Fields : sales doc, item, schdl line, delivery no and delivery item.
1 source key fields : sales doc and item (VAITM)
2 source key fields :sales doc, item, schdl line, delivery no and delivery item (V_SSL)
3. source key fields : delivery number and delivery item. (VCITM)
You can actually create a View on (1) and (2) tables in SE11 and then create a generic datasource in RSO2.
You create one more generic DS from (3) table.
Combine these two DS in an Infosource and update to DSO.
Regards,
Suman -
Combine two date ranges in calender display
Using Apex 3.2, Oracle 10g, IE7
I have a calender that displays two date ranges: one that does a total count of assets over a one year period and the other is a breakdown of what assets are scheduled to be in use. I would like to combine them into one display (total - in use). Any suggestions or ideas on combining the date ranges?
code below * thank you Denes Kubicek *
select 'a href="f?p=&APP_ID.:27:&SESSION.::NO::'||'P27_TYPE:'||category_name||'">'||('Count Avail: '||to_char(asset))||' /a asset , SYSDATE -1 + LEVEL
FROM (SELECT (sysdate +365) - sysdate conn_level, count(a.id) asset, b.category_name FROM hd_asset_assets a, hd_asset_categories b WHERE a.category_id = :P23_SEARCH and a.category_id = b.id GROUP BY category_name)
CONNECT BY LEVEL <= conn_level
UNION ALL
SELECT ('In Use: '||b.asset_name) asset , session_date FROM TABLE (SELECT return_table_fn () AS session_table_type FROM DUAL) left join (select asset_name, category_id from hd_asset_assets) b on UPPER(title) = UPPER(b.asset_name) where b.category_id = :P23_SEARCH
Edited by: tread on Aug 4, 2009 1:29 PM
Edited by: tread on Aug 4, 2009 1:29 PMHi,
You would probably have to simplify the existing statement and then wrap it within another select statement that does a GROUP BY over the date column:
SELECT Datecolumn, AssetName, SUM(Total)-SUM(InUse) Available
FROM (
...your existing select statements ensuring that both statements return the same number/names of columns...
GROUP BY DateColumn, AssetNameAndy -
HELLO...
I hope you experts out there can help me. Consider the following (2) Tables in MSSQL:
1. TENDERED --> Primary Key = DATE / DOC_NO / PAYMENT_SEQ_NO
DATE
DOC_NO
PMNT_SEQ_NO
PAYCODE_TYPE
AMOUNT
2. TENDERED_CR_CARD -->Primary Key = DATE / DOC_NO / PAYMENT_SEQ_NO
DATE
DOC_NO
PMNT_SEQ_NO
CR_CARD_NO_MASKED
CR_CARD_NAME
CR_CARD_EXP_DATE
These two tables are certainly related, based on their Primary Key values.
Now, consider the following data in those two tables:
DATE
DOC_NO PMNT_SEQ_NO
PAYCODE_TYPE
AMOUNT
03/10/2014 100001
1
CASH
100.00
03/10/2014 100001
2
CASH
-9.75
03/10/2014 100002
1
CASH
50.00
03/10/2014 100002
2
VISA
100.00
03/10/2014 100002
3
VISA
250.00
03/10/2014 100003
1
MC
125.00
03/10/2014 100003
2
AMEX
75.00
DATE
DOC_NO PMNT_SEQ_NO CR_CARD_MASKED
NAME
CR_CARD_EXP
03/10/2014 100002 2 4225******801289
MARY JONES 2016/08/31
03/10/2014 100002 3 4121******637442
JOHN DOE 2015/04/30
03/10/2014 100003 1 5428******971134
MIKE BAKER 2018/09/30
03/10/2014 100003 2 3732*****344756
LINDA LIU 2017/07/31
OK...so what we NEED...is a Combined, SINGLE RECORD Audit Report type query.
The resulting query should show, based on the Data from above, the SINGLE LINE represented in the Attached Spreadsheet.
NOTE...what's important to point out here..is that ONLY the 'CASH' Tender gets "summed"...EACH INDIVIDUAL Credit Card record MUST have its own Field...as represented in the corresponding Columns of the Spreadsheet (i.e. PMT_TYP_1, AMT_1, PMT_TYP_2,
AMT_2, and so forth).
PLEASE HELP! Any suggestions/advice would be most appreciated!
Thank You!...MarkI would not do this in SQL if I could possibly avoid it. Instead do it in the front end.
If you must do it in SQL, this is a dynamic pivot on multiple columns. Naomi Nosonovsky has a blog at
http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/dynamic-pivot-on-multiple-columns/ on how to do that. Look especially at her second example using the claims table. Of course, you must do some manipulation even before you do the multi-column
pivot, since you must first combine all the cash entries.
So one way to do it would be to build a temp table with all the entries you have except the cash entries combined into one payment sequence number. To do that you may need specifications that are not clear to me from what you have given us. For
example, if PMT SEQ 1 is VISA, PMT SEQ 2 is CASH, PMT SEQ 3 is VISA, PMT SEQ 4 is CASH, and PMT SEQ 5 is VISA, you want to combine the two cash payments. So they become PMT SEQ 2? If so, what happens to PMT SEQ 4 - is it left N/A or does
PMT SEQ 5 become PMT SEQ 4?
But once you have this temp table with the cash payments combined in the algorithm you need, then you can use Naomi's method to do the multi-column pivot. Note that Naomi uses the code
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_Name = 'Claims'
to get the column names from the permanent table Claims. To get the column names from a temp table use code like the following. To find the column names in a temp table named #MyTempTable, do
From tempdb.sys.columns
Where object_id = OBJECT_ID('#MyTempTable')
But as I say, if feasible, I would do this in the front end, not in SQL. T-SQL is a very good language for storing and retrieving data, not so good at formatting it.
Tom -
Is there a way to combine matrix data?
If anyone can, please help me. Linear algebra is not my
specialty.
I am trying to make a function using the BitmapData.hitTest()
to see if two sprites on screen are hit.
I have got it working for sprites that are direct siblings
(ie they are on the root stage layer). However, if I nest sprites,
things get messy. The reason I want to test nested objects is so I
can test for collision with *parts* of other visual components, not
the whole thing as one.
I can get a proper tx, ty value for nested sprites by using
the localToGlobal functions, but these do not take into
consideration rotation. Is there something like localToGlobal that
works for an object's entire transform matrix (and if not, why
not?!)?
Does anyone have any advice?
The only thing I can think of is to go through a given
sprite's parents until it reaches the top (root) layer and collect
the matrix data on the way. But even if I do that, I don't know how
to add the matrices together properly. I am convinced I need to do
this. If I don't use the actual transform matrix, I cannot take
into account skewing, rotation, etc.Well, I seem to have found a way to at least combine matrices
using the concat() method. Still, I have to cycle through each
parent matrix from the target sprite to the top level (stage) to
get a universal comparison. -
Hash tables in combination with data references to the line type.
I'm having an issue with hash tables - in combination with reference variables.
Consider the following: (Which is part of a class) - it attempts to see if a particular id exists in a table; if not add it; if yes change it.
types: BEGIN OF TY_MEASUREMENT,
perfid TYPE zgz_perf_metric_id,
rtime TYPE zgz_perf_runtime,
execount TYPE zgz_perf_execount,
last_start TYPE timestampl,
END OF TY_MEASUREMENT.
METHOD START.
DATA: ls_measurement TYPE REF TO ty_measurement.
READ TABLE gt_measurements WITH TABLE KEY perfid = i_perfid reference into ls_measurement.
if sy-subrc <> 0.
"Didn't find it.
create data ls_measurement.
ls_measurement->perfid = i_perfid.
insert ls_measurement->* into gt_measurements.
endif.
GET TIME STAMP FIELD ls_measurements-last_start.
ls_measurement->execount = ls_measurement->execount + 1.
ENDMETHOD.
I get compile errors on the insert statement - either "You cannot use explicit index operations on tables with types HASHED TABLE" or "ANY TABLE". It is possible that.
If I don't dereference the type then I get the error LS_MEASUREMENT cannot be converted to the line type of GT_MEASUREMENTS.
I'm not looking to solve this with a combination of references and work ares - want a reference solution.
Thanks!
_Ryan
Moderator message - Moved to the correct forum
Edited by: Rob Burbank on Apr 22, 2010 4:43 PMI think it might work when you change it for
insert ls_measurement->* into TABLE gt_measurements.
For hashed table a new line here will be inserted according to given table key.
Regards
Marcin -
Using own SQLite DB in combination with Data Management
Hi,
Currently on a huge project we're we are using LCDS 3.1 in combination with a AIR 2.5 client.
I've been reading "Using Adobe LiveCycle Data Services ES2 version 3.1" and I have a question. In the chapter "Building an offline-enabled application" it says on the very first line:
"You can use an offline adapter with an AIR SQLite database to perform offline fills when a desktop client is disconnected from the LiveCycle Data Services server. An offline adapter contains the SQL queries for AIR SQLite for retrieving cached items like an assembler on the server retrieves items from the data source."
However, in my experience that AIR SQLite database is not just any DB but one that Datamanagment designs and generates itself, based on the Dto the DataManagement destination is managing. The offline adapter doesn't work like an assembler at all, because the documentation says you can only override the methods pertaining to constructing the WHERE, and ORDER BY parts of the queries, not the SELECT, CREATE, FROM,... parts.
In our case, we have a database on the server, constructed according to a very specific ERD, and we have a SQLite database on the client, also constructed according to a very specific ERD. What we want to do is execute every fill, create, update, delete against the offline cache and only synchronize with the backend when we want it the synchronize (technically possible by playing with the autoMerge, autoSaveCache, autoConnect,... properties). So what part of datamanagement can we customize to use our DB instead of a generated one?
Thx in advance!You are correct in noting that Data Management does not allow you to use your own database to store offline data. This data is exclusively managed by the LCDS library for the developer. The intent is that the local cache is a reflection of the server data, not an independent copy.
If you have an existing database in AIR, then you will have much more direct control over the querying and updating of that data by using the SQLite APIs directly.
That being said, you can in essence replicate the data stored on the server, managed by Data Management, in the offline cache. In an upcoming release (winter 2011) we will have a few features ('briefcases' and a 'changes-only' fill) that will make this story even more compelling for your use cases. But even with the 3.1 functionality, you can do something like the following:
Perform a fill() to collect the data you want to have available on the client, save this in the offline cache
Construct an Offline Adapter Actionscript class that implements the fills you want to perform on the local data
Use the DataService.localFill() API to perform all of the client application fills, turn off autoCommit.
When the client is online, call commit() to store client changes and call fill() to refresh the cached data.
This should give you some ideas on how you could go about constructing your app to leverage the offline features of Data Services.
Tom -
How do I combine the data of two different iPhones so the data is put together on one iPhone?
I have two iPhones. On both is different data, how do I combine this (in an easy way) so all of the data is put together on my new iPhone?
The agenda and music works ok with iCloud, but my old photos and notes not.Notes can be synced through iCloud as long as you have a @me.com account. The photos will need to be imported to a computer (Follow these steps: http://support.apple.com/kb/HT4083 ) and synced into the phones seperately through iTunes.
-
How to combine sql.Date with sql.Time into one?
I have a database where I keep dates and times separately, and getting date only and time only out of a java.util.Date is no problem thanks to the classes java.sql.Date and java.sql.Time. However, I need to read these values back in, put them back together, and then do date comparisons with java.util.GregorianCalendar. I tried just adding the millisecond long values together but that didn't seem to work, and I've tried setting the year, month, date, hours, minutes and seconds individually into a GregorianCalendar but I haven't figured that out yet. Certain queries work out better keeping the date and time separate in the database and it takes less bytes than a timestamp, so please don't suggest I use a timestamp!
Thanks for your help!
StephenYou can add the milliseconds (ms), but you need to use just part of it. For this example, let X be one more than the maximum number of units in time and also the minimum number of units in date. If we were using hours instead of ms X would be 24.
t = total ms from time
d = total ms from date
T = new combined time
T = ((d / X) * X) + (T % X);Add (the date, rounded to the nearest day) and (the portion of time which is less than a day). -
Hi Guys,
I have created 2 live office connections from 2 different Universes in Xcelsius. The Spreadsheet looks as shown below.
Connection 1:
Dept Name No. of Projects
A 1
B 2
C 3
Sum: 6
Connection 2:
Dept Name No. of Projects
A 1
B 2
C 3
D 4
Sum: 10
There can be more/less rows from one connection as compared to the other.
Now, I would like to combine both spreadsheet data and represent them in a single pie chart.
Could anyone please help me achieve this?Hi
try to use a merge dimension in webi this can help you.
or in universe try to have a join. -
Help with if/else in displaying data - (possibly foreach)
Hello all,
I've been trying to set something up, and I'm having difficulty getting it to work.
Lines 84-111 have become my biggest difficulty. I've got an if/else statement set up so that if one record has an image located on the localhost that image is pulled up. The way I have it now, this works great.
If I swap lines 93-96 with 102-105, and just tweek line 90, I can get it to work if the image is located on an alias and not the localhost.
The problem is that if I have it like it is now, I can't get both to work at the same time. So, I'm trying to get the if/else statement to apply to each record that is being pulled up. It seems like what it is doing now is choosing which part of the if/else statement it needs to use for the first record, and then applies that for all records.
Is there a way to have it coded like it is now for the if/else statement (because I want to be able to add multiple alias' and just check to see if the image is on the localhost or not); but have the image be displayed no matter if the image is located on the localhost or an alias?
The following is what I've got so far:
<?php
$search = $_GET['series'];
$query_begin=" SELECT * FROM movies WHERE movie_name_series = '$search' ";
$search_begin = mysql_query($query_begin) or die(mysql_error());
$row_begin = mysql_fetch_assoc($search_begin);
if($row_begin == 0){
?>
<script type="text/javascript"><!--
setTimeout('Redirect()',0000);
function Redirect()
location.href = 'index.php?content=noresult';
// --></script>
<?php
else
$query_display = "SELECT * from series WHERE series_id = '$search'";
$result_display = mysql_query($query_display);
$row_display = mysql_fetch_array($result_display, MYSQL_ASSOC);
$series_id = $row_diaplay['series_id'];
$series_name = $row_display['series_name'];
?>
<h2>All Movies in our Library categorized in the series <?php echo $series_name ?></h2>
<br />
<div style="float: left; width: auto">
Click on the name of the movie to edit the movie.
</div>
<br />
<hr size="1" noshade="noshade" />
<br />
<?php
$query="SELECT * FROM movies
INNER JOIN family_rating ON movies.movie_star_rating=family_rating.star_id
INNER JOIN alias ON movies.alias=alias.alias_id
INNER JOIN parent_alert ON movies.parent_alert=parent_alert.alert_id
INNER JOIN rating ON movies.movie_rating=rating.rating_id
WHERE movies.movie_name_series='$search'
ORDER BY movies.movie_name ASC";
$result= mysql_query($query)or die (mysql_error());
while($row=mysql_fetch_array($result)){
// Display the data
?>
<table width="200" style="margin: 20px">
<tr align="center">
<td valign="top">
<h1 style="font-size: 12px"><?php echo $row['movie_name']; ?></h1>
</td>
</tr>
<tr align="center">
<td valign="top" style="width: 100%; border-bottom: ridge #FFF; border-left: ridge #FFF; background: url(assets/images/transback.png) repeat; padding: 10px">
<a class="ToolText" onMouseOver="javascript:this.className='ToolTextHover'" onMouseOut="javascript:this.className='ToolText'">
<style media="screen" type="text/css">
#coverart {
display: block;
width: 110px;
height: 150px;
#coverart:hover {
background: url("assets/icons/play_movie.png") no-repeat 0 0;
background-size: 110px;
</style>
<p>
<form action="index.php?content=play_movie" method="post">
<input type="hidden" value="<?php echo $row['movie_id']; ?>" name="movie" />
<input type="hidden" value="<?php echo $row['warning'] ?>" name="warning" />
<?php
if ($row['alias_name']='localhost') {
?>
<input onmouseover='this.src="assets/icons/play_movie.png"'
onmouseout='this.src="movies/coverart/<?php echo $row['art']; ?>"'
type="image" src="movies/coverart/<?php echo $row['art']; ?>"
style="border: none" height="150" width="110" />
<?php
}else{
?>
<input onmouseover='this.src="assets/icons/play_movie.png"'
onmouseout='this.src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"'
type="image" src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"
style="border: none" height="150" width="110" />
<?php
?>
</form>
</p>
<span><h2 align="center"><?php echo $row['movie_name']; ?></h2>
<?php echo $row['rating_name']; ?>
<h4><?php echo $row['description']; ?></h4>
<?php
if($row['parent_alert']='1') {
?>
<p align"center"><img src="assets/icons/<?php echo $row['alert_file_name']; ?>"></p></span>
<?php
} else {
?>
</a>
<img src="assets/icons/s_<?php echo $row['star_file_name']; ?>" />
</td>
</tr>
</table>
<?
?>
I've looked through a number of tutorials and it's been indicated to use a for each loop. However, I can't seem to get this to work. Is there anything I can do to get this to work the way I am trying to? Is it a problem with my if/else or do I need a for each? If I need a for each, how do I do that?
Thanks.Thank you for your reply. I apologize for not being as clear as I needed to be, so I'll try and explain better.
I've got a page that pulls up some records from a database, where I've got an if / else statement as part of the section where it displays the data.
<?php
if ($row['alias_name']='localhost') {
?>
<input onmouseover='this.src="assets/icons/play_movie.png"'
onmouseout='this.src="movies/coverart/<?php echo $row['art']; ?>"'
type="image" src="movies/coverart/<?php echo $row['art']; ?>"
style="border: none" height="150" width="110" />
<?php
}else{
?>
<input onmouseover='this.src="assets/icons/play_movie.png"'
onmouseout='this.src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"'
type="image" src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>"
style="border: none" height="150" width="110" />
<?php
?>
When the records are pulled, it seems like only the first part of the if / else statement is being applied to every record that is being pulled. The problem is if I've got records like the following:
Record one - (file on the host computer)
needs to be displayed from the condition
src="movies/coverart/<?php echo $row['art']; ?>"
Record two - (file on networked external hard drive)
needs to be displayed from the condition
src="http://<?php echo $row['ip_address']; ?>/<?php echo $row['alias_name']; ?>/coverart/<?php echo $row['art']; ?>
The way it's coded now, only record one will display the image (record two will not display the image). If I swap the order of the conditions, only record two will display the image (record one will not display the image).
How do I get both record one and record two to display the image when both appear on the same page from a single search query?
If I still did not explain it well enough, please let me know and I will try and do better. Again, thank you for your help. -
Report/Widget for combined performance data
Hello.
I have created a dashboard view in SCOM 2012 R2 for power consumption of a number of servers. These servers are all part of a group. The power consists of a couple of different performance monitors (VMWare-sensor for VMs and Power Meter from the Power
Consumption MP)
The dashboard view works well, however I am after a total figure for each server in the group. Ideally this figure would be on the dashboard view as well.
E.g. if I have 3 servers with the below power draw
Server 1 – 150 Watts
Server 2 – 200 Watts
Server 3 – 300 Watts
I would like a box stating total power 650 Watts
If this is not available in a dashboard view, a report would be okay
ThanksHi,
As far as I know, there is no direct way, you may create a sql query and sum the value for each server.
You may refer to the helpful article below:
http://blogs.technet.com/b/drewfs/archive/2014/08/17/scom-performance-data-and-power-view.aspx
Regards,
Yan Li
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
Maybe you are looking for
-
How can I get my entire itunes library onto my PC laptop?
I had an ipod touch, where I bought and stored most of my music. I only have a few songs on my PC laptop. Unfortunately my ipod has litterally fallen apart, to the point where it can't be used (pieces of the screen, wiring, and the outside have falle
-
How to find a list of nokia specific settings soft...
i have nokia lumia 822 on verizon usa. right after i got the phone i was having problems with the bluetooth. the verizon tech had me do a hard reset and erased everything. when the phone restored i was able to reinstall most apps. but the nokia spec
-
I can't update my ipod touch software because when i check for updates using itunes it says the software is up to date. Does this mean i have to get a newer ipod touch or is there a way to manually update the software to the newer versions?
-
I recently replaced my Macbook Pro 5,1 (late 2008) hard drive with a larger one, cloning the old Mac HFS partition and reinstalling XP SP3 (Winclone couldn't do it) on the NTFS/NTFS-3g partition. Reinstalled Boot Camp Assistant up to v3.2-32 bit (App
-
Permissions for SharePoint 2013 site
Hi, I want to allow user to add item in list/libraries in SharePoint 2013. So i gave "Contribute without delete" permission. But through this permission, users are able to see Site Contents which i don't want to allow the users to access. So will you