Dynamical changing HtmlInputText component style on failed validation...
...but once validation passes the modified style isn't reset...and when navigating away from the page and then back again, the component will still have the modified style.
this is for JSF1.1 because i understand JSF1.2 has a errorStyle property.
I understand once first entry the components are rendered and then stored in a component tree for subsequent display, but because i have dynamical changed the style property it seems to be stored in the component tree.
here is snippets of my code
JSP page
<h:inputText id="textName" styleClass="inputText" *validator="#{fieldValidators.validateText}"* value="#{customer.name}" required="true">
<f:validateLength minimum="1" maximum="40"></f:validateLength>
</h:inputText>
_FieldValidators class_
public void validateText(FacesContext context, UIComponent toValidate, Object value)
((UIInput)toValidate).setValid(false);
*((HtmlInputText)toValidate).setStyleClass("inputText inputValidationError");*
FacesMessage message = new FacesMessage(errorMessage);
context.addMessage(toValidate.getClientId(context), message);
the style class +inputValidationError+ sets the outline of the input type to be red. so input components highlight in red when validation fails.
so to recap my issue, when the failed validation is corrected, the component still has the +inputValidationError+ style applied, and when navigating away from the page and back to it +inputValidationError+ still is in its style, so still appears with the red border.
any help or recommendations would be really welcome.
thanks.
Implement a PhaseListener which listens on the afterPhase of the RENDER_RESPONSE and get the clientId of all components which have a validation error by FacesContext#getClientIdsWithMessages() and put it in a HashSet or so. Then iterate recursively over all children of UIViewRoot and if it is an instance of UIInput, then (re)set the styleclass accordingly based on the presence of its clientId in the HashSet created before.
Similar Messages
-
How to change the component styles (inside panelFormLayout.)
Hello friends,
Can anyone help me, How to change the component styles where components (af:inputtext) inside af:panelFormLayout.
i changed all of the components one by one style, inlinestyle .. from the inspector. By result is nothing.
how to extend blafplus-rich and override some of the components style?
thanks for your helpsthanks alright but i want to learn again after this.
Which component has a content or border or how can i find list components attributes for change style?
For example i want to change document content pane, what will i write to css. i am little knowledge about css.
Thanks for help -
Change jmf controller component style
Hi,
i want to change jmf control panel component style. for example change background color or start button image.
How can i configure jmf controller component style?
thanks
Edited by: q_fs on Sep 19, 2010 2:25 PMI'm not sure you can. You can always just write your own control panel, though.
-
Changing the Alert style Property Dynamically
hI..
Is there any way to change the Alert Style Property Dynamically.... if there please tell me its urgent
thnks in advance
Regards
Yashavanthyes, u can change properties dynamically through set_alert_property and set_alert_button_property
here is an example
DECLARE
err_txt VARCHAR2(80) := Error_Text;
al_id Alert;
al_button Number;
BEGIN
al_id := Find_Alert('My_Error_Alert');
Set_Alert_Property(al_id, alert_message_text, err_txt );
al_button := Show_Alert( al_id );
END; -
Attribute Binding dynamically created fails validation
Hello.
In my taskflow I need to create both an Attribute Binding and a UIComponent (RichInputText), this is the code:
DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding it = ADFUtils.findIterator("MyViewIterator");
JUCtrlAttrsBinding nb = JUCtrlAttrsBinding.createAttributeBinding((JUFormBinding)dcBindings,null, "MyView", null, "MyViewIterator", "MyNewField");
dcBindings.addControlBinding("MyNewField", nb);
Then I create the RichInputText in a PanelFormLayout with his validator:
*ValidatorTag.BindingValidator vb = new ValidatorTag.BindingValidator(null,JSFUtils.getValueExpression("#{bindings.MyNewField.validator}"));*
*((UIXEditableValue)newRichInputText).addValidator(vb);*
The problem is on the validator.
I see the new InputText in my page and the value is right, but when I submit the field I see this error:
"Unable to resolve a Validator instance using either validatorId '' or binding '#{bindings.MyNewField.validator}'."
If I create the Attribute Binding at design time (in my PageDef) and I create dynamically the UIComponent with the validator, there is no problem!!!
Why with the dynamic creation of the Attribute Binding, the validator doesn't works (the others bindings properties work perfectly) ?Use
Checkbox.bindChecked("<<ValueAttributeName>>);
or
Checkbox.bindChecked("<<.ValueNode.ValueAttributeName>>);
if the the attribute is inside a valuenode.
Regards, Anilkumar -
How can I dynamically change a Grids ro color
Hi,
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row
colour of my Grid depending on a value coming form my dataProvider
– but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
For example:
Within my component I have the following grid within an
“MXML” component called myGrid.mxml:
[CODE]<mx:Grid id="GGrid">
<mx:GridRow backgroundColor="0xCFD8DA">
<mx:GridItem>
<mx:Label id=”name_lbl”/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow backgroundColor="0xCFD8DA">
<mx:GridItem>
<mx:Label id=”expiryDate_lbl”/>
</mx:GridItem>
</mx:GridRow>
<mx:GridRow id=”statusRow”>
<mx:GridItem>
<mx:Label id=”status_lbl”/>
</mx:GridItem>
</mx:GridRow>
</mx:Grid>[/CODE]
I am setting/declaring my results/variables form my
dataProvider in the main Application (“MXML”) file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="
http://www.adobe.com/2006/mxml"
xmlns="*"
creationComplete="initApp()" >
<mx:HTTPService
id="myResults"
url="
http://localhost/myResults.xml"
resultFormat="e4x"
result="myResultHandler(event)" />
[CODE]<mx:Script>
<![CDATA[
import mx.core.Application;
[Bindable]
public var myDataFeed:XML;
public function initApp():void
myResults.send();
public function myResultHandler(event:ResultEvent):void
myDataFeed = event.result as XML;
Application.application.myGrid.name_lbl.text =
myDataFeed.name;
Application.application.myGrid.expiryDate_lbl =
myDataFeed.expiry;
Application.application.myGrid.status_lbl.text =
myDataFeed.status;
if(myDataFeed.status == “OK”)
Application.application.statusRow.backgroundColor="0xCFD8DA";
else if (myDataFeed.status == “WARNING”)
Application.application.statusRow.backgroundColor="0xFF9900";
else if (myDataFeed.status == “CRITICAL”)
Application.application.statusRow.backgroundColor="0xFF0000";
]]>
</mx:Script>
</mx:Application>[/CODE]
however, I cannot access the property
“backgroundColor” of the gridRow in this way:
[CODE]Application.application.statusRow.backgroundColor[/CODE]
As I get the following error:
[CODE]Severity and Description Path Resource Location
Creation Time
Id 1119:
Access of possibly undefined property backgroundColor through
a reference with static type mx.containers:GridRow.
enterpriseDB_new enterpriseDB_new.mxml
line 721 1194443056449 19295[/CODE]
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
Thanks,
Jon.quote:
Originally posted by:
ljonny18
Hi,
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row
colour of my Grid depending on a value coming form my dataProvider
– but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
Thanks,
Jon.
Hi,
a few hours ago I stumbled across this cookbook entry - it
didn't solve MY problem, but maybe it provides a way to solve your
problem?
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
From the article:
quote:
Changing the background color of a DataGrid cell is not as
simple as changing some style because the default renderer for a
DataGrid cell does not have a backgroundColor. Therefore, to do
this simple task, you have to create a custom itemRenderer where
you draw your own background in the updateDisplayList function.
HTH
Uwe -
OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN.
Hi
I have a package which has 10 sequence containers. Have 10 Flat File Source files and all is working perfect on BI Debug mode. When I deploy this package to server I am getting the following error.
I have changed the property Retain the same connection = True but same problem. I have changed the data flow task to Load Project instead of Load Into Project but in error message it is still showing the old name. I have tried to remove the whole step i.e.
Removed Load into Project Data flow with sequence container but I am getting the same error message.
I am not able to understand the reason. Any Idea why am I getting the same error message even I do not have the Data Flow named Load Into Package. It is in SSIS 2008 and being deployed on SQL 2012 server.
Message
Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 15:28:32 Error: 2014-07-22
15:28:36.86 Code: 0xC020201B Source: Load Into Project OLE DB Destination [62] Description: The number of input columns for OLE DB Destination.Inputs[OLE DB Destination Input] cannot be zero. End Error Error:
2014-07-22 15:28:36.86 Code: 0xC004706B Source: Load Into Project SSIS.Pipeline Description: "OLE DB Destination" failed validation and returned validation status "VS_ISBROKEN". End Error
Error: 2014-07-22 15:28:36.86 Code: 0xC004700C Source:
Load Into Project SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2014-07-22 15:28:36.87 Code: 0xC0024107 Source: Load Into Project Description:
There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 15:28:32 Finished: 15:28:36 Elapsed: 4.39 seconds. The package execution failed. The
step failed.
Many Thanks.
MH
this the error log
starttime
endtime
event
source
message
57:26.0
57:26.0
OnError
Load Into Project
The number of input columns for OLE DB Destination.Inputs[OLE DB Destination Input] cannot be zero.
57:26.0
57:26.0
OnError
Load Into Project
OLE DB Destination failed validation and returned validation status "VS_ISBROKEN".
57:26.0
57:26.0
OnError
Load Into Project
One or more component failed validation.
57:26.0
57:26.0
OnError
Load Into Project
There were errors during task validation.
57:19.0
57:19.0
OnPostExecute
Load Into TrialBalance
57:19.0
57:19.0
OnPostExecute
Trial Balance
57:19.0
57:19.0
OnPostExecute
SSIS_LoadCheck_CoreManGroup
57:19.0
57:19.0
PackageEnd
SSIS_LoadCheck_CoreManGroup
End of package execution.
57:18.0
57:18.0
OnPostExecute
Load Into JournalLine
57:18.0
57:18.0
OnPostExecute
JournalLine
57:18.0
57:18.0
OnPreExecute
Trial Balance
57:18.0
57:18.0
OnPreExecute
Truncate TrialBalance
57:18.0
57:18.0
OnPostExecute
Truncate TrialBalance
57:18.0
57:18.0
OnPreExecute
Load Into TrialBalance
57:07.0
57:07.0
OnPostExecute
Load Into Journal Type
57:07.0
57:07.0
OnPostExecute
JournalType
57:07.0
57:07.0
OnPreExecute
JournalLine
57:07.0
57:07.0
OnPreExecute
Truncate Table JournalLine
57:07.0
57:07.0
OnPostExecute
Truncate Table JournalLine
57:07.0
57:07.0
OnPreExecute
Load Into JournalLine
57:05.0
57:05.0
OnPostExecute
Load Into UserName
57:05.0
57:05.0
OnPostExecute
UserName
57:05.0
57:05.0
OnPreExecute
Business Area
57:05.0
57:05.0
OnPreExecute
Truncate Table Business Area
57:05.0
57:05.0
OnPostExecute
Truncate Table Business Area
57:05.0
57:05.0
OnPreExecute
Load Into Business Area
57:05.0
57:05.0
OnPostExecute
Load Into Business Area
57:05.0
57:05.0
OnPostExecute
Business Area
57:05.0
57:05.0
OnPreExecute
Cost Centre
57:05.0
57:05.0
OnPreExecute
Truncate CostCenter
57:05.0
57:05.0
OnPostExecute
Truncate CostCenter
57:05.0
57:05.0
OnPreExecute
Load Into Cost Centre
57:05.0
57:05.0
OnPostExecute
Load Into Cost Centre
57:05.0
57:05.0
OnPostExecute
Cost Centre
57:05.0
57:05.0
OnPreExecute
Project Status
57:05.0
57:05.0
OnPreExecute
Truncate Table Project Status
57:05.0
57:05.0
OnPostExecute
Truncate Table Project Status
57:05.0
57:05.0
OnPreExecute
Load Into Project Status
57:05.0
57:05.0
OnPostExecute
Load Into Project Status
57:05.0
57:05.0
OnPostExecute
Project Status
57:05.0
57:05.0
OnPreExecute
Project
57:05.0
57:05.0
OnPreExecute
Truncate Table Project
57:05.0
57:05.0
OnPostExecute
Truncate Table Project
57:05.0
57:05.0
OnPreExecute
Load Project
57:05.0
57:05.0
OnPostExecute
Load Project
57:05.0
57:05.0
OnPostExecute
Project
57:05.0
57:05.0
OnPreExecute
JournalType
57:05.0
57:05.0
OnPreExecute
Truncate Table Journal Type
57:05.0
57:05.0
OnPostExecute
Truncate Table Journal Type
57:05.0
57:05.0
OnPreExecute
Load Into Journal Type
57:03.0
57:03.0
OnPostExecute
Load Into Entity
57:03.0
57:03.0
OnPostExecute
Entity
57:03.0
57:03.0
OnPreExecute
Account
57:03.0
57:03.0
OnPreExecute
Truncate Table Accounts
57:03.0
57:03.0
OnPostExecute
Truncate Table Accounts
57:03.0
57:03.0
OnPreExecute
Load Into Account
57:03.0
57:03.0
OnPostExecute
Load Into Account
57:03.0
57:03.0
OnPostExecute
Account
57:03.0
57:03.0
OnPreExecute
UserName
57:03.0
57:03.0
OnPreExecute
Truncate Table User Name
57:03.0
57:03.0
OnPostExecute
Truncate Table User Name
57:03.0
57:03.0
OnPreExecute
Load Into UserName
57:02.0
57:02.0
PackageStart
SSIS_LoadCheck_CoreManGroup
Beginning of package execution.
57:02.0
57:02.0
OnPreExecute
SSIS_LoadCheck_CoreManGroup
57:02.0
57:02.0
OnPreExecute
CoA
57:02.0
57:02.0
OnPreExecute
Truncate Table CoA
57:02.0
57:02.0
OnPostExecute
Truncate Table CoA
57:02.0
57:02.0
OnPreExecute
Load Into CoA
57:02.0
57:02.0
OnPostExecute
Load Into CoA
57:02.0
57:02.0
OnPostExecute
CoA
57:02.0
57:02.0
OnPreExecute
Entity
57:02.0
57:02.0
OnPreExecute
Truncate Table Entity
57:02.0
57:02.0
OnPostExecute
Truncate Table Entity
57:02.0
57:02.0
OnPreExecute
Load Into EntityMessage
Executed as user: NT Service\SQLSERVERAGENT. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 64-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 15:28:32 Error: 2014-07-22
15:28:36.86 Code: 0xC020201B Source: Load Into Project OLE DB Destination [62] Description: The number of input columns for OLE DB Destination.Inputs[OLE DB Destination Input] cannot be zero.
22 15:28:36.86 Code: 0xC004700C Source: Load Into Project 22 15:28:36.87 Code: 0xC0024107 Source: Load Into Project Description: There were errors during task validation. End
Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 15:28:32 Finished: 15:28:36 Elapsed: 4.39 seconds. The package execution failed. The step failed.
Hi MustafaH,
According to the error message(hightlight above), it seems it's a mapping issue that Naarasimha point out in the post above. Please check this carefully.
An OLE DB destination includes mappings between input columns and columns in the destination data source. You do not have to map input columns to all destination columns, but depending on the properties of the destination columns, errors can occur if
no input columns are mapped to the destination columns.
Reference form: http://msdn.microsoft.com/en-us/library/ms141237.aspx
In your post, you said that it is in SSIS 2008 and being deployed on SQL 2012 server. Do you mean that you create the package deployment utility by using SSIS 2008, and then implement SSIS deployment in SSIS 2012 environment? If so, you need to
convert the project to package deployment model to generate Manifest file in SSIS 2012. Please see:
Use the SQL Server 2008 version of Business Intelligence Development Studio to develop and maintain packages that are based on SQL Server 2008 Integration Services (SSIS)
Use SQL Server Data Tools - Business Intelligence for Visual Studio 2012 to develop and maintain packages that are based on SQL Server 2012 Integration Services (SSIS).
For more information, please see:
Interoperability and Coexistence (Integration Services):
http://msdn.microsoft.com/en-us/library/bb522577.aspx?ppud=4
If you have any feedback on our support, please click
here.
Elvis Long
TechNet Community Support -
How can I dynamically change group field column?
Hello!
I need to group data and create group totals for that table. Is
it possible to dynamically change group field column for
specific table, depending on data retreived from parameter form?
Thanks,
Mario.quote:
Originally posted by:
ljonny18
Hi,
I am using a grid within a component in my Flex application.
I have an XML dataProvider, and I want to change the row
colour of my Grid depending on a value coming form my dataProvider
– but I cant seem to get this to work :(
can anyone help / advise me on how I can dynamically change the
colour of my grid row depending on a value coming from my XML
DataProvider????
Thanks,
Jon.
Hi,
a few hours ago I stumbled across this cookbook entry - it
didn't solve MY problem, but maybe it provides a way to solve your
problem?
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=61&product Id=2&loc=en_US
From the article:
quote:
Changing the background color of a DataGrid cell is not as
simple as changing some style because the default renderer for a
DataGrid cell does not have a backgroundColor. Therefore, to do
this simple task, you have to create a custom itemRenderer where
you draw your own background in the updateDisplayList function.
HTH
Uwe -
Failed validation as a level hierarchy
Hi,
I have dimension called SKU in my analytic workspace with a hierarchy PRODUCTS defined as ALLPRODUCTS<--MD<--MG<--PG<--STYLE<--PRODUCT. I have used composite keys as Members to maintain uniqueness. For example the member expression for PG is CUBE_DEV.DIMSKU.MDID || CUBE_DEV.DIMSKU.MGID || CUBE_DEV.DIMSKU.PGID. I'm not using Surrogate keys. When I hit the maintain Dimension SKU, LOAD NO SYNCH succeeds but the compile step fails with error
"INI: error creating a definition manager, Generic at TxsOqConnection::generic<BuildProcess>INI: XOQ-01712: "SKU.PRODUCTS" failed validation as a level hierarchy., Generic at TxsOqStdFormCommand::execute"
I looked at the rejected records and every record has the error "(XSRWLD13) Cannot change the level of a dimension member within a single load." Can anyone help me resolving this issue ?
I'm using AWM 11.2.0.1.0 on Oracle 11g R2 server.
Thanks,
RKDavid,
I looked at the data and found out that there were NULLs in many key columns. I updated all of them to the value 'Unknown'. Also I re-implemented Composite keys because I thought Type 2 dimension would pose problem in determining uniqueness. Now there are no errors and I could successfully load data into the dimension.
Below is the latest definition
<!DOCTYPE Metadata [
<!ENTITY % BIND_VALUES PUBLIC "OLAP BIND VALUES" "OLAP METADATA">
%BIND_VALUES;
]>
<Metadata
Version="1.2"
MinimumDatabaseVersion="11.2">
<StandardDimension
Name="SKU"
ETViewName="SKU_VIEW"
ETKeyColumnName="DIM_KEY"
ETLevelColumnName="LEVEL_NAME"
ETMemberTypeColumnName="MEMBER_TYPE"
ETDimensionOrderColumnName="DIM_ORDER"
DefaultHierarchy="PRODUCTS"
ETHierarchyOrderColumnName="HIER_ORDER"
ShortValueDescriptionAttribute="SHORT_DESCRIPTION">
<Organization>
<AWPrimaryDimensionOrganization
AW="&AW_NAME;"
AddUniqueKeyPrefix="True"
MVOption="NONE"
HierarchyConsistencyRule="CONSISTENT">
<MVCreationOptions
RefreshType="COMPLETE"
RefreshOn="DEMAND"
UsingConstraintsClause="TRUSTED">
</MVCreationOptions>
<DefaultBuild>
<![CDATA[BUILD SPEC SYS_DEFAULT
LOAD,
COMPILE
)]]>
</DefaultBuild>
<AttributeOrganization
Attribute="SHORT_DESCRIPTION">
</AttributeOrganization>
</AWPrimaryDimensionOrganization>
</Organization>
<DimensionLevel
Name="MERCHDIVISION"
ETKeyColumnName="MERCHDIVISION">
<Description
Type="LongDescription"
Language="AMERICAN"
Value="MERCHDIVISION">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="MERCHDIVISION">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="MERCHDIVISION">
</Description>
</DimensionLevel>
<DimensionLevel
Name="MERCHGROUP"
ETKeyColumnName="MERCHGROUP">
<Description
Type="LongDescription"
Language="AMERICAN"
Value="MERCHGROUP">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="MERCHGROUP">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="MERCHGROUP">
</Description>
</DimensionLevel>
<DimensionLevel
Name="PRODUCTGROUP"
ETKeyColumnName="PRODUCTGROUP">
<Description
Type="LongDescription"
Language="AMERICAN"
Value="PRODUCTGROUP">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="PRODUCTGROUP">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="PRODUCTGROUP">
</Description>
</DimensionLevel>
<DimensionLevel
Name="STYLE"
ETKeyColumnName="STYLE">
<Description
Type="LongDescription"
Language="AMERICAN"
Value="STYLE">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="STYLE">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="STYLE">
</Description>
</DimensionLevel>
<DimensionLevel
Name="PRODUCT"
ETKeyColumnName="PRODUCT">
<Description
Type="LongDescription"
Language="AMERICAN"
Value="PRODUCT">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="PRODUCT">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="PRODUCT">
</Description>
</DimensionLevel>
<Description
Type="LongDescription"
Language="AMERICAN"
Value="sku">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="sku">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="sku">
</Description>
<Hierarchy>
<LevelHierarchy
Name="PRODUCTS"
IsSkipLevel="True"
IsRagged="True"
ETParentColumnName="PARENT"
ETDepthColumnName="DEPTH"
ETViewName="SKU_PRODUCTS_VIEW">
<HierarchyLevel
DimensionLevel="MERCHDIVISION">
<HierarchyLevelMap
KeyExpression="DIMSKU.MDID"
Query="DIMSKU">
<AttributeMap
Name="SHORT_DESCRIPTION"
Attribute="SHORT_DESCRIPTION"
Expression="DIMSKU.MDID">
</AttributeMap>
</HierarchyLevelMap>
</HierarchyLevel>
<HierarchyLevel
DimensionLevel="MERCHGROUP">
<HierarchyLevelMap
KeyExpression="DIMSKU.MDID || DIMSKU.MGID"
Query="DIMSKU">
<AttributeMap
Name="SHORT_DESCRIPTION"
Attribute="SHORT_DESCRIPTION"
Expression="DIMSKU.MDID || ':' || DIMSKU.MGID">
</AttributeMap>
</HierarchyLevelMap>
</HierarchyLevel>
<HierarchyLevel
DimensionLevel="PRODUCTGROUP">
<HierarchyLevelMap
KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID"
Query="DIMSKU">
<AttributeMap
Name="SHORT_DESCRIPTION"
Attribute="SHORT_DESCRIPTION"
Expression="DIMSKU.MDID || ':' || DIMSKU.MGID || ':' || DIMSKU.PGID">
</AttributeMap>
</HierarchyLevelMap>
</HierarchyLevel>
<HierarchyLevel
DimensionLevel="STYLE">
<HierarchyLevelMap
KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID || DIMSKU.STYLE"
Query="DIMSKU">
<AttributeMap
Name="SHORT_DESCRIPTION"
Attribute="SHORT_DESCRIPTION"
Expression="DIMSKU.MDID || ':' || DIMSKU.MGID || ':' || DIMSKU.PGID || ':' || DIMSKU.STYLE">
</AttributeMap>
</HierarchyLevelMap>
</HierarchyLevel>
<HierarchyLevel
DimensionLevel="PRODUCT">
<HierarchyLevelMap
KeyExpression="DIMSKU.MDID || DIMSKU.MGID || DIMSKU.PGID || DIMSKU.STYLE || DIMSKU.SKU"
Query="DIMSKU">
<AttributeMap
Name="SHORT_DESCRIPTION"
Attribute="SHORT_DESCRIPTION"
Expression="DIMSKU.MDID || ':' || DIMSKU.MGID || ':' || DIMSKU.PGID || ':' || DIMSKU.STYLE || ':' || DIMSKU.SKU">
</AttributeMap>
</HierarchyLevelMap>
</HierarchyLevel>
<Description
Type="LongDescription"
Language="AMERICAN"
Value="PRODUCTS">
</Description>
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="PRODUCTS">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="PRODUCTS">
</Description>
</LevelHierarchy>
</Hierarchy>
<Attribute>
<BaseAttribute
Name="SHORT_DESCRIPTION"
IsVisibleForAll="True"
SQLDataType="NVARCHAR2(100)"
ETAttributeColumnName="SHORT_DESCRIPTION">
<Description
Type="ShortDescription"
Language="AMERICAN"
Value="Short Description">
</Description>
<Description
Type="LongDescription"
Language="AMERICAN"
Value="Short Description">
</Description>
<Description
Type="Description"
Language="AMERICAN"
Value="Short Description">
</Description>
<Classification
Value="STAR"/>
</BaseAttribute>
</Attribute>
</StandardDimension>
</Metadata>
But I'm facing problem if I put Names in Short Description attribute. I have fields MerchGroupName, MerchDivisionName, ProductGroupName, StyleName in the database table which I would love to use for short description. When I use them, the error is
INI: error creating a definition manager, Generic at TxsOqConnection::generic<BuildProcess>INI: XOQ-01600: OLAP DML error "ORA-34034: 1 is already a value of DEMANTRADW!SKU_MERCHDIVISION_SURROGATE." while executing DML "SYS.AWXML!R11_LOAD_DIM('SKU.DIMENSION' SYS.AWXML!___R11_LONG_ARG_VALUE(SYS.AWXML!___R11_LONG_ARG_DIM 1) 'MATCH' 'YES' 'YES' 'SKU.MERCHDIVISION.LEVEL' 'SKU.MERCHGROUP.LEVEL' 'SKU.PRODUCTGROUP.LEVEL' 'SKU.STYLE.LEVEL' 'SKU.PRODUCT.LEVEL' 'SKU.SHORT_DESCRIPTION.ATTRIBUTE' 'SKU.PRODUCTS.HIERARCHY')", Generic at TxsOqStdFormCommand::executeINI: XOQ-01601: error while loading data for Cube Dimension "CUBE_DEV.SKU" into the analytic workspace, Generic at TxsOqStdFormCommand::execute -
Dynamically Changing Labels for Multi Row Block Buttons
Forms [32 Bit] Version 9.0.4.1.0 (Production)
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
On my local: Windows 7 OS
I am having a difficult time in doing the following in forms, and not sure if it can be done?
I have a multi row block,based on DB table, which displays filename and another column from the table.
It also has a push button on each row, which opens and displays the physical file from its source, when clicked. The filename thus can have 3 diff statuses depending on its sources and accordingly corresponding button should display appropriate label:
a) View Image (its is in content server and successfully imaged. In this case I display the file in the browser, from the content server, when the button is clicked)
b) View File (Display the file from file system)
c) View Error (Display imaging error message from the table, as file failed to make it to the imaging server)
I have this logic currently coded in the post query trigger, at the block level, and tried using set_item_property(button_id, label, <button_lable>), where I programmatically set the button lable, based on the file status (imaged, not imaged or has error) in that row. This wroks well, only if all the files in the multi row block have the same status. If each of them have diff statuses, then only last processed files's status gets reflected into the button label. For eg: The file in the first row of the block is imaged, and one in the second row has an imaging error. The button label for the first row should say 'View Image' and button for the second row should say 'View Error'. But now buttons for both the rows display 'View Error', as thats what got processed last!
I __can not use set_item_instance property for 'label'__ (which lets us dynamically change the label on the push buttons).
Is there any way to do this for ORacle forms? I am now playing with having 3 diff button items in that block, laying them on top of each other and showing only those that are appropriate and hiding the others... But I am not sure it is going to give me what I need? I think I am going to end up facing the same issues as in above case!!
Any expert advice is highly appreciated.
Thanks in advance for your time:
Libran_Girl
Edited by: libran on Aug 30, 2011 8:04 AM
Edited by: libran on Aug 30, 2011 8:05 AM<p>I have just updated this existing PJC, that was originally constructed to handle Text Fields. You can, now, also handle buttons with it.
Set the Button's Implementation Class property to : oracle.forms.fd.MultiButton.
</p>
This is the code you have to put one triggers of your based block:
When-New-Record-Instance trigger: (based on the EMP table)
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;When-Create-Record trigger:
declare
LN$N pls_integer ;
LN$Rec pls_integer := :system.cursor_record ;
LC$C Varchar2(15) ;
Begin
if get_block_property('EMP',TOP_RECORD) > 1 Then
LN$n := :system.cursor_record - get_block_property('EMP',TOP_RECORD) + 1 ;
else
LN$N := :system.cursor_record ;
end if;
If LN$N > 0 Then
Set_Custom_Property('EMP.BT', LN$n, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$n, 'SET_NEW_REC', to_char(LN$Rec) );
End if ;
end;Post-Query trigger:
declare
LN$Pos pls_integer ;
LN$Rec pls_integer := Get_Block_Property('EMP', CURRENT_RECORD) ;
LN$Max pls_integer := Get_Block_Property('EMP', RECORDS_DISPLAYED) ;
LC$C Varchar2(15) ;
Begin
LN$Pos := LN$Rec - (trunc(LN$Rec/LN$Max) * LN$Max) ;
If LN$Pos = 0 Then LN$Pos := LN$Max ; End if ;
If LN$Pos > 0 Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LOG', 'true' );
-- Add the new item --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_NEW_REC', to_char(LN$Rec) );
-- Set some properties --
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_LABEL', to_char(LN$Rec) || ',' || :EMP.ENAME );
If :EMP.JOB = 'MANAGER' Then
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FONT', to_char(LN$Rec) || ',Arial,bold,14' );
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_FGCOLOR', to_char(LN$Rec) || ',0,0,255' );
End if ;
If :GLOBAL.I > 250 Then :GLOBAL.I := 5 ;
Else :GLOBAL.I := :GLOBAL.I + 5 ;
End if ;
LC$C := To_Char(LN$Rec) || ','
|| To_Char(255) || ','
|| To_Char(255-:GLOBAL.I) || ','
|| To_Char(255-:GLOBAL.I) ;
Set_Custom_Property('EMP.BT', LN$Pos, 'SET_BGCOLOR', LC$C );
Synchronize;
End if ;
end;Don't forget to copy the multirecord.jar file in your /forms/java folder, then add it to the archive and archive_jini tags of your /forms/server/formsweb.cfg file.
Enjoy it,
Francois -
Dynamically change the db and server in execute sql task
Pkg 2: Moves data from B_STG (Staging DB) to B_Det_STG (Staging DB) ---- option1
Pkg 3: Moves data from B_STG (Staging DB) to B_Det (PC DB) ---- option2
This part is duplicating in both the packages
So they want me to merge both of them into in execute sql task and dynamically change between option1 and option2 depending on a pkg level variable.
So, I create a pkg level variable called ExecutionVariable: 'ANALYSIS' or 'LOADING'
If 'ANALYSIS' it needs to do option1 else option2.
So, I ma trying to create a dynamic connection string in execute sql task.
I change the connection property in execute sql task editor dynamically my giving the expression: @[User::ExecutionVariable] == "ANALYSIS"? @[User::STAGINGDBConnectionString] : @[User::PCDBConnectionString]
which evaluates to : Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb
But when I run the sql task, its giving me an error:
ERROR:
TITLE: Microsoft Visual Studio
Nonfatal errors occurred while saving the package:
Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Can u please help me.Hi ,
Don't try to make the "Execute Sql" task as dynamic.
Try to make OLEDB connection Manager as "Dynamic".
Steps:
1. Create OLE DB Connection pointing to any database then set expression to connection string variables like below.
Provider=SQLNCLI10.1;Integrated Security=SSPI;Initial Catalog=YourDBname;Data Source=YourServerName.
2. Make Delayed Validation property to "True".
3. Set the created dynamic OLE DB connection to your Execute SQL task.
4. Change the connection string variable accordingly before running the "Execute SQL" task.
Hope it will help you.
Regards,
Nandhu -
How to change header font style in Spark DataGrid?
I'm looking since last week for a way how to change the font style of the header in a Spark DataGrid. It drive me nuts that I can't find a way to do this. Have anyone one an idea how to achieve it? Any help is appreciated.
Thanks,
- ArturHi,
Some styles won't work because some text styles got hardcoded into the DefaultGridHeaderRenderer's Label. You'll run into this issue not just with the DataGrid headers but also things like the Panel's title and other places where we have text. One way to get around this issue is to create your own custom headerRenderer based on the default one and then redefine the headerRenderer skin part in the skin.
First, create a subclass of the DefaultGridHeaderRenderer and tweak the "labelDisplay" to your liking (or even just take out all the styles and style it on your own as you had earlier using your custom header renderer's name). Example below (I named it "CustomHeaderRenderer"):
<?xml version="1.0" encoding="utf-8"?>
<skins:DefaultGridHeaderRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:skins="spark.skins.spark.*"
xmlns:comps="comps.*">
<fx:Declarations>
<!-- Remove fontweight="bold" and other styles as you wish
Must be a component and not a factory. -->
<s:Label id="labelDisplay"
verticalCenter="1" left="0" right="0" top="0" bottom="0"
textAlign="start"
verticalAlign="middle"
maxDisplayedLines="1"
showTruncationTip="true" />
</fx:Declarations>
</skins:DefaultGridHeaderRenderer>
Next, create a simple DataGrid skin by creating a subclass of the spark.skins.spark.DataGridSkin in MXML and defining a new headerRenderer component in the fx:Declarations section. Example below (I named it "CustomDataGridSkin"):
<?xml version="1.0" encoding="utf-8"?>
<skins:DataGridSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:skins="spark.skins.spark.*"
xmlns:comps="comps.*">
<fx:Declarations>
<!-- Must be a factory with the right id for the skin part -->
<fx:Component id="headerRenderer">
<comps:CustomHeaderRenderer />
</fx:Component>
</fx:Declarations>
</skins:DataGridSkin>
Last, assign your new skin as the skinClass of your DataGrid (either in MXML or as a style):
<s:DataGrid skinClass="comps.CustomDataGridSkin">
I know it's not pretty, but it's the result of trading off between having completely custom skinning vs. having knobs to tweak every style. Hope this helps.
-Kevin -
Change the button style in wdj
Dear all:
I want to change the button style in wdj application
When I change the “url to button design bar”to gif file,preview is fine
But emphasized buttons is old in wdj application
My EP versions is 7.4
Thanks in advance!!!
Regards
BluesHi Venki,
Thanks a lot for the reply.
If the OTR is static I can go and change text in the Transaction SOTR_EDIT. But in this scenario the button text changes dynamically according to the tab navigation on the Candidate profile page.
Say If I am in Education Tab, the first button will be the Work Expereince (previous tab name ) and Second button text will be Qualifcation (next tab name). Similary the button text changes when I am in Qualification tab.
I tried looking in the HRRCF_PROFILE for the OTR related to these buttons I could not find any.
Any suggestions to solve this will be higly appreciated.
Regards,
Sharad P. -
Displaying dynamically changing image: a problem with JLabel.
Hello! I use NetBeans 5.5 and I develop my GUI with Matisse. I'm rather a beginner in developing GUIs with this editor...
I'd like to display a dynamically changing image. The idea is: GUI shows the image, that is modified as some computations run in a different thread. App will be run on a single machine.
I'm trying to display the image as a label's icon. The problem is that my app's frame can be resized - and when it is, the label also resizes. When the label is resized, the image should also be resized - the image should always be of the same size as the label. The problem? I noticed, that it works only when I make my app's bigger. When I try to lower its dimensions, the label's dimensions remain the same. Why the label don't make its size smaller?
My code works as follows: when app's main frame is resize, the panel (the one, that the label is placed in) is also resized. And, since the label is in the panel, it (should) also be resized. So I wrote all the resize-events handlers (therefore I know that the resize event is sent when my app's frame is resized, and when the panel is resized - but the label is resized only when it grows bigger). In this methods I modify the image displayed in the label (I resize the image).
Or, perhaps, there is some other way to show a (dynamically changing) image with Swing... I chose JLabel, because I didn't want to write my own JComponent. JLabel can display image and that is all I need. The problem is: when the label grows bigger, I create a new, bigger image (icon). Why my label don't get smaller (the resize event isn't even sent)?There is no component that dynamically resizes an image. You need to create your own. Something like this:
JComponent component = new JComponent()
protected void paintComponent(Graphics g)
// Scale image to size of component
g.drawImage(yourImage, 0, 0, getWidth(), getHeight(), null);
}; -
Error: Metadata of component EquipmentShipment is not valid!
Hello all,
I have created one webdynpro DC -A which has two DCs as used DC- B & C.
Now everything builds & runs fine on local server. but when I activate DC "A" gives build errors, as it does not get reference for DC -B.
Here is the error:
"Error: Metadata of component EquipmentShipment is not valid! "Role "UsedComponent": A minimum of 1 object(s) is required!" "
This error is only for "B" not "C"
I tried rebuild, resync, recreate the dependency through public part but no use.
Could you please help me with this issue?
Thanks in advance!
Regards,
Sarika.Hi Sarika,
Generally these type of errors occur due to broken DCs. Check DC build for 'B'. You may find more accurate information in the build report. I too faced similar issue once then the problem was some of the RFC changes were not imported. Check whether it is also same case for you.
If it is a wd-gen error, try to remove wdgen and gen folders for DC-B and build & try.
Still you have problem, check this [thread |Re: Local DC problems;whether it can help you.
Regards,
Siva
Maybe you are looking for
-
BPM Collect pattern is not coming out and it is in loop.
Hi Experts, We have implemented a BPM Collect Time pattern and it was working fine in Dev and QA environments perfectly. Couple of days back we have some server issue in Dev environment and Basis team has done some thing with File Storage. From that
-
Acrobat 8.1.5 crashes when scanning two-sided documents-help!
Hi, I've been searching for some answer to this, but I'm not finding any yet... My problem is that I am trying to use Acrobat 8.1.5 to scan in a double-sided multi-page document using a Brother MFC-7420 with a document feeder. I'm on OS 10.5.8. Scann
-
Right to left Languages how do I setup it on my leopard?!
Hi I bought a new macbook pro and I struggle to update right to left languages like Hebrew, this stiffen on me in the work the with Keynote Numbers ect'. someone can help?
-
Import package.* doesnot work..
hello all.. I have this problem. I have made two classes, A.java and B.java. Both the classes are in the same folder. Class A.java package pack1; public class A public void testA() System.out.println("Package Pack1 : A "); Class B.java
-
Audio out of sync on source file
So I've captured 4 tapes from an event. The 1st two tapes captured produced a quicktime file with the audio out of sync. The last two tapes are fine. The sample rates match both the capture settings and sequence settings and "make new clip on timecod