Programatic ViewOject with EntityObject
Hi
i want to use Programmatic View Object (Entity Independent) with entity..
my requirement is like i have some programmatic view Object which i want to reuse for EntityObject also so is it possible to reuse.
Regards
Kiran
Kiran,
Your question is still too vague to understand.
You cannot switch a VO between programmatic and EO-based at runtime. You can certainly have separate branches in a task flow (use a router to select between the two paths) - you can have one branch have screens/fragments based upon the programmatic VO and the other branch use EO-based VO's.
If this isn't what you mean, please slow down and explain your use case so that we can understand what you are trying to accomplish.
John
Similar Messages
-
Hi,
I have a grid and advanced search link buttonand
search button.
if i click on Advanced Search link...open a panel with 3 list boxes(multi selection)
if i select multi selected items in list boxes and click on search-->show the grid with selected items
getting data from Sql server custom database.
And the code i wil expect is 'Programatically using jqury and asp.net code' with out single line of design.
Could you please help on the above task.Hi,
I have a grid and advanced search link buttonand
search button.
if i click on Advanced Search link...open a panel with 3 list boxes(multi selection)
if i select multi selected items in list boxes and click on search-->show the grid with selected items
getting data from Sql server custom database.
And the code i wil expect is 'Programatically using jqury and asp.net code' with out single line of design.
Could you please help on the above task. -
I am trying to put together an entry form using TextEntry objects in Lookout 4.0.1 build 51. I want to clear out the previous text from the TextEntry controls when the panel activates. This was an easy thing to do in Lookout 3.8 but the nature of the Remote field has changed and I don't think I understand how it works. Thanks...
You can clear the TextEntry box with the 'reset' datamember. Connect to it either Panel1.active or Panel1.visible depending on your specifc needs (and where Panel1 is your panel).
E.g.,
TextEntry1.reset = Panel1.visible
BTW, if you want to display a default text then use the 'ResetValue' datamember, if not then just don't connect anything to it.
Rgds,
Khalid -
TextFlow XML export issue with missing whitespaces
If I export a TextFlow into XML (with either TextFlowUtil or TextConverter) it will lose white spaces where they occur between elements, so that a subsequence import will yield different content from the original. A simple example being:
"Where is my white space". Will export and re-import to give: "Whereismywhitespace".
This happens in the XML build process because when a text node is programatically appended (with appendChild()) white spaces are stripped from the start and end. For example, if you do xml.appendChild(" hello ") you actually get an XML element containing just "hello".
Now I understand there is a directive (XML.ignoreWhiteSpace) to ignore or keep white space when parsing nodes already set in the XML, but I cannot see how to do this when you are building the XML from some data structure (like a TextFlow), or indeed when creating an XML object from a String that contains XML notation.
I am unaware how you can include surrounding whitespace in an XML node (short of CDATA). And the fact that the TextFlow XML import/export loses information seems to make it, well, pretty pointless.
So, how do I retain these white spaces in a TextFlow in an exported XML?The solution for this problem consists of two parts.
First part is exporting the xml from the textflow, you want no formatted XML (with breaks, tabs, ...), but one long string with the spaces left like there were entered between the tags, this can be done with:
_textXML = TextConverter.export(EditorID.textFlow,TextConverter.TEXT_LAYOUT_FORMAT,ConversionType.STRING_TYPE) as String;
Use the TextConverter in stead of the TextFlowUtil.
Second part is back importing to textFlow:
There the solution mentioned above was correct.
XML.ignoreWhitespace = false;
var flowXML:XML = new XML(_textXML);
contentTLF = TextFlowUtil.importFromXML(flowXML,WhiteSpaceCollapse.PRESERVE); -
DataChange event not triggering in itemRenderer
Hi,
I have a tileList on the stage, which is dataBound to an
XMLList object, the items of which are programatically updated with
the results from an httpService.
The tileList uses a custom itemRenderer. Inside the
itemRenderer, I want to be able to change the color of the
background based on the data. For example, when data.@arrow = 1, I
want the background to be green, and when data.@arrow = 0, red etc.
I am trying to call this function on dataChange event of one
of the containers inside the itemRenderer. however it doesnt seem
to be firing when the data updates
Please advise as to what I am doing wrong?Found the answer. My stupidity!
I wasnt updating the arrow field properly -
I want to delete a file from an iFS Directory programmatically,
using sql from the database side ..
Can this be done?
what records do I need to remove?
Thanks for your time,
CathalYou shouldn't manipulate the iFS schema directly. The java API is what you should use to make changes to the iFS system programatically. With the API set up properly, you create a new LibraryObject as appropriate, then just free it.
LibraryObject lo = new LibraryObject(...);
lo.free();
This is all in the Javadoc and various examples though
Hope this helps... -
I've discovered some very strange behaviour in Excel which seems to be contrary to that documented in the Open Office XML specification (OOXML). I couldn't find a way to report bugs against Excel, so I thought I'd try to explain the issue here.
In short it seems that Excel is removing, and incorrectly re-indexing the metadata I programatically associate with cells.
First, a summary of the relevant parts of the specification:
From OOXML 18.9: There are two types of metadata: "cell metadata" and "value metadata".
Cell metadata follows the cell as it moves. Value metadata follows the value through formulae etc.
From OOXML 18.3.1.4: The c (cell) element has cm and vm attributes which are both documented as "The zero-based index of the [cell|value] metadata...in the Metadata Part"
From OOXML 18.9.17: The valueMetadata is "a collection of block element that each define the value metadata for a particular cell". "Cells in the workbook index into this collection".
The valueMetadata contains bk elements which in turn contain rc (metadata record) elements
From OOXML 18.9.15: rc elements have t (type index) and v (value index) attributes. t is a 1-based index into metadataTypes and v is a 0-based index into the futureMetadata element which matches the name of the metadata type.
Here's an example of what this might look like:
<c vm="0"> <!-- vm points to the first bk inside valueMetadata below -->
<x:valueMetadata>
<x:bk>
<x:rc t="1" v="0" /> <!-- t points to the first metadataType below. v points to the first bk in the futureMetadata below (whose name matches the metadataType to which t points) -->
</x:bk>
</x:valueMetadata>
<x:metadataTypes>
<x:metadataType name="MyMetaType" ... /> <!-- name dictates which futureMetadata valueMetadata's v attribute indexes into -->
</x:metadataTypes>
<x:futureMetadata name="MyMetaType" ...>
<x:bk>
<x:extLst>
<x:ext xmlns:x="http://schemas.openxmlformats.org/spreadsheetml/2006/main" uri="http://example.com/extension" p5:value="test value" xmlns:p5="http://example.com/extension" />
</x:extLst>
</x:bk>
</x:futureMetadata>
The Problem
From what I can tell, for values of n > 2, if you associate n cells with metadata, Excel will drop the last piece of metadata, and the one at index 1, and it will do so silently. The indices are then 0..n-3, and the association for all but the first (0
index) will be wrong. This renders the future metadata totally useless.
For n == 1, Excel just removes the last piece of metadata (index 1). If we try 1-based indexes for the vm attribute on the c element, we get different behaviour. This may not be relevant as it is contrary to the specification, but the slightly better behaviour
might indicate an off-by-one error:
n
Deleted Indices (0-based) when using 0-based indices
Deleted Indices (0-based) when using 1-based indices
1
0
None
2
1
1
3
1,2
1
4
1,3
1
5
1,4
1
6
1,5
1
Demonstrating the Problem
I have some example code[1] that demonstrates the problem. You will need a file called test.xlsx with cells A1..C2 populated.
Compile the source as AddMetadata.exe then run with the test file as the only parameter:
> AddMetadata.exe test.xlsx
You can look at test.xlsx in Excel, Visual Studio (with the Open XML Package Editor Power Tool for Visual Studio 2010) or the Open XML SDK 2.0 Productivity Tool for Microsoft Office. Looking at the file before and after running AddMetadata.exe you should
be able to reproduce the behaviour documented above.
Summary
It would be good to know if this is really an Excel bug or whether we're doing something wrong / unsupported. Any insight would be very much appreciated.
[1] The Example code:
namespace AddMetadata
using System;
using System.Linq;
using DocumentFormat.OpenXml;
using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
public class Program
// The cells to associate with metadata
private readonly static CellSpec[] CellSpecs = new[]
new CellSpec{ Sheet = "Sheet1", Column = "A", Row = 1 },
new CellSpec{ Sheet = "Sheet1", Column = "B", Row = 1 },
new CellSpec{ Sheet = "Sheet1", Column = "C", Row = 1 },
new CellSpec{ Sheet = "Sheet1", Column = "A", Row = 2 },
new CellSpec{ Sheet = "Sheet1", Column = "B", Row = 2 },
new CellSpec{ Sheet = "Sheet1", Column = "C", Row = 2 },
private static readonly uint NumCells = (uint)CellSpecs.Length;
private const string SPREADSHEET_ML_NS = "http://schemas.openxmlformats.org/spreadsheetml/2006/main";
private const string METADATA_TYPE_NAME = "MyMetaType";
private const string EXTENSION_URI = "http://example.com/extension";
public static void Main(string[] args)
if (args.Length != 1)
Console.Out.WriteLine("AddMetadata <doc.xslx>");
Console.Out.WriteLine(" Adds metadata to the specified document to demonstate some strange Excel behaviour");
Environment.Exit(1);
try
var doc = SpreadsheetDocument.Open(args[0], true);
StripMetadata(doc);
AddMetadata(doc);
AddMetadataType(doc);
AddFutureMetadata(doc);
AddMetadataRecords(doc);
AssociateCellsWithMetadata(doc);
doc.WorkbookPart.Workbook.Save();
doc.Close();
catch(Exception e)
Console.Out.WriteLine(e);
/// <summary>
/// Strip any existing metadata.
/// </summary>
/// <param name="doc">The document</param>
private static void StripMetadata(SpreadsheetDocument doc)
var wbPart = doc.WorkbookPart;
var cellMetadataPart = wbPart.GetPartsOfType<CellMetadataPart>().FirstOrDefault();
wbPart.DeletePart(cellMetadataPart);
/// <summary>
/// Add basic metadata part structure.
/// </summary>
/// <param name="doc">The document</param>
private static void AddMetadata(SpreadsheetDocument doc)
doc.WorkbookPart.AddNewPart<CellMetadataPart>();
doc.WorkbookPart.CellMetadataPart.Metadata = new Metadata { MetadataTypes = new MetadataTypes() };
/// <summary>
/// Add the metadata type used by all the metadata we're adding
/// </summary>
/// <param name="doc"></param>
private static void AddMetadataType(SpreadsheetDocument doc)
var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
var metadataType = new MetadataType
Name = METADATA_TYPE_NAME,
Assign = false,
CellMeta = false,
ClearContents = false,
ClearAll = false,
ClearComments = true,
ClearFormats = true,
Coerce = false,
Copy = true,
Delete = false,
Edit = true,
Merge = true,
MinSupportedVersion = 0U,
PasteAll = true,
PasteBorders = false,
PasteColWidths = false,
PasteComments = false,
PasteDataValidation = false,
PasteFormats = false,
PasteFormulas = false,
PasteNumberFormats = false,
PasteValues = true,
RowColumnShift = true,
SplitAll = false,
SplitFirst = false
metadata.MetadataTypes.AppendChild(metadataType);
/// <summary>
/// Add future metadata blocks which contain the actual metadata for each cell.
/// They are referenced by the metadata records.
/// </summary>
/// <param name="doc">The document</param>
private static void AddFutureMetadata(SpreadsheetDocument doc)
var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
var futureMetadata = metadata.AppendChild(new FutureMetadata());
futureMetadata.Name = METADATA_TYPE_NAME;
futureMetadata.Count = NumCells;
// Future metadata area
for (var i = 0; i < NumCells; i++)
// The metadata for each cell will be single FutureMetadataBlock containing an extension list with a single extension.
FutureMetadataBlock futureMetadataBlock = futureMetadata.AppendChild(new FutureMetadataBlock());
ExtensionList extLst = futureMetadataBlock.AppendChild(new ExtensionList());
Extension ext = extLst.AppendChild(new Extension());
ext.Uri = EXTENSION_URI;
ext.AddNamespaceDeclaration("x", SPREADSHEET_ML_NS);
ext.SetAttribute(new OpenXmlAttribute("value", ext.Uri, string.Format("test value {0}", i)));
/// <summary>
/// Add metadata records which point to each future metadata block.
/// They are in turn referenced by the cells.
/// </summary>
/// <param name="doc">The document</param>
private static void AddMetadataRecords(SpreadsheetDocument doc)
var metadata = doc.WorkbookPart.CellMetadataPart.Metadata;
// Value metadata area
ValueMetadata valueMetadata = metadata.AppendChild(new ValueMetadata());
for (uint i = 0; i < NumCells; i++)
// Type is 1-indexed, index into future metadata is 0-indexed
var metadataBlock = valueMetadata.AppendChild(new MetadataBlock());
var metadataRecord = metadataBlock.AppendChild(new MetadataRecord());
metadataRecord.Val = i;
metadataRecord.TypeIndex = (uint)1;
/// <summary>
/// Associate existing cells with existing metadata.
/// </summary>
/// <param name="doc">The document</param>
private static void AssociateCellsWithMetadata(SpreadsheetDocument doc)
for (uint i = 0; i < CellSpecs.Length; i++)
var cellSpec = CellSpecs[i];
var cell = GetCell(doc, cellSpec.Sheet, cellSpec.Column, cellSpec.Row);
if (cell == null)
throw new ArgumentException(string.Format("Cell {0} not found in row {1} of sheet {2}", cellSpec.Column, cellSpec.Row, cellSpec.Sheet));
cell.ValueMetaIndex = i;
/// <summary>
/// Get a cell given the document, sheet name, column name and row index.
/// </summary>
/// <param name="doc">The document</param>
/// <param name="sheetName">The sheet name</param>
/// <param name="columnName">The column name</param>
/// <param name="rowIndex">The row index</param>
/// <returns>The cell</returns>
private static Cell GetCell(SpreadsheetDocument doc, String sheetName, String columnName, uint rowIndex)
var row = GetRow(doc, sheetName, rowIndex);
if (row == null)
throw new ArgumentException(string.Format("Row '{0}' not found", rowIndex));
return row.Elements<Cell>().Where(c => c.CellReference.Value.StartsWith(columnName)).FirstOrDefault();
/// <summary>
/// Get a worksheet part by sheet name.
/// </summary>
/// <param name="document">The document</param>
/// <param name="name">The sheet name</param>
/// <returns>The worksheet part</returns>
private static WorksheetPart GetWorksheetPartByName(SpreadsheetDocument document, string name)
// Get Sheet by name from Sheets in Workbook
var sheet = document.WorkbookPart.Workbook.GetFirstChild<Sheets>().Elements<Sheet>().Where(x => x.Name == name).FirstOrDefault();
// Lookup WorksheetPart by Id
return sheet == null ? null : (WorksheetPart)document.WorkbookPart.GetPartById(sheet.Id.Value);
/// <summary>
/// Get a row given the document, sheet name and row index.
/// </summary>
/// <param name="doc">The document</param>
/// <param name="sheetName">The sheet name</param>
/// <param name="rowIndex">The row index</param>
/// <returns>The row</returns>
private static Row GetRow(SpreadsheetDocument doc, String sheetName, uint rowIndex)
var worksheetPart = GetWorksheetPartByName(doc, sheetName);
if (worksheetPart == null)
throw new ArgumentException(string.Format("Sheet '{0}' not found", sheetName));
return worksheetPart.Worksheet.GetFirstChild<SheetData>().Elements<Row>().Where(r => r.RowIndex == rowIndex).First();
struct CellSpec
public string Sheet;
public string Column;
public uint Row;If you create a metadatatype with a single metdata block, and you reference that in your vm/cm cell attribute using a *one* based index, Excel seems to see the link and it honors it when saving the spreadsheet.
So, I ended up with something like:
<c ... cm="1"/> (I'm dealing with cell metadata, but the concept is equivalente to value metadata)
<metadataTypes count="1">
<metadataType name="MyMetaType" .../>
</metadataTypes>
<futureMetadata count="1" name="MyMetaType">
<bk>
<extLst><ext
uri="http://example" xmlns:x="http://example"><x:val>87</x:val></ext></extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk><rc
t="1" v="0"/></bk> <!-- this is what gets referenced as cm=1 on the cell -->
</cellMetadata>
Hope this helps. -
Problem in getting correct datain DSO although routine is working!
I have two DSOs -DSO03 and DSO04 and in-between a transformation where a 0Order_Val field is getting calculated using the routine code as below:-
IF ( COMM_STRUCTURE-PROCESSKEY = '001' or
COMM_STRUCTURE-PROCESSKEY = '011' or
COMM_STRUCTURE-PROCESSKEY = '021' or
COMM_STRUCTURE-PROCESSKEY = '004' or
COMM_STRUCTURE-PROCESSKEY = '014' or
COMM_STRUCTURE-PROCESSKEY = '024' )
AND COMM_STRUCTURE-BWAPPLNM EQ 'MM'
AND COMM_STRUCTURE-ORDER_VAL <> 0.
perFORM QUANTITY_CONVERT
USING COMM_STRUCTURE-ORDER_VAL
COMM_STRUCTURE-po_UNIT
COMM_STRUCTURE-base_uom
COMM_STRUCTURE-numerator
COMM_STRUCTURE-denomintr
CHANGING RESULT.
Problem:-
For few doc numbers, the Quantity convert is fetching correct data, after applying the convert subroutine.
But in some, (although it is not supposed to return 0 after applying the sub-routine of Quantity_Convert),
it is showing wrong result as "0" in DSO04,
(although there is value in DSO03 for the field 0Order_Val).
Example:-
Doc num Field name DSO 3 Value DSO4Value Remarks
4500000089 0Order_ Val 3686.21 3686.21 Correct
4500000084 0Order_Val 500000 0 Wrong
While trying to debug the ABAP routine through breakpoints, I have found that the result fetched is correct (i.e. 500000 for doc_num: 4500000084) but when displaying data in DSO04 it is showing "0".
I have checked the input parameters and all are same.
Only exception is difference in currency between the two records.
One is USD (Doc num :4500000089) and the other is ESD (Doc num :4500000084).
Although currency is not any input parameter.
Also have tried Overwrite/summation setting in the Transformation but with no result.
If anyone can indicate any solution to this peculiar problem then it will be very helpful.
Regards,
Ritu.
email: [email protected]Hi,
it is a bug in the Acrobat Reader. I had the same problem. Just add an input field called "myIndex" into the row and store there the current index when creating the line. With this solution you can programatically work with your own created index without the bug of the Acrobat Reader.
Take care,
Thomas -
Compiling Java program from other java program
Hi,
How can I compile and capture the compilation result from another java program?
ThanksAs if I had seen somewhere a hint about being able to
programatically compile with the help of the class
sun/tools/javac/Main found in the tools.jar.I saw that article, too, but when I took a look at the JDK's source code, it became apparent that none of the classes in tools.jar are supported. Your program could break with any new version of the JDK.
If you're still interested, here's the URL:
http://java.sun.com/developer/JDCTechTips/2003/tt0722.html -
I've seen this post:
http://forums.ni.com/ni/board/message?board.id=170&message.id=418659&query.id=2770634#M418659
But it doesn't really help in what we're trying to do. is there any known way to have multiple ROIs programatically drawn with different colors? I have tried to draw 1, change the color, and then draw another. If I do this using the ROI tools LabVIEW is happy and let's the previous colored ROIs stay on the viewer. If I do it programatically, then when I draw the last ROI it destroys all of the previous ROIs. Is there any way to add a new ROI of a different color without changing the color of (or destroying) the previous ROIs?
LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.Hi Falk,
Probably an easier way to go would be to use a Combo Box string control on the front panel to select which "group" overlay you want to clear, modify, and redefine. The problem is that ROIs are not primarily intended to be viewed -- they are kind of a behind-the-scenes tool for machine vision, not necessarily intended for viewing by humans. Thus, they normally don't require a certain color to be associated with them. That's why we have the function to create an overlay from the ROI, and the overlay is the part that has color as an input.
If you can give some more info about your application and why you need to be changing the ROI, we may be able to come up with a different method that could be more useful for you. Would IMAQ ContstructROI be something that you could use instead? It allows you to draw the ROI right on the image, so if you needed to change the ROI you could clear the current ROI and then construct a new one with IMAQ ConstructROI.
Regards,
Daniel H.
Customer Education Product Support Engineer
National Instruments
Certified LabVIEW Developer -
Hi , i am trying to publish a report by CR i make my report on my system and run it successfull but when i published my report or reporting server then i face the following problem
Error in File C:\Business Objects\BusinessObjects Enterprise 11\Data\procSched\CIS03.reportjobserver\~tmp1a6c60b61dde8b81.rpt: Database Connector Error
this problem is solved when i removed the IF condition from my query but with IF condition i am facing the same problem. I am not facing this problem when i have this on my hand but only after pulishing so please help me if any one can following is the procedure in which i am facing the problem
create or replace
PROCEDURE cm_discon_fld_activity (
p_rep_cursor IN OUT cisadm.cr_package.cr_rpt_type,
prm_unit IN cisadm.ci_char_val.char_val%TYPE,
prm_fa_status IN cisadm.ci_fa.fa_status_flg%TYPE,
prm_fa_type_cd IN cisadm.ci_fa.fa_type_cd%TYPE,
prm_zone IN cisadm.ci_char_val_l.descr%TYPE,
prm_date_from IN cisadm.ci_fa.cre_dttm%TYPE,
prm_date_to IN cisadm.ci_fa.cre_dttm%TYPE
AS
BEGIN
IF TRIM (prm_fa_status) = 'C' THEN
OPEN p_rep_cursor FOR
select sa.acct_id, pn.entity_name,
(SELECT char_val
FROM cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT'
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val))and rownum=1) unit,
(SELECT descr
FROM cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE'
AND descr = NVL (TRIM (prm_zone), TRIM (descr))and rownum=1) zzone,
fa.cre_dttm,fa.fa_type_cd,fa.fa_status_flg,
--(select work_dttm from ci_fa_stage_up where fa_id=fa.fa_id) dt_of_work,
READ_DTTM dt_of_work ,
fa.fa_id,fa.disp_grp_cd,dgl.descr,
(select sum(cur_amt) from ci_ft where sa_id in (select sa_id from ci_sa where acct_id=sa.acct_id)) os_amt
from ci_fa fa,ci_sp sp,ci_sa sa,ci_acct_per ap,ci_per_name pn,ci_disp_grp_l dgl, ci_mr_stage_up msp, ci_sp_mtr_hist smph , ci_sp spp
where --fa.cre_dttm between '01-Jan-2009' and '02-Jan-2009'
READ_DTTM BETWEEN prm_date_from /*'01-JAN-2009'*/ AND prm_date_to
/*'02-JAN-2009'*/--between '16-Feb-2010' and '17-Feb-2010'
and TRIM (fa.fa_type_cd) = upper ( prm_fa_type_cd)--in ('G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL')
AND TRIM ( fa.fa_status_flg ) = 'C'
and fa.sp_id=sp.sp_id
and sp.prem_id=sa.char_prem_id
and sa.sa_type_cd like 'U-%'
and sa.SA_STATUS_FLG = '20'
AND USE_ON_BILL_SW = 'Y'
and sa.acct_id=ap.acct_id
and ap.per_id=pn.per_id
and msp.MTR_CONFIG_ID= smph.MTR_CONFIG_ID
and smph.sp_id = spP.sp_id
AND SPP.SP_ID = SP.SP_ID
AND smph.REMOVAL_DTTM IS NULL
and pn.PRIM_NAME_SW='Y'
and fa.disp_grp_cd=dgl.disp_grp_cd;
--AND SA.ACCT_ID = '9739021000';
END IF ;
--ELSE
IF TRIM (prm_fa_status) != 'C' THEN
OPEN p_rep_cursor FOR
SELECT sa.acct_id, pn.entity_name,
(SELECT char_val
FROM cisadm.ci_prem_char
WHERE prem_id = sa.char_prem_id
AND char_type_cd = 'UNIT'
AND TRIM (char_val) = NVL (prm_unit, TRIM (char_val))and rownum=1) unit,
(SELECT descr
FROM cisadm.ci_prem_char pc, cisadm.ci_char_val_l cvl
WHERE pc.char_type_cd = cvl.char_type_cd
AND pc.char_val = cvl.char_val
AND prem_id = sa.char_prem_id
AND cvl.char_type_cd = 'ZONE'
AND descr = NVL (TRIM (prm_zone), TRIM (descr))and rownum=1) zzone,
fa.cre_dttm, fa.fa_type_cd, fa.fa_status_flg,
(SELECT work_dttm
FROM cisadm.ci_fa_stage_up
WHERE fa_id = fa.fa_id) dt_of_work, fa.fa_id, fa.disp_grp_cd,
dgl.descr, (SELECT SUM (cur_amt)
FROM cisadm.ci_ft
WHERE sa_id IN (SELECT sa_id
FROM cisadm.ci_sa
WHERE acct_id = sa.acct_id))
os_amt
FROM cisadm.ci_fa fa,
cisadm.ci_sp sp,
cisadm.ci_sa sa,
cisadm.ci_acct_per ap,
cisadm.ci_per_name pn,
cisadm.ci_disp_grp_l dgl
WHERE fa.cre_dttm BETWEEN prm_date_from /*'01-JAN-2009'*/ AND prm_date_to
/*'02-JAN-2009'*/
AND TRIM (fa.fa_type_cd) IN NVL
( upper(prm_fa_type_cd), TRIM (fa.fa_type_cd))
-- ('G-LOCK','G-UNLOCK','SG-LOCK','SM-REMVL','M-REMVL')
AND TRIM (fa.fa_status_flg) = prm_fa_status
--AND TRIM (fa.fa_status_flg) != 'C'
AND fa.sp_id = sp.sp_id
AND sp.prem_id = sa.char_prem_id
AND sa.sa_type_cd LIKE 'U-%'
and sa.SA_STATUS_FLG = '20'
--AND USE_ON_BILL_SW = 'Y'
AND sa.acct_id = ap.acct_id
AND ap.per_id = pn.per_id
AND pn.prim_name_sw = 'Y'
AND fa.disp_grp_cd = dgl.disp_grp_cd;
END IF ;
END cm_discon_fld_activity;
I am facing the same problem in every report in which i use IF condition can any one help me i am using CR XI Business ObjectPerhaps this question would be better asked on a Business Object forum.
As it stands, there's not really anything programatically wrong with your PL/SQL code. The issue appears to be with CR. -
How do you overwrite values in a ring control?
Hello,
I have a Ring Control (Text Values) in Labview 2009 and it is programatically populated with 20 items. The end user either selects from the items in the list or populates it with a new item based on a checkbox for adding new item. What I want to do is when the 20th item is entered and the user selects the checkbox for item 21 to be added I would like to rap around to the first item in the list and overwrite it. Is this possible and a sample vi would be great to demonstrate how this is done. Any help would be greatly appreciated!
Thanks in Advance
Charlie
Everything is Free! Until you have to pay for it.
Solved!
Go to Solution.Replace Array Subset. You will need to keep track of which item to replace in a shift register. I would also keep the list in a shift register to make your life a little easier.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
I am working with an InDesign file and would like to be able to programatically work with the content after the document has been created. Is there any way to export InDesign documents to a text based format which has the coordinates of the content within the file. Essentially I'm looking for a way to grab the links out of the file along with their positions and sizes.
Good morning.
Most of the time, people who want to programmatically work with InDesign using it's scripting features. It has a very detailed object model that is scriptable in JavaScript in a cross-platform fashion, and also in AppleScript on Macs and VBscript under Windows. It's generally the best way to accomplish automation tasks, rather than trying to parse InDesign's files.
That said, you can export to IDML (in CS4 and CS5), or to INX in CS3. Both are XML-based formats where you can pull out individual objects and their coordinates. INX is an XML file directly. IDML is actually a ZIP archive of multiple XML files. Adobe provides documentation for both. -
is there a way programatically either with apple script of some unix magic to print a file while bypassing the normal print dialog box.
Haven't verified, but I've heard that Apple quietly removed shared printer
support from iOS 4.x. With that change Airprint supposedly only works
w/those new HP printers featuring ePrint support. Just a heads up...
P E A C E
Hasan -
Release the Project Defination cj20n
Hi Experts,
I am able to create the project definition using a fm. Now the project is getting created in CRTD status.
Can anyone tell me the way to release this project definition programatically....
Can anyone help me with a suitable fm or a bapi to do the same...
Thanks for looking....
~~NGDear nitesha,
Even i have a requirement to change the status of Project ,so can u able to explain me how you changed the status Programatically.
With Thanks,
Dina.
Maybe you are looking for
-
SSO to non SAP Application using SAP Logon Ticket
Hi Experts, I Have EP 7 SP 15 using SPNego Wizard to SSO with Active Directory and SSO between EP and ECC using SAP Certificates. Now I have a demand to SSO some JAVA based applications (non SAP) to my portal using the SAP Logon Ticket. I Have follow
-
I tunes will not install on windows 7 64 bit
I have upgrade to window 7 and I am trying to download I tunes. I get a message that My Itunes was not modifying. Errors while attempting the down load. I have no older versions of I tunes installed. Thans for your help. Jim
-
VIEW CUSTOMER ADDRESS DETAILS IN REPORT (TABULAR) FORMAT
When maintaining the Customer Master, General Details such as Customer Name, Search Term, Address, City, Postal Code, Country, Telephone No, Email etc are updated in the General Data screen that is stored in KNA1. When I run report for KNA1 in SE16 -
-
I can't access Itunes Store via my Itunes. When Itunes start, CPU always 100%, I've tried uninstall and reinstall Itunes but it seems to be useless. Please help !!!
-
Issue with the fan and laptop gets heated up
Hi can someone help me with the issue, my laptop gets heated up and after sometime it makes sound and it shuts down after half an hour of use. when i went to service center they said fan needs to b replaced. when i checked it online there are many f