INline custom editor for spark column
Here is quick column definition:
<s:GridColumn dataField="label1" headerText="Order #" editable="true">
<s:itemEditor>
<fx:Component>
<s:GridItemEditor>
<s:TextArea/>
</s:GridItemEditor>
</fx:Component>
</s:itemEditor>
</s:GridColumn>
It will fail at the run time:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at spark.components.gridClasses::DataGridEditor/setEditedItemPosition()[E:\dev\4.5.1\framewo rks\projects\spark\src\spark\components\gridClasses\DataGridEditor.as:312]
at spark.components.gridClasses::DataGridEditor/dataGrid_gridItemEditorSessionStartingHandle r()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\gridClasses\DataGridEditor .as:1204]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\co re\UIComponent.as:13128]
at spark.components.gridClasses::DataGridEditor/startItemEditorSession()[E:\dev\4.5.1\framew orks\projects\spark\src\spark\components\gridClasses\DataGridEditor.as:798]
at testGrid/startItemEditorSession()[C:\testarea\Flex\Test Project\gridComboRenderer\src\testGrid.as:27]
at gridComboRenderer/onChange()[C:\testarea\Flex\Test Project\gridComboRenderer\src\gridComboRenderer.mxml:30]
at gridComboRendererInnerClass2/___gridComboRendererInnerClass2_Button1_click()[C:\testarea\ Flex\Test Project\gridComboRenderer\src\gridComboRenderer.mxml:69]
Am I doing it wrong?
Yes. Unlike MX, Spark Controls don’t carry the weight of also being drop-in item renderers and editors. You will need to build up your editor based on the GridItemEditor class.
Similar Messages
-
Can't add numbers greater than 100 in the Data Editor for a column chart
I'm trying to create a column chart in Keynote '09 but every time I add a data point with a value greater than 100 in the Data Editor it turns the number into a date. I have the Y Axis set to "Number" and it works fine for numbers less than 100 but I want to show a graph that goes from 0 - 1000. Is this happening to anyone else?
Chart Settings:
Y Axis Options:
- Max = 1000
- Steps = 5
- Format = Number
X Axis Options
- Show Axis
- Show Categories
- No Tick Marks
thanks in advance for the helpWelcome to the discussions, AlexEberts.
No, it's not happening for me. This is what I'm doing
1) Insert -> Chart -> Column
2) In the Data editor, for 2007, I enter 110.
The chart automatically expands to 110 (because, by default, it's set to autosize the Y-axis)
Does this work for you? If it does, then we can look at why it doesn't work when you add parameters. -
Dreamweaver as custom editor for other file extensions
So, I'm working on a project that requires me to work on some
files with non-standard extensions. Namely, I have some text files
that have a .cm extension, and I have some code files which have no
extension at all. I am connecting to my file store via an FTP
"site" set up in Dreamweaver.
Under preferences->filetypes/editors, I set up ". .cm" for
those two cases, and had selected "Dreamweaver" as the primary
editor.
The files open just fine, and I'm able to edit and save them,
and when I do, the files get "PUT" back up to the FTP server as I
want. However, what I've noticed is that the first time I edit one
of those types of files, and save it, now, from then on in that
session of Dreamweaver, any time I de-focus the window and then
come back to it, the IDE initiates another PUT action of the files
in question, even if the files are unchanged.
However, if I go back into preferences, and remove the
"Dreamweaver" as the primary editor for those two extensions, and
leave that list blank, Dreamweaver still is able to open up the
files as I want, but this weirdness with FTP putting and the
window-focus goes away.
Anyone have any idea why?This TechNote explains how to add file extensions to be
recognized by DW.
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
Unfortunately, DW does not handle file with no file extension
very well.
HTH,
Randy
> So, I'm working on a project that requires me to work on
some files with
> non-standard extensions. Namely, I have some text files
that have a .cm
> extension, and I have some code files which have no
extension at all. -
Create custom scrollbar for Spark Datagrid
I had a custom scroll bar for a MX datagrid. But recently I got the new Flash Builder 4.5 and it said to use the Spark Datagrid component instead. So I changed everything to Spark, but now I can't find any info on customizing the scroll bar. Is this possible? Should I go back to mx?
According to the documentation in Flash Builder:
"The Spark DataGrid control provides the following features:
- Custom skins to control all aspects of the appearance of the DataGrid control"
So I'm hoping it's possible but I can't find any info either way.Thanks. I'm not sure exactly how I did it, but I started with this document in Flash Builder Help:
"Setting a custom horizontal scroll bar skin on a Spark List control in Flex 4"
I copied the code and changed "s|List" to "s|Datagrid", modified it accordingly for a vertical scroll bar, and I deleted references to "base color" so that it would compile. Then, I copied in VScrollBarTrackSkin.mxml and VScrollBarThumbSkin.mxml from the Flash Builder directory: Adobe Flash Builder 4.5\sdks\4.5.1\samples\themes\zen\src\zen\skins. And I removed the references to the swf files so that it would compile. Then I embedded my own png images, e.g.: source.up="@Embed(source='/images/thumb.png')". And I got a scrollbar!
Only problem is the example does not have up and down controls. But I figured this out from looking at the zen skins (VScrollBarSkin / HScrollBarSkin) and copying in the code for the up and down buttons as well. Now it's working pretty good.
[I did not use any of the Flash Builder wizards/GUI to create the skins or files. I just created the files individually (as in File - New - File). Perhaps there's a better way to do it, but this worked for me.]
I'm not sure why you suggested looking at "ScrollerSkin". This didn't lead me anywhere, though perhaps I was not clear in my question. But I greatly appreciate your answer, for saying that this is possible, otherwise I would have given up! -
Error while creating a custom combobox for Spark DataGrid
I am getting the following run time error:
Error: Required skin part openButton cannot be found.
atspark.components.supportClasses::SkinnableComponent/findSkinParts() [E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\componen ts\supportClasses\SkinnableComponent.as:671]
atspark.components.supportClasses::SkinnableComponent/attachSkin()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\SkinnableComponent.as:646]
atspark.components.supportClasses::SkinnableComponent/validateSkinCha nge()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\com ponents\supportClasses\SkinnableComponent.as:406]
atspark.components.supportClasses::SkinnableComponent/commitPropertie s()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compo nents\supportClasses\SkinnableComponent.as:420]
atspark.components.supportClasses::ListBase/commitProperties()[E:\dev \hero_private_beta\frameworks\projects\spark\src\spark\components\supp ortClasses\ListBase.as:808]
atspark.components::List/commitProperties()[E:\dev\hero_private_beta\ frameworks\projects\spark\src\spark\components\List.as:954]
atspark.components.supportClasses::DropDownListBase/commitProperties( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\DropDownListBase.as:504]
atspark.components::ComboBox/commitProperties()[E:\dev\hero_private_b eta\frameworks\projects\spark\src\spark\components\ComboBox.as:644]
atmx.core::UIComponent/validateProperties()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\core\UIComponent.as:8095]
atmx.managers::LayoutManager/validateClient()[E:\dev\hero_private_bet a\frameworks\projects\framework\src\mx\managers\LayoutManager.as:934]
atmx.core::UIComponent/validateNow()[E:\dev\hero_private_beta\framewo rks\projects\framework\src\mx\core\UIComponent.as:7953]
atspark.components.supportClasses::GridLayout/layoutItemRenderer()[E: \dev\hero_private_beta\frameworks\projects\spark\src\spark\components\ supportClasses\GridLayout.as:1808]
atspark.components.supportClasses::GridLayout/createTypicalItemRender er()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\comp onents\supportClasses\GridLayout.as:460]
atspark.components.supportClasses::GridLayout/updateTypicalCellSizes( )[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\compone nts\supportClasses\GridLayout.as:514]
atspark.components.supportClasses::GridLayout/layoutColumns()[E:\dev\ hero_private_beta\frameworks\projects\spark\src\spark\components\suppo rtClasses\GridLayout.as:570]
atspark.components.supportClasses::GridLayout/measure()[E:\dev\hero_p rivate_beta\frameworks\projects\spark\src\spark\components\supportClas ses\GridLayout.as:230]
atspark.components.supportClasses::GroupBase/measure()[E:\dev\hero_pr ivate_beta\frameworks\projects\spark\src\spark\components\supportClass es\GroupBase.as:1109]
atmx.core::UIComponent/measureSizes()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8383]
atmx.core::UIComponent/validateSize()[E:\dev\hero_private_beta\framew orks\projects\framework\src\mx\core\UIComponent.as:8307]
atspark.components::Group/validateSize()[E:\dev\hero_private_beta\fra meworks\projects\spark\src\spark\components\Group.as:956]
atmx.managers::LayoutManager/validateSize()[E:\dev\hero_private_beta\ frameworks\projects\framework\src\mx\managers\LayoutManager.as:659]
atmx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\hero_priv ate_beta\frameworks\projects\framework\src\mx\managers\LayoutManager.a s:793]
atmx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\h ero_private_beta\frameworks\projects\framework\src\mx\managers\LayoutM anager.as:1157]
Here is my combobox:
package
import mx.controls.listClasses.BaseListData;
import mx.controls.listClasses.IDropInListItemRenderer;
import spark.components.ComboBox;
public class sparkComboRendererDataGrid extends ComboBox implements IDropInListItemRenderer
public function sparkComboRendererDataGrid()
super();
public function get listData():BaseListData
return null;
public function set listData(value:BaseListData):void
override public function set dataProvider(value:Object):void
super.dataProvider = value;
// This may get called before dataProvider is set, so make sure not null and has entries
if (value!=null && value.length)
// Got it, set flag
bDataProviderSet = true;
and here is the implementation:
var PersonnelPerson:ClassFactory = new ClassFactory(sparkComboRendererDataGrid);
PersonnelPerson.properties = {labelField : "person", dataProvider :
new XMLListCollection(dataList.consistcrew)};
var col:GridColumn = GridColumn(personnel.columns.getItemAt(0));
col.itemRenderer = PersonnelPerson;
Please help.
ThanksActually, after adding the following code it started working:
import spark.skins.spark.DropDownListSkin;
override public function stylesInitialized():void
super.stylesInitialized();
this.setStyle("skinClass", DropDownListSkin); -
Creating a custom editor for each cell in a Jtable
camirk, i know its swing ;) so
http://forum.java.sun.com/thread.jspa?threadID=652383
im just posting this link here for people who dont read the swing forum but are looking for the same solution
hope it helps someone :)Two days after you posting you original question: http://forum.java.sun.com/thread.jspa?threadID=651625&messageID=3831712
you find the answer on your own. Yes, the general Java forum sure is helpfull.
If the question was posted in the Swing forum you would have had the answer in a couple of hours:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=637581 -
Strange behavior in JTable using JFileChooser as custom editor
I have an application that I am working on that uses a JFileChooser (customized to select images) as a custom editor for a JTable. The filechooser correctly comes up when I click (single click) on a cell in the table. I can use the filechooser to select an image. When I click on the OPEN button on the filechooser, the cell then displays the editor class name.
I have added prints to the editor methods and have determined that editing is stopped before the JTable adds the listener. I have looked at the code and have searched doc for examples but have not found what I am doing wrong. Can anyone help?
I configured the table editor as follows:
//Set up the editor for the Image cells.
private void setUpPictureEditor(JTable table) {
table.setDefaultEditor(String.class, new PictureChooser());
Below is the code for the JTable editor that I am using:
package com.board;
import java.io.*;
import java.util.Vector;
import java.util.EventObject;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.table.TableCellEditor;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
public class PictureChooser extends JLabel implements TableCellEditor
boolean DEBUG = true;
int line=0;
static private String newline = "\n";
protected boolean editing;
protected Vector listeners;
protected File originalFile;
protected JFileChooser fc = new JFileChooser("c:\\java\\jpg");
protected File newFile;
public PictureChooser()
super("PictureChooser");
if (DEBUG)
System.out.println(++line + "-PictureChooser constructor");
listeners = new Vector();
fc.addChoosableFileFilter(new ImageFilter());
fc.setFileView(new ImageFileView());
fc.setAccessory(new ImagePreview(fc));
private void setValue(File file)
if (DEBUG)
System.out.println(++line + "-PictureChooser.setValue method");
newFile = file;
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int col)
if (DEBUG)
System.out.println(line + "-PictureChooser.getTableCellEditorComponent row:" + row + " col:" + col + " method");
fc.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String cmd = e.getActionCommand();
System.out.println(++line + "-JFileChooser.actionListener cmd:" +
cmd);
if (JFileChooser.APPROVE_SELECTION.equals(cmd))
stopCellEditing();
else
cancelCellEditing();
//editing = true;
//fc.setVisible(true);
//fc.showOpenDialog(this);
int returnVal = fc.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION)
newFile = fc.getSelectedFile();
table.setRowSelectionInterval(row,row);
table.setColumnSelectionInterval(col,col);
return this;
// cell editor methods
public void cancelCellEditing()
if (DEBUG)
System.out.println(++line + "-PictureChooser.cancelCellEditing method");
fireEditingCanceled();
editing = false;
fc.setVisible(false);
public Object getCellEditorValue()
if (DEBUG)
System.out.println(++line + "-PictureChooser.getCellEditorValue method");
return new ImageIcon(newFile.toString());
public boolean isCellEditable(EventObject eo)
if (DEBUG)
System.out.println(++line + "-PictureChooser.isCellEditable method");
return true;
public boolean shouldSelectCell(EventObject eo)
if (DEBUG)
System.out.println(++line + "-PictureChooser.shouldSelectCell method");
return true;
public boolean stopCellEditing()
if (DEBUG)
System.out.println(++line + "-PictureChooser.stopCellEditing method");
fireEditingStopped();
editing = false;
fc.setVisible(false);
return true;
public void addCellEditorListener(CellEditorListener cel)
if (DEBUG)
System.out.println(++line + "-PictureChooser.addCellEditorListener method");
listeners.addElement(cel);
public void removeCellEditorListener(CellEditorListener cel)
if (DEBUG)
System.out.println(++line + "-PictureChooser.removeCellEditorListener method");
listeners.removeElement(cel);
public void fireEditingCanceled()
if (DEBUG)
System.out.println(++line + "-PictureChooser.fireEditingCanceled method");
setValue(originalFile);
ChangeEvent ce = new ChangeEvent(this);
for (int i=listeners.size()-1; i>=0; i--)
((CellEditorListener)listeners.elementAt(i)).editingCanceled(ce);
public void fireEditingStopped()
if (DEBUG)
System.out.println(++line + "-PictureChooser.fireEditingStopped method");
ChangeEvent ce = new ChangeEvent(this);
for (int i=listeners.size()-1; i>=0; i--)
System.out.println(++line + "-PictureChooser listener " + i);
((CellEditorListener)listeners.elementAt(i)).editingStopped(ce);try this code. it work fine.
regards,
pratap
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.table.*;
import java.io.*;
public class TableDialogEditDemo extends JFrame {
public TableDialogEditDemo() {
super("TableDialogEditDemo");
MyTableModel myModel = new MyTableModel();
JTable table = new JTable(myModel);
table.setPreferredScrollableViewportSize(new Dimension(500, 70));
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
//Set up renderer and editor for the Favorite Color column.
setUpColorRenderer(table);
setUpColorEditor(table);
//Add the scroll pane to this window.
getContentPane().add(scrollPane, BorderLayout.CENTER);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
private void setUpColorRenderer(JTable table) {
table.setDefaultRenderer(File.class, new PictureRenderer(true));
//Set up the editor for the Color cells.
private void setUpColorEditor(JTable table) {
table.setDefaultEditor(File.class, new PictureChooser());
class PictureRenderer extends JLabel implements TableCellRenderer {
Border unselectedBorder = null;
Border selectedBorder = null;
boolean isBordered = true;
public PictureRenderer(boolean isBordered) {
super();
this.isBordered = isBordered;
setOpaque(false);
setHorizontalAlignment(SwingConstants.CENTER);
public Component getTableCellRendererComponent(
JTable table, Object value,
boolean isSelected, boolean hasFocus,
int row, int column) {
File f = (File)value;
try {
setIcon(new ImageIcon(f.toURL()));
catch (Exception e) {
e.printStackTrace();
return this;
class MyTableModel extends AbstractTableModel {
final String[] columnNames = {"First Name",
"Favorite Color",
"Sport",
"# of Years",
"Vegetarian"};
final Object[][] data = {
{"Mary", new Color(153, 0, 153), "Snowboarding", new Integer(5), new File("D:\\html\\f1.gif")},
{"Alison", new Color(51, 51, 153), "Rowing", new Integer(3), new File("D:\\html\\f2.gif")},
{"Philip", Color.pink, "Pool", new Integer(7), new File("D:\\html\\f3.gif")}
public int getColumnCount() {
return columnNames.length;
public int getRowCount() {
return data.length;
public String getColumnName(int col) {
return columnNames[col];
public Object getValueAt(int row, int col) {
return data[row][col];
public Class getColumnClass(int c) {
return getValueAt(0, c).getClass();
public boolean isCellEditable(int row, int col) {
if (col < 1) {
return false;
} else {
return true;
public void setValueAt(Object value, int row, int col) {
data[row][col] = value;
fireTableCellUpdated(row, col);
public static void main(String[] args) {
TableDialogEditDemo frame = new TableDialogEditDemo();
frame.pack();
frame.setVisible(true);
import java.awt.Component;
import java.util.EventObject;
import java.awt.event.*;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.io.*;
public class PictureChooser extends JButton implements TableCellEditor, ActionListener {
protected EventListenerList listenerList = new EventListenerList();
protected ChangeEvent changeEvent = new ChangeEvent(this);
private File file;
public PictureChooser() {
super("");
setBackground(Color.white);
setBorderPainted(false);
setMargin(new Insets(0,0,0,0));
addActionListener(this);
public Component getTableCellEditorComponent(JTable table, Object value,
boolean isSelected, int row, int column) {
File f = (File)value;
try {
setIcon(new ImageIcon(f.toURL()));
catch (Exception e) {
e.printStackTrace();
return this;
public void actionPerformed(ActionEvent e)
JFileChooser chooser = new JFileChooser("d:\\html");
int returnVal = chooser.showOpenDialog(this);
if(returnVal == JFileChooser.APPROVE_OPTION) {
file = chooser.getSelectedFile();
System.out.println("You chose to open this file: " + chooser.getSelectedFile().getName());
fireEditingStopped();
else
fireEditingCanceled();
public void addCellEditorListener(CellEditorListener listener) {
listenerList.add(CellEditorListener.class, listener);
public void removeCellEditorListener(CellEditorListener listener) {
listenerList.remove(CellEditorListener.class, listener);
protected void fireEditingStopped() {
System.out.println("fireEditingStopped called ");
CellEditorListener listener;
Object[] listeners = listenerList.getListenerList();
for (int i = 0; i < listeners.length; i++) {
if (listeners[i] == CellEditorListener.class) {
listener = (CellEditorListener) listeners[i + 1];
listener.editingStopped(changeEvent);
protected void fireEditingCanceled() {
CellEditorListener listener;
Object[] listeners = listenerList.getListenerList();
for (int i = 0; i < listeners.length; i++) {
if (listeners[i] == CellEditorListener.class) {
listener = (CellEditorListener) listeners[i + 1];
listener.editingCanceled(changeEvent);
public void cancelCellEditing() {
System.out.println("cancelCellEditing called ");
fireEditingCanceled();
public boolean stopCellEditing() {
System.out.println("stopCellEditing called ");
fireEditingStopped();
return true;
public boolean isCellEditable(EventObject event) {
return true;
public boolean shouldSelectCell(EventObject event) {
return true;
public Object getCellEditorValue() {
return file; -
JDev Extensions: Register only a particular XML file with custom Editor?
Hi Guys,
I have extended the Editor class and created my own Editor - MyCustomEditor. Below is the part of 'extension.xml', where I am registering any XML document with this editor.
<editors xmlns="http://xmlns.oracle.com/ide/extension">
<!-- Register our custom editor -->
<editor id="myCustomEditor.design"
label="My Design"
editor-class="oracle.xxx.xxx.MyCustomEditor" >
<node-type class="oracle.bali.xml.addin.XMLSourceNode" />
</editor>
</editors>
But my actual requirement is to register my custom (design) editor to a particular XML file which has a fixed name, lets say MyApplicationFile.xml. I don't want this Custom Editor for any other XML document. How can I achieve this?
Thanks,
Rajesh.No JDev version??
Here is what you can try.
1. Subclass XMLSourceNode to CustomXMLSourceNode. Mention this class in editor tag.
2. In addition to <editor> you may need to have <xml-recognizer> along with <include-filenames>MyApplicationFile.xml</include-filenames>. -
Property editor for non bean components
All
My Requirement:
I had just started to develop an IDE for java, if i click on the component for eg,, a button in the frame i should get all the properties of that component. Is there anyway i could do this thru the PropertyEditor object.
Any other suggestions????
Tx in advance
ArulFirst I suggest you bone up on the JavaBeans specification... know it well.
Next I think you'll conclude that you'll need to build your own PropertyEditors for all the common types. Along with custom editors for complex types e.g., Font.
Also I think you'll notice that the JavaBeans component model is severely lacking regarding property exposure; a competent property inspector will have to embellish on the JavaBeans model.
Good luck. -
JTable with custom cell for folding and unfolding rows
Hi,
I am trying to implement a JTable, whereas one of the columns is a custom component, which has a small + in the right upper corner.
When you push this + the JTable should unfold other rows, giving more detail on the current row.
So something like this :
|--------------------------------|
| <some-string> + |
|--------------------------------|Drawing this custom component for the column is no problem but I am having trouble implementing the MouseMotionListener events over this.
If I add a mouseMotionListener to the JTable, I am able to forward these events to my custom class which draws this custom component.
But off course the X and Y coordinates of this MouseEvent are not mapped into the grid of my custom component, which poses my question.
How can I attach to each cell of this custom column of my JTable, a listener as to implement some mouseover and mouseclick stuff ?
In case this post is not all that clear, I will try to add a demo showing my problem.
Kind regards,
Wim.You're reinventing a wheel that's been done a few times. One example is JTreeTable (http://community.java.net/javadesktop/) but there are others.
-
How remove saved system-wide default for a column
yesterday I saved a system-wide default for a column with a custom column heading and data format.
now, when I drag this column in a new analysis, obiee shows no column heading.
I've tried to save my custom default again or reset to column-default but with no results: the column heading is still empty.
How can I fix this problem?
thanks
LucHello,
What OBI version are you using?
Enter some other custom name for the column (e.g. same as default one) and save it as system-wide. I guess, you have already tried, but...
1. Stop Presentation Services.
2. Go under web catalog in the file system and locate folder \root\system\metadata. This folder contains files storing subject area attributes, including system-wide settings. I the folder find 2 files named similar as the subject area which column you have modified (name will be in lowercase, spaces replaced with +). For example, for "SA System" subject area these files are named as "sa+system" and "sa+system.atr".
3. Backup these 2 files you have found (better whole presentation catalog).
4. Try one of the options:
Option 1: If you have another version of these files (in the backup or other environments) - try to replace them. There is a risk you will loose some other column settings (or inherit new).
Option 2: Modify the file without extension (it contains XML code inside): locate the string similar to your column name. Remove whole section ONLY for the column you have found between tags <sawsavedformat:columnSavedFormat and </sawsavedformat:columnSavedFormat>.
Below is sample code for column originally named as "Pager" under "User" folder in "SA System" subject area.
<sawsavedformat:metadata xmlns:sawsavedformat="com.siebel.analytics.web/savedformat/v1.1">
<sawsavedformat:columnSavedFormats>
<sawsavedformat:columnSavedFormat xmlns:saw="com.siebel.analytics.web/report/v1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawsavedformat:regularColumnSavedFormat" columnName=""SA System"."User"."Pager"">
<saw:displayFormat><saw:formatSpec suppress="suppress" wrapText="true" hAlign="left" vAlign="top"/></saw:displayFormat>
<saw:tableHeading><saw:caption fmt="text"><saw:text>User</saw:text></saw:caption><saw:displayFormat/></saw:tableHeading>
<saw:columnHeading><saw:displayFormat><saw:formatSpec/></saw:displayFormat><saw:caption fmt="text"><saw:text>Pager New</saw:text></saw:caption></saw:columnHeading>
</sawsavedformat:columnSavedFormat>
</sawsavedformat:columnSavedFormats>
</sawsavedformat:metadata>
Option 3: Just remove these 2 files. Naturally, you will loose all the settings, not only one you like to get rid off.
5. Restart presentation services.
Hope, this helps. -
Custom Editor: get c++ LanguageService
Hi,
I'm currently creating a custom editor for Visual Studio.
Does somebody know how to get the registered c++ language service and use it for parse c++ and create my own syntactic coloration ?
Thank you in advance
Axel PayanHi Axel,
Please take a look at this thread, it's for Visual C# language, but should give you some ideas about how to utilize the built-in C++ language service for your custom editor:
Extending core C# Language Service
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Custom UI or editor for input-parameter
I think I need to implement a custom UI editor for an input-paramenter. My input parameter is really a HashTable. I'd like to present a dialog that allows the user to enter any number of key value pairs. The optional "editor" element looks promising because it allows you to specify a ui-component. I have searched and searched for sample code, but haven't found any. Would some kind soul please point me to a resource that shows how to implement such as custom UI (whether it involves the "editor" element or not)?
Here's a link to the ui-component element in the reference:
http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000959.html#1548965&accessible=true
Thanks,
HalynnI appreciate the reply.
I was actually trying to point to another page, although that page may be applicable. Apparently the URL in my browser window was not sufficient to recreate my state in livedocs. I was looking at the reference for component.xml, specifically where it describes an optional <editor> element of <input-parameter>. This <editor> component also has a child called <ui-component>. I haven't found any sample code that uses these two elements.
I need to call my component with a Map or Hashtable (an arbitrary set of Key/Value String pairs). This Map needs to be easily configurable in LiveCycle Workbench. I've seen numerous operations that popup dialogs for input-parameters and serialize their data. I was thinking that I will have to implement my own dialog.
It sounds like you are suggesting I can achieve this with a variable and the set value service. I don't quite understand. How would I insert the string pairs?
Thanks,
Halynn -
How to use custom tags for integrating FCK Editor?
Hi All,
I am looking for the integrating the FCK Editor in my jsp page. any one can please provide the procedure of How to create fckeditor in jsp?
I have the jar file of fck editor but i am confusing while creating the custom tag for that editor.
I want like this:
<FCKeditor:fck ?> like this
Regards,
Sateeshgoogle answers it all..
[http://www.jroller.com/coreteam/entry/using_fckeditor_in_jsp_web]
[http://java.fckeditor.net/properties.html]
[http://java.fckeditor.net/java-core/tagreference.html] -
Keyboard Access For a Column in JTable with default editor as JComboBox
I want to get Key board access for a column in JTable.
The user should be able to select from a drop down list for the column with default
editor set as JComboBox.
Presently,it works fine with mouse,also I am able to focus it with Keyboard using
ALT+Up keys,but how to make drop down list appear.
Plz help,it's urgent.
Thanks in AdvanceHi,
In addition to setting DO_SUM = 'X' you need to specify function in H_FTYPE field. It should be set to 'AVG' in your case.
ls_fielcat-do_sum = 'X'.
ls_fieldcat-h_ftype = 'AVG.
Maybe you are looking for
-
Data recovery from serially installed hard drives
Like many other users on these boards, by X205 is refusing to boot. My question: How can I recover the data on my hard drives, since there are two of them? I ran a search to find all of the files I wanted (*.jpg in this case), and the search came bac
-
MISSING SILVER BAR ON BOTTOM OF SCREEN NEED BACK
ok im missing my silver bar at bottom of screen and i lost my music video itunes and photo app maybe more idunno its not an ipod without a music app so if i cant get my silver bar back least help me get that
-
How to sign java applet policy to end user?
i have putted my applet class on server, i want all end users can access it on server, how to sign the java.policy to there JRE? can anyone help me?
-
Can someone remind me about the 'bouncing DW icon in the dock' issue when using MX04 with Apple Tiger OS? i.e. DW doesn't open, icon just bounces in dock. I know theres a reason and a link to the issue on the Adobe site but just cant remember where i
-
IPhoto comment used in iWeb...?
I know that there is a way to get the comments I entered on photos in an iPhoto album to be entered as the caption / comment of those same photos once it's exported to an iWeb Photo page... But I forgot how... Does anyone else here remember how to do