How to bind tableview cell co-ordinate with line
Hello,
i have two tableview controls in one group say LeftTable and Righttable. Now i want to achieve functionality as below.
every time Line should draw from where user drag mouse on any row of Lefttable and drop it on any RightTable.
i was not able to get selected cell co-ordinate but i have achieve this functionality manually by calculating StartX, StartY, EndX and EndY of line as below
Line.setStartX(LeftTable.getLayoutX()+LeftTable.getWidth())
Line.setStartY(event.getSceneY())
Line.setEndX(RightTable.getLayoutX())
Line.setEndY(event.getSceneY())
see screen shot at http://www.pixhost.org/show/1991/11613025_arrow.png
Now what i want to achieve is when i scroll any table then related lines should automatically move according to their link. [http://www.pixhost.org/show/1991/11613025_arrow.png]
Hello,
i have two tableview controls in one group say LeftTable and Righttable. Now i want to achieve functionality as below.
every time Line should draw from where user drag mouse on any row of Lefttable and drop it on any RightTable.
i was not able to get selected cell co-ordinate but i have achieve this functionality manually by calculating StartX, StartY, EndX and EndY of line as below
Line.setStartX(LeftTable.getLayoutX()+LeftTable.getWidth())
Line.setStartY(event.getSceneY())
Line.setEndX(RightTable.getLayoutX())
Line.setEndY(event.getSceneY())
see screen shot at http://www.pixhost.org/show/1991/11613025_arrow.png
Now what i want to achieve is when i scroll any table then related lines should automatically move according to their link. [http://www.pixhost.org/show/1991/11613025_arrow.png]
Similar Messages
-
How do I use cell number associated with iPad 2 3G
How do I use cell number associated with iPad 2 3G
For Messages you can can use your email address, the iPad doesn't have a phone number that you can use.
-
How to synchronize a cell in form with a cell in MS excel sheet
dear all
I can successfuly export data to excell using the ole2 package. But the problem is that exporting data from A datablock in a form to Excel sheet is not enough.
I need to automaticaly copy updates occures on the datablock to its equilivant in the excel sheet. In other words , i need to synchronize my datablock items with facing cells in the excel sheet,so the cells'values in excel sheet automatiacly changes to be the values in the datablock items
please helpDear all
I can successfuly export data to excell using the ole2 package. But the problem is that exporting data from A datablock in a form to Excel sheet is not enough.
I need to automaticaly copy updates occures on the datablock to its equilivant in the excel sheet. In other words , I need to synchronize my datablock items with facing cells in the excel sheet,so the cells'values in excel sheet automatiacly changes to be the values in the datablock items
I searched the web several times . Some people adviced me to use "Apache-jakarta-poi" . It is a pure java code. But my knoledge in java is limited.I asked on Oracle forums -
how to synchronize a cell in form with a cell in MS excel sheet - but no one can help
I tried the oracle forms demo "OLEEXCEL.fmb" . But this form is not working correct .
I need to embed ole2 in my form that holds excel sheet and passes values from text items to the excel sheet.
My last try is that I did the following :
1- in the main canvas i insert the OLE2 control
2- Right Click and choose insert
3- from the dialog i chosed Excel Sheet
4- I placed a button on my canvas then i on the button I write this code
declare
worksheet ole2.obj_type;
cell ole2.obj_type;
args ole2.list_type;
begin
forms_ole2.activate_server('block1.excel_sheet');
worksheet := forms_ole2.get_interface_pointer('block1.excel');
args := ole2.create_arglist;
ole2.add_arg(args,1) -- column1
ole2.add_arg(args,1) -- cell1
cell := ole2.invoke_obj(worksheet,'cell',args);
ole2.destroy_arglist(args);
ole2.set_property('cell','value',:text1);
ole2.release_obj(cell);
ole2.release_obj(worksheet);
end;
I get this error ora-305500
and when i debug , the code stop in this line : cell := ole2.invoke_obj(worksheet,'cell',args);
please help -
How to get TableView cell values
Hi All,
I'm new to PDK.
I have a TableView which set to Single Selection (the table has a column of radio buttons).
When the user selects a row I want to get the cells' values of the row from the client side.
I can get the row's number by using the following code:
tvModel.setOnClientRowSelection("generateNumber(htmlbevent)");
function generateNumber(myEvent) {
alert(myEvent.obj.clickedRow.toString());
Is there a function like getValueAt(row,col)?
How can I solve this?
Thanks,
OmriHi
There is a function getValueAt(row,col) to get a value at particular row and column.
Please go through the followin forum thread which is related to your problem:
Using OnCellClick with TableView to get cell value
Hope this helps you.
Regards
Victoria -
How to bind the value of textbox with View object's bind variable?
Hi all,
In my use case I need to pass the value of textbox in the jsf page to the View Object's bind variable.
I should not hard code this in my backing bean. I need to configure in the Jdeveloper itself.
I am using Jdeveloper 11.1.1.4.0 version. Kindly come up with your help.
Thanks,
Phani.Hi,
You have to use Named Bind Variables(ExecuteWithParams)
http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/web_search_bc004.htm
http://www.cloudsolid.com/2008/10/using-named-bind-variables.html -
How to bind a WrapPanel's items with different width to respective Grid's ColumnWidth??
I have a Grid which has two columns. Inside the grid there will be WrapPanel which starts from column 0 and has columnspan of 1. This WrapPanel has two children. I want one children's width to be the width of col0 and other to be the width of col1. I have
tried something(code below) but it is not working.[Initially I implemented this without wrappanel that is my grid will have two columns,one column takes 60% of the total width and also has minimum width, other column takes 40% of the total width.So everything
is fine.But when I resize my window I want the second column to get wrapped to the bottom of the 1st column.So I added wrappanel].
The following code explains well:
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"></ColumnDefinition>
<ColumnDefinition Width="4*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<StackPanel Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
<StackPanel Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
<TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
<Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
</WrapPanel>
</Grid>Why don't you just remove the WrapPanel and set the Grid.Column attached properties of the StackPanels?:
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"></ColumnDefinition>
<ColumnDefinition Width="4*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
<StackPanel Grid.Column="1" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
<TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
<Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
</Grid>
I am afraid that it makes no sense to define two ColumnDefinitions if you just put a single element with the Grid.ColumnSpan property set to 2 in the Grid. This effetively makes the WrapPanel span the two columns and then there is only a single column...You
might as well put the Grid inside the WrapPanel then:
<WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"></ColumnDefinition>
<ColumnDefinition Width="4*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="0" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[0].ActualWidth}">
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}" FontSize="13"/>
<Button Margin="0,3,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
<StackPanel Grid.Column="1" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type Grid}}, Path=ColumnDefinitions[1].ActualWidth}">
<TextBlock Foreground="{DynamicResource VsBrush.ToolWindowText}"></TextBlock>
<Button Margin="0,5,0,0" Style="{DynamicResource StartPage.RSS.TitleTextStyle}"/>
</StackPanel>
</Grid>
</WrapPanel>
There is also a SharedSizeGroup property that you can set if you are adding several Grids to the WrapPanel and want the columns of all Grids to have a common width:
https://msdn.microsoft.com/en-us/library/system.windows.controls.definitionbase.sharedsizegroup(v=vs.110).aspx
<WrapPanel Orientation="Horizontal" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" VerticalAlignment="Top">
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" SharedSizeGroup="a"></ColumnDefinition>
<ColumnDefinition Width="4*" SharedSizeGroup="b"></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid>
<Grid Grid.Row="1" Margin="0,20,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" SharedSizeGroup="a"></ColumnDefinition>
<ColumnDefinition Width="4*" SharedSizeGroup="b"></ColumnDefinition>
</Grid.ColumnDefinitions>
</Grid>
</WrapPanel>
Please remember to close your threads by marking helpful posts as answer. -
How to bind webdynpro abap context attributes with interactive form table
hi,
I was created table in interactive form and add the all context attributues to each column of the table.
And add the table into the subform.
i want to bind the table using bapi values form Webdynpro abap.
please give the detailed explanation.
by
ParthasarathiHey Lingam,
Check out this link...
[Inserting a Table or Loop|http://help.sap.com/erp2005_ehp_04/helpdata/EN/4c/9cc19e5c874091a99790e540b06f3a/frameset.htm]
It's for EhP4, so I'm not sure if it would apply.
Hope this helps...
Cheers,
Kevin -
How can I import CTI route points with line setting "Advertise Globally via ILS" enabled?
I am using CUCM 10.5.1.10000-7 and am using ILS to propogate dial plans between two clusters. We use quite a few CTI route points but so I generally import them into the cluster with all the appropriate settings and line association settings. I need to be able to enable and set the various ILS settings line Advertise Globally via ILS. This can be done on phones and their line associations but not on CTI route points as far as I can figure. The same goes true with the Bulk Administration, you can updates lines of the phones for these setting but not CTI route points. Any trick or even obvious thing I am missing? Setting these manually is extremely time consuming.
I am using CUCM 10.5.1.10000-7 and am using ILS to propogate dial plans between two clusters. We use quite a few CTI route points but so I generally import them into the cluster with all the appropriate settings and line association settings. I need to be able to enable and set the various ILS settings line Advertise Globally via ILS. This can be done on phones and their line associations but not on CTI route points as far as I can figure. The same goes true with the Bulk Administration, you can updates lines of the phones for these setting but not CTI route points. Any trick or even obvious thing I am missing? Setting these manually is extremely time consuming.
-
How can an external table handle data with line feed between delimiters?
I have defined an external table as below. My data is pipe delimited and comes from a DOS system.
I already remove any carriage returns before putting the file into the DATA_DIR for reading. But
I have found that some of my VARCHAR fields have embeded line feeds.
Is it possible to have a definition that would remove any line feed characters between the delimiters?
Below I also threw together a sample data set there ID #2 has that extra character. Yes, I could
write an awk script to pre-process all my data files. But I am hoping there is a way for Oracle
to also do this.
I understand the LDTRIM to remove any leading and trailing spaces in the delimited field. Is there a
REPLACE or TRANSLATE option. I did a bit of searching but I must be asking the wrong things.
Thanks for any help
Eric
CREATE TABLE table_ext
id NUMBER,
desc1 VARCHAR2(64 CHAR),
desc2 VARCHAR2(255 CHAR),
add_date DATE
ORGANIZATION EXTERNAL
TYPE ORACLE_LOADER
DEFAULT DIRECTORY data_dir
ACCESS PARAMETERS
RECORDS DELIMITED BY NEWLINE
CHARACTERSET WE8ISO8859P1
BADFILE log_dir:'table_ext.bad'
DISCARDFILE log_dir:'table_ext.dis'
LOGFILE log_dir:'table_ext.log'
FIELDS TERMINATED BY '|' LDRTRIM
MISSING FIELD VALUES ARE NULL
id INTEGER EXTERNAL(38),
desc1 CHAR(64),
desc2 CHAR(255),
add_date CHAR DATE_FORMAT DATE MASK "yyyy-mm-dd hh24:mi",
LOCATION( 'data.txt' )
PARALLEL
REJECT LIMIT UNLIMITED;
1|short desc|long desc|2001-01-01 00:00
2|short desc| long
desc |1999-03-03 23:23
3|short desc| long desc | 2011-02-02 02:02Thanks for looking. But that relates to the record delimiter which in my case is the pipe character '|'. In my various data sets this is consistent. I expect each record to be one per line. But between two delimiters some data has a line feed. So I'm looking for a method that will "cleanup" the field data as it gets imported.
I was hoping there was an option that would ignore any embedded line feeds (\n) characters. I.e., those not at the end of the line.
Eric -
Ruler with line numbering and cury text underline
Hi,
I've just started programming in java and as an exercise i was trying to make an simple text editor. Uptil now i've been able to make a textarea and a menu with items and such, but i have 2 things that i'm very curious about.
1. How can I make a vertical ruler with line numbers in it? (like in JBuilder/Eclipse editors) I'm planning on putting it next to the text so I can see at which line in the document i'm at.
2. How can I underline (mark) text with those curly lines you often see in applications? (i.e. Marking grammar and spelling errors in MS Word or marking programming errors in editors like JBuilder/Eclipse)
I hope that these things can be done in Java. If someone could help me out with this, i'd be very grateful.
KayhneTry this.
regards,
Stas
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.*;
import java.util.*;
class Test {
public Test() {
JFrame fr = new JFrame("TEST");
fr.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JEditorPane pane = new JEditorPane();
pane.setEditorKit(new NewEditorKit());
pane.setText("test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test ");
StyledDocument doc = (StyledDocument) pane.getDocument();
MutableAttributeSet attr = new SimpleAttributeSet();
StyleConstants.setLineSpacing(attr, 5f);
doc.setParagraphAttributes(0, doc.getLength(), attr, false);
JScrollPane sp = new JScrollPane(pane);
fr.getContentPane().add(sp);
fr.setSize(300, 300);
fr.show();
public static void main(String[] args) {
Test test = new Test();
class NewEditorKit extends StyledEditorKit {
public ViewFactory getViewFactory() {
return new NewViewFactory();
class NewViewFactory implements ViewFactory {
public View create(Element elem) {
String kind = elem.getName();
if (kind != null) {
if (kind.equals(AbstractDocument.ContentElementName)) {
return new JaggedLabelView(elem);
else if (kind.equals(AbstractDocument.ParagraphElementName)) {
return new ParagraphView(elem);
else if (kind.equals(AbstractDocument.SectionElementName)) {
return new BoxView(elem, View.Y_AXIS);
else if (kind.equals(StyleConstants.ComponentElementName)) {
return new ComponentView(elem);
else if (kind.equals(StyleConstants.IconElementName)) {
return new IconView(elem);
// default to text display
return new LabelView(elem);
class JaggedLabelView extends LabelView {
public JaggedLabelView(Element elem) {
super(elem);
public void paint(Graphics g, Shape allocation) {
super.paint(g, allocation);
paintJaggedLine(g, allocation);
public void paintJaggedLine(Graphics g, Shape a) {
int y = (int) (a.getBounds().getY() + a.getBounds().getHeight());
int x1 = (int) a.getBounds().getX();
int x2 = (int) (a.getBounds().getX() + a.getBounds().getWidth());
Color old = g.getColor();
g.setColor(Color.red);
for (int i = x1; i <= x2; i += 6) {
g.drawArc(i + 3, y - 3, 3, 3, 0, 180);
g.drawArc(i + 6, y - 3, 3, 3, 180, 181);
g.setColor(old);
} -
JFXtras 2 CalendarTextField with Picker in a TableView Cell
I would like to use the new jfxtras 2 CalendarTextField in a tableview cell, so each cell in a column has its own date picker popup.
Could someone provide sample code on how to do this.Hi Gregory,
try it with the following:
CREATE OBJECT lcl_bee_table.
lcl_bee_table->add( lcl_link ).
lcl_bee_table->add_html( html = `<br>` ).
lcl_bee_table->add( lcl_bsp_element ).
p_replacement_bee = lcl_bee_table.
instead of the 'concatenate' line
Regards,
Rainer -
I am developing a desktop application in Wpf using MVVM and Entity Frameworks. I have the following tables:
1. Party (PartyId, Name)
2. Case (CaseId, CaseNo)
3. Petitioner (CaseId, PartyId) ............. Link Table
I am completely new to .Net and to begin with I download Microsoft's sample application and
following the pattern I have been successful in creating several tabs. The problem started only when I wanted to implement many-to-many relationship. The sample application has not covered the scenario where there can be a any-to-many relationship. However
with the help of MSDN forum I came to know about a link table and managed to solve entity framework issues pertaining to many-to-many relationship. Here is the screenshot of my application to show you what I have achieved so far.
And now the problem I want the forum to address is how to bind a combo box so that it retrieves Party.Name for the corresponding PartyId in the Link Table and also I want to populate it with Party.Name so that
users can choose one from the dropdown list to add or edit the petitioner.Hello Barry,
Thanks a lot for responding to my query. As I am completely new to .Net and following the pattern of Microsoft's Employee Tracker sample it seems difficult to clearly understand the concept and implement it in a scenario which is different than what is in
the sample available at the link you supplied.
To get the idea of the thing here is my code behind of a view vBoxPetitioner:
<UserControl x:Class="CCIS.View.Case.vBoxPetitioner"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:v="clr-namespace:CCIS.View.Case"
xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
mc:Ignorable="d"
d:DesignWidth="300"
d:DesignHeight="200">
<UserControl.Resources>
<DataTemplate DataType="{x:Type vm:vmPetitioner}">
<v:vPetitioner Margin="0,2,0,0" />
</DataTemplate>
</UserControl.Resources>
<Grid>
<HeaderedContentControl>
<HeaderedContentControl.Header>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<TextBlock Margin="2">
<Hyperlink Command="{Binding Path=AddPetitionerCommand}">Add Petitioner</Hyperlink>
| <Hyperlink Command="{Binding Path=DeletePetitionerCommand}">Delete</Hyperlink>
</TextBlock>
</StackPanel>
</HeaderedContentControl.Header>
<ListBox BorderThickness="0" SelectedItem="{Binding Path=CurrentPetitioner, Mode=TwoWay}" ItemsSource="{Binding Path=tblParties}" />
</HeaderedContentControl>
</Grid>
</UserControl>
This part is working fine as it loads another view that is vPetioner perfectly in the manner I want it to be.
Here is the code of vmPetitioner, a ViewModel:
Imports Microsoft.VisualBasic
Imports System.Collections.ObjectModel
Imports System
Imports CCIS.Model.Party
Namespace CCIS.ViewModel.Case
''' <summary>
''' ViewModel of an individual Email
''' </summary>
Public Class vmPetitioner
Inherits vmParty
''' <summary>
''' The Email object backing this ViewModel
''' </summary>
Private petitioner As tblParty
''' <summary>
''' Initializes a new instance of the EmailViewModel class.
''' </summary>
''' <param name="detail">The underlying Email this ViewModel is to be based on</param>
Public Sub New(ByVal detail As tblParty)
If detail Is Nothing Then
Throw New ArgumentNullException("detail")
End If
Me.petitioner = detail
End Sub
''' <summary>
''' Gets the underlying Email this ViewModel is based on
''' </summary>
Public Overrides ReadOnly Property Model() As tblParty
Get
Return Me.petitioner
End Get
End Property
''' <summary>
''' Gets or sets the actual email address
''' </summary>
Public Property fldPartyId() As String
Get
Return Me.petitioner.fldPartyId
End Get
Set(ByVal value As String)
Me.petitioner.fldPartyId = value
Me.OnPropertyChanged("fldPartyId")
End Set
End Property
End Class
End Namespace
And below is the ViewMode vmParty which vmPetitioner Inherits:
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports CCIS.Model.Case
Imports CCIS.Model.Party
Imports CCIS.ViewModel.Helpers
Namespace CCIS.ViewModel.Case
''' <summary>
''' Common functionality for ViewModels of an individual ContactDetail
''' </summary>
Public MustInherit Class vmParty
Inherits ViewModelBase
''' <summary>
''' Gets the underlying ContactDetail this ViewModel is based on
''' </summary>
Public MustOverride ReadOnly Property Model() As tblParty
'''' <summary>
'''' Gets the underlying ContactDetail this ViewModel is based on
'''' </summary>
'Public MustOverride ReadOnly Property Model() As tblAdvocate
''' <summary>
''' Gets or sets the name of this department
''' </summary>
Public Property fldName() As String
Get
Return Me.Model.fldName
End Get
Set(ByVal value As String)
Me.Model.fldName = value
Me.OnPropertyChanged("fldName")
End Set
End Property
''' <summary>
''' Constructs a view model to represent the supplied ContactDetail
''' </summary>
''' <param name="detail">The detail to build a ViewModel for</param>
''' <returns>The constructed ViewModel, null if one can't be built</returns>
Public Shared Function BuildViewModel(ByVal detail As tblParty) As vmParty
If detail Is Nothing Then
Throw New ArgumentNullException("detail")
End If
Dim e As tblParty = TryCast(detail, tblParty)
If e IsNot Nothing Then
Return New vmPetitioner(e)
End If
Return Nothing
End Function
End Class
End Namespace
And final the code behind of the view vPetitioner:
<UserControl x:Class="CCIS.View.Case.vPetitioner"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:vm="clr-namespace:CCIS.ViewModel.Case"
mc:Ignorable="d"
Width="300">
<UserControl.Resources>
<ResourceDictionary Source=".\CompactFormStyles.xaml" />
</UserControl.Resources>
<Grid>
<Border Style="{StaticResource DetailBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0" Text="Petitioner:" />
<ComboBox Grid.Column="1" Width="240" SelectedValuePath="." SelectedItem="{Binding Path=tblParty}" ItemsSource="{Binding Path=PetitionerLookup}" DisplayMemberPath="fldName" />
</Grid>
</Border>
</Grid>
</UserControl>
The problem, presumably, seems to be is that the binding path "PetitionerLookup" of the ItemSource of the Combo box in the view vPetitioner exists in a different ViewModel vmCase which serves as an ObservableCollection for MainViewModel. Therefore,
what I need to Know is how to route the binding path if it exists in a different ViewModel?
Sir, I look forward to your early reply bringing a workable solution to the problem I face.
Warm Regards,
Arun -
Clientgen with JAXWS -- how to bind with JAXB?
I'm using WLS 10.0 "clientgen" to generate Java classes from my WSDL files. All goes well for the simpler WSDL files. Since I'm new to JAXB, I don't quite understand now how to bind the output files using JAXB. It seems this would have been done in the 'clientgen' process, but I don't see any parameters for this in the documentation/help output.
Here's the ant snippet:
<target name="wsdl2java" depends="init" >
<clientgen
type="JAXWS"
wsdl="${sitedata.wsdl.file}"
destDir="${generated.class}"
serviceName="SiteData"
packageName="${output.package}.sitedata"/>
</target>
How can this be done?The <binding> child element of the WLS 10.0 wsdlc Ant task, does in fact allow you to pass a .xjb file to the wsimport Ant task. wsdlc calls wsimport internally.
When you do this, you want to do all of your namespace-to-Java-package mapping in the .xjb file, and not specify the packageName attribute on the wsdlc Ant task. In fact, doing the latter will override the mapping specified in the .xjb file.
Here's a sample Ant target that shows what this looks like:
<target name="run-wsdlc" depends="clean">
<taskdef name="wsdlc" classname="weblogic.wsee.tools.anttasks.WsdlcTask" classpathref="compile.classpath" />
<mkdir dir="${src.dir}"/>
<property name="client.binding" value="custom-client.xjb"/>
<wsdlc
type="JAXWS"
srcWsdl="etc/${wsdl.file.name}.wsdl"
destJwsDir="WebContent/WEB-INF/lib"
destImplDir="${src.dir}"
explode="false"
verbose="${verbose}"
debug="${debug}"
failonerror="true"
>
<binding dir="etc" includes="${client.binding}"/>
<classpath>
<path refid="compile.classpath"/>
</classpath>
</wsdlc>
</target>
And here's the contents of the custom-client.xjb file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bindings
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
xmlns="http://java.sun.com/xml/ns/jaxws"
wsdlLocation="DataStagingService2.wsdl"
>
<bindings
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
node="wsdl:definitions"
>
<package name="services.datastaging">
<jxb:javadoc>
<![CDATA[<body>Package level documentation for generated package services.datastaging.</body>]]>
</jxb:javadoc>
</package>
<jxb:schemaBindings>
<jxb:package name="com.acmeworld.irad.services.datastaging"/>
</jxb:schemaBindings>
</bindings>
</bindings>
The targetNamespace attribute for the DataStagingService is http://www.acmeworld.com/irad/services/datastaging. The above .xjb file says to map this to the services.datastaging Java package, but the skeleton JAX-WS service endpoint implementation class that wsdlc generates, doesn't currently honor this. The JAXB generated classes will be as specified in the .xjb file, but you'll need to manually refactor the Java package name of the wsdlc generated JAX-WS skeleton class, to be services.datastaging.
I'll be publishing a series of articles on using JAXB and JAX-WS with WebLogic 10.0, so look out for them in the coming months :-)
HTH,
Mike Wooten -
HT4642 ios numbers:how to make cell height variable with auto line brake setting ?
ipad numbers; How to make cell height variable with auto line break setting?
That's strange. I responded earlier and the whole message got trashed. Hence the test post before retyping the entire thing again.
Thanks for the reply.
The video clip is a single screen capture video clip. This is what I've found by playing around with this more.
The original clip resolution is greater than 640x480. If I use QT Pro to convert the original clip to 640x480 and then use either Flip4Mac or PE7, then the resolution looks good.
Just trying to figure out if should keep all workflow on the MacOS side. There are several different version of Flip4Mac. $49 gives me 640x480, but if I ever want to make it slightly larger then I would need to go with the $99 or HD version.
I also tried to export to AVI with QT Pro and the import with Windows MovieMaker but it didn't work really good. I liked the simplicity (since PE7 hogs a lot of resources especially through VMWare). -
How to read vales from dropdownlistbox placed in tableView Cells
Hi,
Thanks for reply.. I got problem of reading values from Dropdownlist box placed in tableView Cells. Please correct me or give some sample to read vales from dropdownlistbox placed in tableView Cells.
TableView column defined as
<htmlb:tableViewColumn columnName = "OT_REASON_CODE"
title = "OT Reason"
type = "User"
width = "6"
edit = "true" >
<htmlb:dropdownListBox id = "rcode"
table = "<%= I_YH008 %>"
nameOfKeyColumn = "OT_REASON_CODE"
nameOfValueColumn = "OT_REASON_DESC" />
</htmlb:tableViewColumn>
OnInput processing I am trying to read dorpdown list values selected.
W_YH022-ENDUZ = TABLE_EVENT->GET_CELL_VALUE(
ROW_INDEX = SY-TABIX
COLUMN_INDEX = 3 ). " Get time
DATA: data TYPE REF TO CL_HTMLB_DROPDOWNLISTBOX.
DATA: value type string.
value = TABLE_EVENT->GET_CELL_ID( row_index = SY-TABIX
column_index = '7'). " get Cell ID
data ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'dropdownlistbox'
id = value
IF data IS NOT INITIAL.
W_YH022-OT_REASON_CODE = data->selection. " +Cell Values...I am not getting cell values here+
endif.Hi:
Do like this
Layout
<htmlb:dropdownListBox id="mydropdownlist" >
<htmlb:listBoxItem key = "bpno"
value = "Business Partner Details" />
<htmlb:listBoxItem key = "bpaddress"
value = "Business Partner Address" />
</htmlb:dropdownListBox>
OnInpurProcessing event - >
DATA: lcl_dropdown TYPE REF TO cl_htmlb_dropdownlistbox.
data : selection2 type string.
lcl_dropdown ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'dropdownListBox'
id = 'mydropdownlist' ).
IF NOT lcl_dropdown->selection IS INITIAL.
selection2 = lcl_dropdown->selection.
ENDIF.
Regards
Shshi
Maybe you are looking for
-
Java API - EventHandler threads not getting killed
Hello everybody, I didn't know whether to post this in the PI forum or in the MDM forum. I use the following scenario: We run an EJB session bean in the Java Proxy environment of PI 7.1. In this bean we create an MDM session, log on to a repository a
-
^ as I said above, I've made the account a long time ago and now have 30 dollars racked up but can't use it as Apples BS security blocks all purchases. Is there anyway to get around or fix it?
-
Maximum no of tabs in a tabset
Hello, Could anyone please tell me what is the maximum number of tabs that a tabset supports in apex. I'm using apex 4.0. And to refresh my memory ,is there a way to create a tab dynamically (using a scripting language or otherwise) Thanks and Regard
-
I've got a AS3 scrollpane with a content source of an empty clip called holder. I've got a search function that returns an xmllist and then attaches a movieclip for each node in the list and adds some details from the xml node, then each movieclip ge
-
Elements 13 will not update from the help menu
Hi, Just installed elements 13, updates does not work from the help menu, adobe application manager opens and the search for updates is continuous, just keeps searching. cheers Darryl