Tableaux Help
Salut les labviewman et les labviewgirl,
Toujours dans ma quête de base sur labview et pour l'evolution de mon projet, j'avais publier
la semaine passer une demande d'aide concernant les tableaux et il m'a été d'une grande aide.
Merci beaucoup. '
Aujourd'hui j'ai un autre problème je m'explique, Le tableaux que 'KALECK' ma proposer sur le
forum à une sortie au "format 2D" qui provient des élements de types clusters. Or mes données
du tableau 128*128 je doit les envoyers en format "tableau 1D unsigned word 16bit integer (0 to 65535)
Donc il y a incompatibilité.
NB: Les données du tableaux sont envoyées sur le SPI (pour Serial Peripheral Interface) sous format 16bit
par exemple si je veux que des 1 --> j'envoie 65535 et il m'ecrit 1111111111 sur un octet.
Ici moi je veux le faire sur 8 octet avec la possibilité d'avoir les 16 octet différents chacune des autres.
Donc soit je doit modifier mon entrer SPI ou soit convertir ou soit changer de format de tableau.
I need your help please.
Je Joint le lien pour la precedente discussion pour ceux qui voudront en savoir plus:
http://forums.ni.com/t5/Discussions-au-sujet-de-NI/tableaux-Urgent/m-p/2850140/highlight/false
Exemple de ce qu'on doit avoir dans le tableau :
octet1 octet2 ................ octet16
0 11111111 00000000 11111111 00000000 11111111 00000000 .... 11111111
127 PAREIL
Et la sortie doit se faire pour l'envoie vers la SPI ligne par ligne, et sous format Tableau 1D unsigned word 16bit
pour la compatibilité avec mon entrer SPI.
MERCI A VOUS
Je peux, mais le problème est que si je l'envoievous pourrez pas compiler parce que le programme communique avec une platine de test via le port RS232. J'ai fait des printscreen.
Affichage : c'est juste une affichage sur 16 bit donc j'aimerai la remplacer par celui expliquer ci dessus. Avec la possibilité de file to load, ou possibilité Auto.
SPI_send: c'est mon SPI interface
Exemple : Partie de mon projet en vert entrer de mes bit vers le SPI / en Orange mes entrer de selection des bits lorsque j'envoie sur 16bit sur affichage. En noir c'est ce que je veux realiser l'envoie 128*128
Exemple1 : c'est la sortie du SPI pour l'affichage 16 bit.
PS : Demain à mon arriver à l'école, je vous envoie quelques parties que vous pourrez tester.
Merci à vous
Pièces jointes :
Exemple1.png 164 KB
Affichage.png 174 KB
Exemple.png 155 KB
Similar Messages
-
écraser des Données Qui changent Au cour du Temps DANS tableau non de 1D!! svp aide Projet PFE
Duplicate
http://forums.ni.com/t5/Discussions-au-sujet-de-NI/svp-je-veux-cr%C3%A9er-un-tableau-de-1-dimension-... -
OBIEE on 64 bit Windows 7 ?? Why harder than Cognos, Qlikview and Tableau?
Hi --- Can you please elaborate this in detail..I am having issues while Installing OBIEE 11g version on 64 bit windows-7..
Can you please provide set by step instructions with screenshots(if possible). I tried all the websites available... but still having issues and it is consuming a lot of time...
I Downloaded...
Version for Java----> and the Path of the Folder is c:\java
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
---> Can you please keep us posted of the Environment Variables that we need to take care of on the Windows 7 machines. All the variables related to Temp Folders, Java and Others that were needed.
WebLogic Version Downloaded from OTN:::::_
wls1035_generic
Path of Temp Folder_
c:\Temp.
OBIEE Version Downloaded:::_
bi_windows_x86_111160_64_disk1_1of2 ----> Basically version 11.1.1.1.1.6.0 for Windows 64 bit.
Steps Followed::::
I installed the ofm_rcu_win_11.1.1.6.0_disk1_1of1 ---> Basically the 64 bit version.
Then
Installed the Loopback adapter:::_
---> In the hosts file i had only one line added (rest of the file is commented).
10.10.10.10 computername ---> where computername is the name of the computer.
Installed and Configured the OBIEE_
Installation fine with out errors and i did Software only Installation(the last option)...
While Cofiguring, it stuck up at the first step ... configuring Domain... Tried 10000000 times... and when checked the log file, showing the below message...
[2011-07-01T12:00:23.500+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J3^OytODwWWFLzrI8A1E3LWh00000F,0] Found listening port from node manager properties: null
[2011-07-01T12:00:23.500+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J3^OytODwWWFLzrI8A1E3LWh00000F,0] Unable to reuse node manager - port is null
[2011-07-01T12:00:23.500+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J3^OytODwWWFLzrI8A1E3LWh00000F,0] No reusable node manager found.
[2011-07-01T12:00:23.500+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J3^OytODwWWFLzrI8A1E3LWh00000F,0] Completed initial node manager configuration.
[2011-07-01T12:00:23.500+05:30] [as] [NOTIFICATION] [] [oracle.as.install.bi] [tid: 24] [ecid: 0000J3^OytODwWWFLzrI8A1E3LWh00000F,0] Assigning Port: 9556 to: NODE_MANAGER_PORT
I had previously installed Cognos, Tableau and QlikView... by far this is the one that took a very long time, even to download the files , installing and configuring...
Please let me know your thoughts.. Thanks a lot for your time.. please don't refer your individual sites or blogs to follow the installation.. as i already did followed most of them i found after googling... and some of them dont even point to the exact versions they were downloading....Hi Guys -- Am finally able to install OBIEE11g...
Provided in the link were the pre-requisites that you need to make 100% sure for windows 7 64 bit install.
http://oraclebi.blog.com/obiee-11-1-1-6-installation/
Coming to the Issues I made...
For Enterprise Edition Installation (Option 2 in the graphical user interface installation screen)*
1.) I had "jdk1.7.0_10" installed in "C:\Java" folder.
When trying to install OBIEE 11.1 it install weblogic version "10.3.5" as this is not compatible with "jdk1.7.0_10" had Issues.
For Software Only Install*
1.) I had to download and install "wls1036_generic.jar" from OTN.
You need to make sure that you install it by following the below steps but not just by double clicking it... because it is doing a kind of 32 bit installation when double clicking (yaa that's strange) even though you were expecting an 64 bit.
a.) open command prompt
b.) go to the folder where "java -jar wls1036_generic.jar" was installed
c.) Then run "java -jar wls1036_generic.jar"
Other Issues*
1.) Turn off Windows fire wall during Installation.
2.) Uninstall Antivirus
Not sure about the credibility of the above two points, came across some websites am tired of trying all the options and at one point.. I turned them off and never turned them back on...
Source*:::: Various Websites based on the different errors and mix matching the Info, trying different options to solve an error/Issue.
Hope this is helpful to someone..... I Still say the Installation is not as straight forward as other BI Tools in the market. -
Urgent need of help with a chat application!
Hi,
I'm writing a Chat Application and I want to add Emoticon, I did so by adding buttons but I don't know how to send the gif to my JTextField and to my JTextArea.
Here is part of my code can someone can help me PLEASE!!!
JPanel chatPane = new JPanel(new BorderLayout());
JPanel emoticon = new JPanel(new GridLayout(2, 5));
b1 = new JButton (sourrire);
b1.setToolTipText("Un Sourire");
// b1.addActionListener();
emoticon.add(b1);
b2 = new JButton (gsourrire);
b2.setToolTipText("Un Grand Sourire");
// b2.addActionListener();
emoticon.add(b2);
b3 = new JButton (triste);
b3.setToolTipText("Triste");
// b3.addActionListener();
emoticon.add(b3);
b4 = new JButton (grimace);
b4.setToolTipText("Grimace");
// b4.addActionListener();
emoticon.add(b4);
b5 = new JButton (pleure);
b5.setToolTipText("Pleure");
// b5.addActionListener();
emoticon.add(b5);
b6 = new JButton (bec);
b6.setToolTipText("Un bec");
// b6.addActionListener();
emoticon.add(b6);
b7 = new JButton (coeur);
b7.setToolTipText("Un coeur pour toi");
// b7.addActionListener();
emoticon.add(b7);
b8 = new JButton (fache);
b8.setToolTipText("Fache");
// b8.addActionListener();
emoticon.add(b8);
b9 = new JButton (lunettes);
b9.setToolTipText("Je suis Cool");
// b9.addActionListener();
emoticon.add(b9);
b10 = new JButton (clinoeil);
b10.setToolTipText("Clin d'Oeil");
//b10.addActionListener(new ActionAdapter2());
emoticon.add(b10);
Thanks a lot!
IsabelleHi anoopjain13
what I did is that each button is an IconImage and I was trying to send the Icon to the textfield.
here is the complete code of my chat, you'll understand better what I tried to do.
//Naziha Berrassil et Isabelle Gosselin
//Travail Pratique #1
//remis � Said Senhaji
//Developpement d'une application CHAT
//package chatv2.a
import java.lang.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.net.*;
public class TCPChat2a implements Runnable {
// Constantes de l'etat de la connection
public final static int NULL = 0;
public final static int DISCONNECTED = 1;
public final static int DISCONNECTING = 2;
public final static int BEGIN_CONNECT = 3;
public final static int CONNECTED = 4;
// Declaration d'un tableau de chaines
public final static String statusMessages[] = {
" Erreur! Aucune connexion possible!", " Deconnexion",
" Deconnexion en cours...", " Connexion en cours...", " Connexion"
//Instentiation de la classe
public final static TCPChat2a tcpObj = new TCPChat2a();
// Indique la fin d'une session
public final static String END_CHAT_SESSION =
new Character((char)0).toString();
// Informations sur l'etat de la connexion
public static String hostIP = "localhost";
public static String user = "";
public static String s1;
public static int port = 1234;
public static int connectionStatus = DISCONNECTED;
public static boolean isHost = true;
public static String statusString = statusMessages[connectionStatus];
public static StringBuffer toAppend = new StringBuffer("");
public static StringBuffer toSend = new StringBuffer("");
// Declaration des composantes GUI et initialisation
public final static ImageIcon sourrire = new ImageIcon ("icons/sourrire.gif");
public static JButton b1;
public final static ImageIcon gsourrire = new ImageIcon ("icons/grand_sourrire.gif");
public static JButton b2;
public final static ImageIcon triste = new ImageIcon ("icons/triste.gif");
public static JButton b3;
public final static ImageIcon pleure = new ImageIcon ("icons/pleure.gif");
public static JButton b4;
public final static ImageIcon coeur = new ImageIcon ("icons/coeur.gif");
public static JButton b5;
public final static ImageIcon grimace = new ImageIcon ("icons/grimace.gif");
public static JButton b6;
public final static ImageIcon lunettes = new ImageIcon ("icons/lunettes.gif");
public static JButton b7;
public final static ImageIcon fache = new ImageIcon ("icons/fache.gif");
public static JButton b8;
public final static ImageIcon bec = new ImageIcon ("icons/bec.gif");
public static JButton b9;
public final static ImageIcon clinoeil = new ImageIcon ("icons/clinoeil.gif");
public static JButton b10;
public static JFrame mainFrame = null;
public static JTextArea chatText = null;
public static JTextField chatLine = null;
public static JPanel statusBar = null;
public static JLabel statusField = null;
public static JTextField statusColor = null;
public static JTextField ipField = null;
public static JTextField username = null;
public static JTextField portField = null;
public static JRadioButton hostOption = null;
public static JRadioButton guestOption = null;
public static JButton connectButton = null;
public static JButton disconnectButton = null;
// Declaration des composantes TCP
public static ServerSocket hostServer = null;
public static Socket socket = null;
public static BufferedReader in = null;
public static PrintWriter out = null;
//Methode qui retourne le premier pannel(optionsPane),ce dernier
//se compose de 5 panneaux
private static JPanel initOptionsPane() {
//pannel pane qui sera ajout� au pannel optionsPane
JPanel pane = null;
//initiation de la classe ActionAdapteur qui implemente ActionListner
ActionAdapter buttonListener = null;
// Creation du pannel optionsPane
JPanel optionsPane = new JPanel(new GridLayout(5, 1));
// 1er pannel pane pour label et textfield de l'adresse IP
pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
pane.add(new JLabel("Serveur IP:"));
ipField = new JTextField(10);
ipField.setBackground(new Color(0.98f, 0.97f, 0.85f));
ipField.setText(hostIP);
ipField.setEnabled(false);
//evenement generer par Component avec la methode addFocusListener
//en cas d'obtention ou perte du focus par un composant
ipField.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
ipField.selectAll();
//Editable seulement en mode deconnexion
if (connectionStatus != DISCONNECTED) {
changeStatusNTS(NULL, true);
else {
hostIP = ipField.getText();
pane.add(ipField);
optionsPane.add(pane);
// 2eme pannel pane pour label et textfield du port
pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
pane.add(new JLabel("Port:"));
portField = new JTextField(10);
portField.setBackground(new Color(0.98f, 0.97f, 0.85f));
portField.setEditable(true);
portField.setText((new Integer(port)).toString());
portField.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
//Textfield du port modifiable si on est en mode deconnexion
if (connectionStatus != DISCONNECTED) {
changeStatusNTS(NULL, true);
else {
int temp;
try {
temp = Integer.parseInt(portField.getText());
port = temp;
catch (NumberFormatException nfe) {
portField.setText((new Integer(port)).toString());
mainFrame.repaint();
pane.add(portField);
optionsPane.add(pane);
// 3eme pannel pour label et textfield du nom d'utilisateur
pane = new JPanel(new FlowLayout(FlowLayout.RIGHT));
pane.add(new JLabel("Nom: "));
username = new JTextField(10);
username.setBackground(new Color(0.98f, 0.97f, 0.85f));
username.setText(user);
username.setEnabled(true);
username.addFocusListener(new FocusAdapter() {
public void focusLost(FocusEvent e) {
// username.selectAll();
// Should be editable only when disconnected
if (connectionStatus != DISCONNECTED) {
changeStatusNTS(NULL, true);
else {
user = username.getText();
pane.add(username);
optionsPane.add(pane);
// Host/guest option
buttonListener = new ActionAdapter() {
public void actionPerformed(ActionEvent e) {
if (connectionStatus != DISCONNECTED) {
changeStatusNTS(NULL, true);
else {
isHost = e.getActionCommand().equals("host");
// Cannot supply host IP if host option is chosen
if (isHost) {
ipField.setEnabled(false);
ipField.setText("localhost");
hostIP = "localhost";
else {
ipField.setEnabled(true);
//creation de boutton groupe radio(serveur et invite)
ButtonGroup bg = new ButtonGroup();
hostOption = new JRadioButton("Serveur", true);
hostOption.setMnemonic(KeyEvent.VK_S);
hostOption.setActionCommand("host");
hostOption.addActionListener(buttonListener);
guestOption = new JRadioButton("Invite", false);
guestOption.setMnemonic(KeyEvent.VK_I);
guestOption.setActionCommand("invite");
guestOption.addActionListener(buttonListener);
bg.add(hostOption);
bg.add(guestOption);
// 4eme pannel pane pour les 2 bouttons radio
pane = new JPanel(new GridLayout(1, 2));
pane.add(hostOption);
pane.add(guestOption);
optionsPane.add(pane);
// 5eme pannel buttonPane pour les bouttons de connexion et deconnexion
JPanel buttonPane = new JPanel(new GridLayout(1, 2));
buttonListener = new ActionAdapter() {
public void actionPerformed(ActionEvent e) {
// requete pou debut d'une connexion
if (e.getActionCommand().equals("connect")) {
changeStatusNTS(BEGIN_CONNECT, true);
// Deconnexion
else {
changeStatusNTS(DISCONNECTING, true);
//creation des bouttons dans le pannel et l'ajout au premier pannel
//(optionsPane)
connectButton = new JButton("Connexion");
connectButton.setMnemonic(KeyEvent.VK_C);
connectButton.setActionCommand("connect");
connectButton.addActionListener(buttonListener);
connectButton.setEnabled(true);
disconnectButton = new JButton("Deconnexion");
disconnectButton.setMnemonic(KeyEvent.VK_D);
disconnectButton.setActionCommand("disconnect");
disconnectButton.addActionListener(buttonListener);
disconnectButton.setEnabled(false);
buttonPane.add(connectButton);
buttonPane.add(disconnectButton);
optionsPane.add(buttonPane);
return optionsPane;
// Initialisation de toutes les composantes GUI et affichage du frame
private static void initGUI() {
// Configuration du status bar
// cr�ation d'un autre pannel statusBar qui se compose d'un petit carr�
// color� et un label indiquant le mode de connexion
statusField = new JLabel(); //Label indiquant l'�tat de la connexion
statusField.setText(statusMessages[DISCONNECTED]);
statusColor = new JTextField(1); //carr� color� indiquant l'�tat de la connection grace a des couleurs
statusColor.setBackground(Color.red);
statusColor.setEditable(false);
statusBar = new JPanel(new BorderLayout());
statusBar.add(statusColor, BorderLayout.WEST);
statusBar.add(statusField, BorderLayout.CENTER);
// Configuration du pannel optionsPane en appelant la methode d'initiation
// de ce dernier
JPanel optionsPane = initOptionsPane();
// Creation et configuration du pannel chatPane qui contient un
// textarea au centre avec une barre defilante verticale et un textfield
// au sud pour faire rentrer les messages
JPanel chatPane = new JPanel(new BorderLayout());
JPanel emoticon = new JPanel(new GridLayout(2, 5));
b1 = new JButton (sourrire);
b1.setToolTipText("Un Sourire");
// b1.addActionListener();
emoticon.add(b1);
b2 = new JButton (gsourrire);
b2.setToolTipText("Un Grand Sourire");
// b2.addActionListener();
emoticon.add(b2);
b3 = new JButton (triste);
b3.setToolTipText("Triste");
// b3.addActionListener();
emoticon.add(b3);
b4 = new JButton (grimace);
b4.setToolTipText("Grimace");
// b4.addActionListener();
emoticon.add(b4);
b5 = new JButton (pleure);
b5.setToolTipText("Pleure");
// b5.addActionListener();
emoticon.add(b5);
b6 = new JButton (bec);
b6.setToolTipText("Un bec");
// b6.addActionListener();
emoticon.add(b6);
b7 = new JButton (coeur);
b7.setToolTipText("Un coeur pour toi");
// b7.addActionListener();
emoticon.add(b7);
b8 = new JButton (fache);
b8.setToolTipText("Fache");
// b8.addActionListener();
emoticon.add(b8);
b9 = new JButton (lunettes);
b9.setToolTipText("Je suis Cool");
// b9.addActionListener();
emoticon.add(b9);
b10 = new JButton (clinoeil);
b10.setToolTipText("Clin d'Oeil");
//b10.addActionListener(new ActionAdapter2());
emoticon.add(b10);
emoticon.addActionListener(new ActionAdapter() {
public void actionPerformed(ActionEvent e) {
String image = chatLine.setImage().toString();
appendToChatBox(image);
chatLine.selectAll();
sendString(image)
chatLine.setText(" ");
emoticon.setVisible(true);
//b1 = setVisible(true);
chatText = new JTextArea(10, 100);
chatText.setBackground(new Color(0.98f, 0.97f, 0.85f));
chatText.setLineWrap(true);
chatText.setEditable(false);
chatText.setForeground(Color.blue);
JScrollPane chatTextPane = new JScrollPane(chatText,
JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
chatLine = new JTextField(10);
chatLine.setBackground(new Color(0.98f, 0.97f, 0.85f));
chatLine.setForeground(Color.blue);
chatLine.setEnabled(false);
chatLine.addActionListener(new ActionAdapter() {
public void actionPerformed(ActionEvent e) {
String s = chatLine.getText();
if (!s.equals("")) {
appendToChatBox(user=username.getText()+" dit : \n" + s + "\n");
chatLine.selectAll();
// Envoi de la chaine entr�e
sendString(s);
chatLine.setText("");
chatPane.add(chatLine, BorderLayout.SOUTH);
chatPane.add(chatTextPane, BorderLayout.NORTH);
chatPane.setPreferredSize(new Dimension(300, 300));
chatPane.add(emoticon, BorderLayout.CENTER);
// Ajout des pannels dans le pannel principal (mainPane)
JPanel mainPane = new JPanel(new BorderLayout());
mainPane.add(statusBar, BorderLayout.SOUTH);
mainPane.add(optionsPane, BorderLayout.WEST);
mainPane.add(chatPane, BorderLayout.CENTER);
// Configuration du frame (mainFrame)
mainFrame = new JFrame("Chat");
mainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// la m�thode setDefaultCloseOperation(int)provient de la classe javax.swing.JDialog
// Elle specifi l'op�ration qui sera ex�cut�e par d�fault lorsque
// l'utilisateur initialisera une fermeture de session
mainFrame.setContentPane(mainPane);
mainFrame.setSize(mainFrame.getPreferredSize());
// la m�thode getPreferredSize() provient de la classe java.awt
// Retourne la grosseur "pr�f�r�e" du container.
mainFrame.setLocation(200, 200);
// la m�thode setLocation(double, double) provient de la classe java.awt.Point
// elle permet de specifiez un emplacement d'un point a des coordonn�es de type Float
mainFrame.pack();
// la m�thode pack() provient de la class AWT.Window, elle permet a la fenetre
// d'�tre ajuster a la grosseur et a la mise en page des sous-composantes de celle-ci
mainFrame.setVisible(true);
// Le thread qui permet le changement des composantes GUI pendant le
// changement de l'etat
private static void changeStatusTS(int newConnectStatus, boolean noError) {
// Changer l'etat si valide
if (newConnectStatus != NULL) {
connectionStatus = newConnectStatus;
// S'il n'y a aucunes erreur, afficher le bon message de l'etat
if (noError) {
statusString = statusMessages[connectionStatus];
// Autrement, afficher le message d'erreur
else {
statusString = statusMessages[NULL];
System.out.println("Echec lors de la connexion");
// Appel a la routine de run()(Runnable interface) sur la gestion des erreurs
// et la mise a jours des composantes GUI grace au thread
SwingUtilities.invokeLater(tcpObj);
// Le changement des composantes GUI sans aucun pendant le
// changement de l'etat
private static void changeStatusNTS(int newConnectStatus, boolean noError) {
// Changer l'etat si valide
if (newConnectStatus != NULL) {
connectionStatus = newConnectStatus;
// S'il n'y a aucunes erreur, afficher le bon message de l'etat
if (noError) {
statusString = statusMessages[connectionStatus];
// Autrement, afficher le message d'erreur
else {
statusString = statusMessages[NULL];
// Appel a la routine de run()(Runnable interface) sur la gestion des erreurs
// en utilisant le thread
tcpObj.run();
// L'ajout au chat box avec l'utilisation du Thread
private static void appendToChatBox(String s) {
synchronized (toAppend) {
toAppend.append(s);
System.out.println(s);
// Ajouter le text au "send-buffer"
private static void sendString(String s) {
synchronized (toSend) {
toSend.append(user=username.getText()+ " dit : \n" + s + "\n");
// Nettoyage pour le debranchement
private static void cleanUp() {
try {
if (hostServer != null) {
hostServer.close();
hostServer = null;
catch (IOException e) { hostServer = null; }
try {
if (socket != null) {
socket.close();
socket = null;
catch (IOException e) { socket = null; }
try {
if (in != null) {
in.close();
in = null;
catch (IOException e) { in = null; }
if (out != null) {
out.close();
out = null;
// Verification de l'etat courrant et ajustement de "enable/disable"
// en fonction de l'etat
public void run() {
switch (connectionStatus) {
case DISCONNECTED:
connectButton.setEnabled(true);
disconnectButton.setEnabled(false);
ipField.setEnabled(true);
portField.setEnabled(true);
username.setEnabled(true);
hostOption.setEnabled(true);
guestOption.setEnabled(true);
chatLine.setText("");
chatLine.setEnabled(false);
statusColor.setBackground(Color.red);
break;
case DISCONNECTING:
connectButton.setEnabled(false);
disconnectButton.setEnabled(false);
ipField.setEnabled(false);
portField.setEnabled(false);
hostOption.setEnabled(false);
guestOption.setEnabled(false);
chatLine.setEnabled(false);
statusColor.setBackground(Color.orange);
break;
case CONNECTED:
connectButton.setEnabled(false);
disconnectButton.setEnabled(true);
ipField.setEnabled(false);
portField.setEnabled(false);
hostOption.setEnabled(false);
username.setEnabled(false);
guestOption.setEnabled(false);
chatLine.setEnabled(true);
statusColor.setBackground(Color.green);
break;
case BEGIN_CONNECT:
connectButton.setEnabled(false);
disconnectButton.setEnabled(false);
ipField.setEnabled(false);
portField.setEnabled(false);
hostOption.setEnabled(false);
username.setEnabled(false);
guestOption.setEnabled(false);
chatLine.setEnabled(true);
chatLine.grabFocus();
statusColor.setBackground(Color.orange);
break;
// S'assurer que l'etat des champs bouton/texte sont consistent
// avec l'etat interne
ipField.setText(hostIP);
portField.setText((new Integer(port)).toString());
hostOption.setSelected(isHost);
guestOption.setSelected(!isHost);
statusField.setText(statusString);
chatText.append(toAppend.toString());
toAppend.setLength(0);
mainFrame.repaint();
// Procedure principale
public static void main(String args[]) {
String s;
initGUI();
while (true) {
try {
Thread.sleep(10);
// Verification a toute les 10 ms
catch (InterruptedException e) {}
switch (connectionStatus) {
case BEGIN_CONNECT:
try {
// Essai de configuration du serveur si "host"
if(user != ""){
if (isHost) {
hostServer = new ServerSocket(port);
socket = hostServer.accept();
// Si invit�, essai de branchement au serveur
else {
socket = new Socket(hostIP, port);
in = new BufferedReader(new
InputStreamReader(socket.getInputStream()));
out = new PrintWriter(socket.getOutputStream(), true);
changeStatusTS(CONNECTED, true);
System.out.println("Ouverture de la session: \n" + socket);
else{
JOptionPane.showMessageDialog(null, "Erreur, vous devez entrer un nom d'utilisateur", "Erreur", JOptionPane.PLAIN_MESSAGE);
changeStatusTS(DISCONNECTED, false);
// Si erreur, nettoyage et envoi du message d'erreur
catch (IOException e) {
cleanUp();
changeStatusTS(DISCONNECTED, false);
break;
case CONNECTED:
try {
// Envoi de data
if (toSend.length() != 0) {
out.print(toSend);
out.flush();
toSend.setLength(0);
changeStatusTS(NULL, true);
// Reception de data
if (in.ready()) {
s = in.readLine();
if ((s != null) && (s.length() != 0)) {
// Verification de la fin de la transmission
if (s.equals(END_CHAT_SESSION)) {
changeStatusTS(DISCONNECTING, true);
// Autrement, reception du texte
else {
appendToChatBox( s + "\n");
changeStatusTS(NULL, true);
catch (IOException e) {
cleanUp();
changeStatusTS(DISCONNECTED, false);
break;
case DISCONNECTING:
// Dis aux autres fenetre de chat de se d�brancher aussi
out.print(END_CHAT_SESSION);
out.flush();
System.out.println("Fermeture de la session");
// Nettoyage (ferme les streams/sockets)
cleanUp();
changeStatusTS(DISCONNECTED, true);
break;
default: break; // ne fait rien
// Certaines interfaces �couteurs sont accompagn�es d'adaptateurs qui
//implementent toutes les methodes de l'interface et evitent de les lister.
class ActionAdapter implements ActionListener {
public void actionPerformed(ActionEvent e) {}
//////////////////////////////////////////////////////////////////// -
Integrating Tableau server report with SharePoint
Hi
The requirement is to have Tebleau server report to be integrated with SharePoint. We can integrate the report using a page viewer web part but in the web part it asks for log in credentials, also Tableau server is installed on a different server with local
authentication mechanism. What I want is the report be available to all the domain users on SharePoint available on a different server. I see an option - to use Secure store service but then it requires the authentication mechanism to be changed in Tableau
server by uninstalling it first and then install it again (which we consider is not feasible) so that using the secure store credentials the report automatically logs in and shows the report to all the authenticated SharePoint users.
How can we implement the auto log in feature for Tableau report in the page viewer web part so that the report is available already (Secure Store) and the SharePoint logged in user does not have to go and log in.
Any pointers or suggestions to accomplish this using any other method also would be highly appreciated.
ThanksDid you check this
http://www.jenunderwood.com/2014/03/03/how-to-integrate-tableau-with-microsoft-reporting-services/
http://maxderungs.wordpress.com/2013/01/29/workaround-display-tableau-report-in-sharepoint/
Let us know if this helps, thanks
Regards,
Pratik Vyas | SharePoint Consultant |
http://sharepointpratik.blogspot.com
Posting is provided AS IS with no warranties, and confers no rights
Please remember to click Mark As Answer if a post solves your problem or
Vote As Helpful if it was useful. -
ENGLISH FOLLOWS
Avec le logiciel Pages, il est impossible de fractionner une ligne de tableau sur plusieurs pages, contrairement à Word. C'est un problème majeur. En particulier quand on veut comparer deux textes côte à côte. Si le texte est long, on ne voit que la première page. Cela devrait être corrigé. En attendant, y a-t-il une solution pour voir le texte complet?
With Pages, it is impossible to divide the content of one row in a table on more than one page, as we can do with Word. This is a major problem. Especially when we wish to compare two texts side by side. If the text is long, we can only see the content of the first page. This should be fixed. Is there a solution?Thanks Picas for this direct and simple answer, even if this disappointed me
Never mind, I have to use another app or find a "way-to", hoping this will be upgrade in a future version.
To answer to your question :
1st link - The french app's online help - Related Page : "Create sections", you'll find this : "Un document peut contenir une ou plusieurs sections. Vous pouvez ajouter une section pour utiliser un format différent pour une partie du document, par exemple. Chaque section possède sa propre pagination, ses en-têtes, bas de page et image d’arrière-plan."
I translate for you or perhaps are you french speaking ? : "A document can contain one or more sections. You can add a section to use a different format for a portion of the document, for example. Each section has its own pagination, its headers, footers, and image background."
Perhaps I misunderstood the 2 sentences
2nd link and others : using this google search "Mac Pages 5.2 Document section layouts"
Reading the french online help and flying over the results of my Google searches, it seems to appear to me that it was possible, by simply choose the section in the preview and change the parameters of the chosen section.
One more time, thanks for your time and you answer. -
Help for Modifying the Code for display a 7 column table
Hi,
Is someone can help me to modify that code I have a 7 colomn table and as many row as their is results?
Right now, All my result are in a 1 colomn table and and 1 row,
thanks,
Roseline
DECLARE
vtemp varchar2(4000) DEFAULT ' ';
BEGIN
htp.p('<HTML>');
htp.p('<HEAD>');
htp.p('<TITLE>DISQUES C</TITLE>');
htp.p('</HEAD>');
htp.p('<BODY>');
FOR idx IN
SELECT DVD_ID, NomFichier,
row_number() over(partition BY DVD_ID ORDER BY NomFichier ASC) AS rna,
row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
FROM elements
WHERE PROJET_ID = 1
ORDER BY DVD_ID ASC, rna ASC
loop
IF idx.rna = 1
then
htp.p('<TABLE>');
htp.p('<TR>');
htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
htp.p('</TR>');
htp.p('<TR>');
end IF;
vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
then
htp.p(vtemp);
vtemp := ' ';
end IF;
IF idx.rnd = 1
then
htp.p('</TR>');
htp.p('</TABLE>');
end IF;
end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;Sorry:
I have a table contening PROJECT ID, DVD ID and FILES NAME (NomFIchier) that are on the DVD.
In my page result, I want the list of the DVD from a project with the following formatting ( 7 columns table), using PL/SQL.
1 DVD can contain from 5000 files
ex:
Ex:
select DVDNAME, NomFichier fromTABLE where project = 2
*85*
2635080 2636608 2637084 2637091 2637092 2637093 2637147
2637152 2637153 2637154 2637155 2637156 2637157 2637164
*86*
2639497 2639498 2639502 2639504 2639505 2639506 2639507
2639508 2639509 2639511 2639512 2639519 2639521 2639522
******* ******* ******* ******** ********* ******** ******** With this code following code,
DECLARE
vtemp varchar2(4000) DEFAULT ' ';
BEGIN
htp.p('<HTML>');
htp.p('<HEAD>');
htp.p('<TITLE>DISQUES C</TITLE>');
htp.p('</HEAD>');
htp.p('<BODY>');
FOR idx IN
SELECT DVD_ID, NomFichier,
row_number() over(partition BY DVD_ID ORDER BY NomFichier ASC) AS rna,
row_number() over(partition BY DVD_ID ORDER BY NomFichier DESC) AS rnd
FROM elements
WHERE PROJET_ID = 1
ORDER BY DVD_ID ASC, rna ASC
loop
IF idx.rna = 1
then
htp.p('<TABLE>');
htp.p('<TR>');
htp.p('<TD>' || idx.DVD_ID ||' </TD> ');
htp.p('</TR>');
htp.p('<TR>');
end IF;
vtemp := vtemp || '<TD>' || idx.NomFichier || ' </TD>';
IF mod(idx.rna, 7) = 0 OR idx.rnd = 1
then
htp.p(vtemp);
vtemp := ' ';
end IF;
IF idx.rnd = 1
then
htp.p('</TR>');
htp.p('</TABLE>');
end IF;
end loop;
htp.p('</BODY>');
htp.p('</HTML>');
end;I have the following result
85
2635080 2636608 2637084 2637091 2637092 2637093 2637147 2637152 2637153 2637154 2637155 2637156 2637157 2637164 2637169 2637170 2637172 2637173 2637202 2637203 2637213 2637214 2637215 2637216 2637217 2637218 2637219 2637220 2637234 2637235 2637236 2637237 2637239 2637240 2637241 2637242 2637244 2637246 2637247 2637249 2637250 2637251 2637252 2637253 2637257 2637263 2637266 2637269 2637270 2637274 2637276 2637279 2637284 2637290 2637291 2637292 2637293 2637294 2637295 2637296 2637301 2637303 2637304 2637305 2637306 2637311 2637320 2637322 2637324 2637331 2637333 2637336 2637352 2637353 2637354 2637358 2637359 2637360 2637361 2637362 2637363 2637364 2637371 2637378 2637383 2637384 2637385 2637386 2637387 2637388 2637391 2637392 2637395 2637400 2637405 2637412 2637418 2637419 2637423 2637443 2637446 2637453 2637461 2637470 2637483 2637484 2637485 2637494 2637502 2637506 2637507 2637519 2637532 2637536 2637537 2637539 2637540 2637541 2637544 2637553 2637554 2637555 2637557 2637575 2637578 2637579 2637580 2637581 2637582 2637583 2637587 2637588 2637589 2637590 2637591 2637592 2637593 2637594 2637595 2637597 2637604 2637605 2637606 2637611 2637619 2637628 2637629 2637630 2637631 2637632 2637633 2637637 2637645 2637647 2637648 2637650 2637651 2637657 2637658 2637659 2637661 2637662 2637668 2637674 2637676 2637677 2637679 2637680 2637681 2637684 2637685 2637686 2637688 2637689 2637691 2637692 2637694 2637696 2637700 2637701 2637702 2637703 2637704 2637705 2637706 2637707 2637722 2637725 2637741 2637749 2637751 2637752 2637753 2637762 2637764 2637771 2637777 2637779 2637781 2637783 2637785 2637789 2637793 2637809 2637810 2637811 2637812 2637823 2637827 2637836 2637837 2637838 2637845 2637850 2637854 2637855 2637857 2637858 2637859 2637860 2637861 2637866 2637867 2637870 2637874 2637875 2637876 2637877 2637878 2637879 2637880 2637881 2637884 2637885 2637886 2637887 2637891 2637892 2637893 2637894 2637895 2637897 2637898 2637899 2637900 2637901 2637902 2637904 2637906 2637907 2637908 2637909 2637913 2637914 2637916 2637917 2637918 2637919 2637920 2637921 2637923 2637926 2637928 2637929 2637930 2637933 2637935 2637936 2637937 2637939 2637940 2637941 2637942 2637943 2637949 2637950 2637951 2637952 2637954 2637955 2637958 2637965 2637967 2637969 2637970 2637971 2637973 2637978 2637985 2637986 2637987 2637990 2637991 2637992 2637993 2638001 2638002 2638005 2638007 2638009 2638016 2638018 2638020 2638023 2638027 2638029 2638033 2638034 2638035 2638036 2638039 2638043 2638044 2638045 2638046 2638048 2638049 2638052 2638053 2638055 2638057 2638058 2638063 2638064 2638065 2638067 2638068 2638069 2638072 2638076 2638080 2638081 2638082 2638083 2638084 2638087 2638089 2638096 2638097 2638098 2638099 2638100 2638101 2638102 2638103 2638105 2638106 2638108 2638110 2638113 2638117 2638118 2638120 2638121 2638122 2638124 2638126 2638128 2638134 2638135 2638136 2638137 2638139 2638140 2638141 2638143 2638146 2638147 2638148 2638149 2638150 2638151 2638152 2638153 2638154 2638155 2638157 2638159 2638167 2638168 2638172 2638173 2638174 2638175 2638181 2638184 2638185 2638187 2638192 2638193 2638198 2638199 2638200 2638202 2638203 2638205 2638207 2638208 2638209 2638210 2638211 2638212 2638214 2638218 2638219 2638220 2638221 2638223 2638230 2638232 2638236 2638243 2638245 2638246 2638247 2638248 2638258 2638264 2638265 2638268 2638279 2638280 2638281 2638283 2638284 2638287 2638305 2638309 2638310 2638311 2638312 2638316 2638317 2638318 2638319 2638321 2638324 2638330 2638331 2638332 2638333 2638334 2638335 2638336 2638337 2638338 2638339 2638340 2638341 2638342 2638344 2638347 2638349 2638352 2638353 2638364 2638372 2638374 2638376 2638379 2638390 2638391 2638392 2638393 2638394 2638395 2638402 2638405 2638407 2638414 2638421 2638422 2638429 2638430 2638432 2638434 2638438 2638442 2638444 2638457 2638467 2638469 2638474 2638478 2638479 2638480 2638484 2638486 2638488 2638489 2638491 2638506 2638507 2638508 2638510 2638511 2638512 2638513 2638514 2638515 2638516 2638517 2638518 2638519 2638520 2638521 2638522 2638523 2638525 2638527 2638529 2638530 2638531 2638532 2638536 2638537 2638563 2638564 2638567 2638568 2638569 2638618 2638628 2638629 2638634 2638644 2638647 2638649 2638653 2638658 2638666 2638671 2638675 2638677 2638679 2638680 2638685 2638687 2638689 2638691 2638692 2638693 2638694 2638695 2638696 2638697 2638699 2638701 2638702 2638703 2638704 2638705 2638706 2638707 2638709 2638710 2638711 2638712 2638713 2638714 2638720 2638721 2638725 2638726 2638728 2638731 2638732 2638736 2638737 2638739 2638740 2638741 2638744 2638745 2638747 2638748 2638753 2638754 2638755 2638756 2638757 2638760 2638763 2638764 2638768 2638777 2638781 2638782 2638783 2638791 2638793 2638795 2638796 2638798 2638799 2638801 2638810 2638811 2638813 2638814 2638815 2638816 2638817 2638818 2638832 2638833 2638834 2638835 2638836 2638846 2638847 2638848 2638849 2638850 2638851 2638852 2638854 2638855 2638857 2638858 2638859 2638860 2638861 2638862 2638864 2638866 2638867 2638868 2638869 2638870 2638872 2638873 2638874 2638876 2638883 2638884 2638885 2638893 2638895 2638900 2638923 2638927 2638928 2638929 2638931 2638932 2638935 2638936 2638937 2638939 2638942 2638943 2638949 2638952 2638954 2638955 2638956 2638957 2638958 2638959 2638960 2638961 2638962 2638968 2638976 2638978 2638979 2638980 2638983 2638984 2638986 2638988 2638994 2638995 2638998 2638999 2639001 2639002 2639003 2639006 2639011 2639012 2639013 2639014 2639016 2639017 2639018 2639024 2639025 2639030 2639036 2639038 2639039 2639043 2639045 2639046 2639049 2639055 2639057 2639064 2639066 2639067 2639068 2639069 2639072 2639074 2639076 2639079 2639080 2639081 2639085 2639086 2639092 2639098 2639099 2639100 2639101 2639103 2639104 2639105 2639106 2639107 2639109 2639110 2639111 2639112 2639125 2639128 2639129 2639131 2639132 2639133 2639134 2639137 2639138 2639139 2639144 2639146 2639148 2639149 2639159 2639162 2639164 2639165 2639167 2639177 2639179 2639186 2639187 2639188 2639191 2639196 2639197 2639204 2639205 2639208 2639214 2639217 2639218 2639220 2639221 2639223 2639224 2639225 2639226 2639227 2639230 2639236 2639237 2639238 2639239 2639241 2639242 2639246 2639248 2639260 2639262 2639263 2639264 2639270 2639271 2639292 2639293 2639296 2639298 2639299 2639300 2639302 2639303 2639304 2639305 2639306 2639307 2639308 2639309 2639311 2639315 2639316 2639317 2639319 2639321 2639322 2639323 2639324 2639325 2639326 2639327 2639328 2639329 2639330 2639331 2639333 2639336 2639338 2639339 2639341 2639342 2639343 2639344 2639345 2639346 2639348 2639349 2639350 2639356 2639358 2639359 2639360 2639361 2639362 2639364 2639365 2639367 2639368 2639369 2639370 2639373 2639374 2639376 2639378 2639379 2639381 2639386 2639387 2639388 2639389 2639391 2639394 2639396 2639397 2639398 2639400 2639401 2639404 2639405 2639406 2639409 2639410 2639411 2639412 2639419 2639423 2639426 2639427 2639429 2639434 2639437 2639440 2639446 2639448 2639450 2639457 2639465 2639466 2639467 2639468 2639469 2639472 2639473 2639474 2639475 2639478 2639485 2639486 2639487 2639488 2639489 2639491 2639492 2639495
86
2639497 2639498 2639502 2639504 2639505 2639506 2639507 2639508 2639509 2639511 2639512 2639519 2639521 2639522 2639523 2639525 2639527 2639530 2639542 2639543 2639552 2639553 2639554 2639555 2639559 2639560 2639561 2639563 2639564 2639565 2639567 2639574 2639575 2639578 2639579 2639581 2639582 2639584 2639585 2639586 2639587 2639588 2639589 2639591 2639595 2639596 2639597 2639598 2639599 2639605 2639618 2639621 2639623 2639624 2639627 2639628 2639637 2639638 2639639 2639644 2639647 2639648 2639649 2639650 2639654 2639658 2639662 2639665 2639669 I have some sample date here:
http://www.developpez.net/forums/attachments/p57656d1263922095/bases-donnees/oracle/pl-sql/html-affichage-tableaux-conditions/testcase.zip/
I want to know if it's possible to achieve what I want based on the code here.
I'm working on Application Express 3.1.2.00.02
thanks!!
Roseline -
Http Bad Request when using /_vti_bin/listdata.svc in excel or tableau
hi all,
I followed a guide from tableau that teaches us how to connect odata(sharepoint list data) but it keeps giving me HTTP bad request.
When i tried to access my list using http://myserverIP/_vti_bin/ListData.svc
from the browser with credential, I am able to access the listdata and see the data from other lists. I decided to try connecting to excel instead but it gives me the same error, HTTP bad request. What am I doing wrong? Does the problem comes from
access rights or?
Can anyone help or guide me? Thank youHi Leonard,
Thanks for posting your query, you can refer one of my blog to create and configure a WCF service in SharePoint.
http://dharmendrablogs.blogspot.in/2013/02/rest-wcf-service-in-sharepoint-2010.html
And, another blog is
http://dennis.bloggingabout.net/2006/11/09/WCF-Part-4-Make-your-service-visible-through-metadata/
Hope this is helpful to you. If this works, Please mark it as Answered.
Regards,
Dharmendra Singh (MCPD-EA | MCTS )
Blog URL : http://sharepoint-community.net/profile/DharmendraSingh -
Please Help : (x)newInstance()
I want to load class and instantiate object, but i dont i now the type of object :
my code java is :
Class cls = class.forName(org.com.xxxx);
int idx0 = str.lastIndexOf(".");
String testObj = str.substring(idx0+1);
obj = (testObj)cls.newInstance();
when i compile exception is : class testObj introuvable
Please Help ThanksMy code is (i dont use interface in my case.......):
HashMap ht_ = getAttribute (root, hsAll_);
Set s_ = ht_.keySet();
for (Iterator i= s_.iterator(); i.hasNext(); ) {
String str = (String)i.next();
int idx0 = str.lastIndexOf(".");
String testObj = str.substring(idx0+1);
HashMap htt_ = (HashMap)ht_.get(str);
Set ss_ = htt_.keySet();
Class cls = Class.forName(str);
o_ = (testObj)cls.newInstance();
for (Iterator ii= ss_.iterator(); ii.hasNext(); ) {
String nomAtt = ((String)ii.next());
String test = (nomAtt.substring(3));
String valAtt = (String)htt_.get(nomAtt);
//Tableau des classes des param�tres des m�thodes
Class[] args = new Class[1] ;
//R�cup�ration du type des param�tres des m�thdes de l'objet
String clsField = cls.getDeclaredField(test.toUpperCase()).getType().toString();
int idx = clsField.lastIndexOf(".");
String strField = clsField.substring(idx+1);
//Tableau des objets � passer en param�tre(chaque type doit
//�tre envelopper dans un objet qui lui correspond(double----> Double))
Object[] parms = new Object[1] ;
if(strField.equals("String") ){
parms[0] = valAtt;
args[0] = Class.forName("java.lang.String");
method = cls.getMethod(nomAtt,args);
else if(clsField.equals("double")){
parms[0] = new Double(valAtt);
method = cls.getMethod(nomAtt,new Class[] {double.class});
else if(clsField.equals("int")){
parms[0] = new Integer(valAtt);
method = cls.getMethod(nomAtt,new Class[] {int.class});
else if(clsField.equals("boolean")){
parms[0] = new Boolean(valAtt);
method = cls.getMethod(nomAtt,new Class[] {boolean.class});
else if(clsField.equals("float")){
parms[0] = new Float(valAtt);
method = cls.getMethod(nomAtt,new Class[] {float.class});
else if(clsField.equals("DateOms")){
dateoms = new DateOms(valAtt,"dd-MM-yyyy");
else continue;
//Appel de la m�thode envelopp�e dans l'objet method avec le param�tre params
method.invoke(o_,parms);
if (TraceManager.on()) {
TraceManager.log ("Le vecteur g�n�r� est de taille : " + htsObj.size());
//Stockage de l'objet instanci� dans un HashMap
htsObj.put(testObj, o_);
htsObj.put("DateOms", dateoms);
catch (Exception ex) {
TraceManager.log ("Le vecteur d'objet est null ");
ex.printStackTrace();
if (TraceManager.on()) {
TraceManager.log ("Fin de la m�thode xmlToObj()");
return htsObj;
} -
Dynamic array expansion - Tableau dynamique
Hello,
Sorry for my English, but I go through the online translator of google.
I'm new to the forum and starts on Adobe LiveCycle Designer ES2.
I'm looking for someone mastering this software to help me modiffier a table in a quotation form.
I wish that the lines of my table can adjust in height according to the text that is entered.
More buttons to add or delete rows, with automatic updating of the field.
My form.
Thank you in advance to those who will address my problem.
ValdoFR.
========================================================================================
Bonjour,
Désolé pour mon anglais, mais je passe par le traducteur en ligne de google.
Je suis nouveau sur le forum et débute sur Adobe LiveCycle Designer ES2.
Je suis à la recherche de quelqu'un maitrisant ce logiciel pour m'aider à modiffier un tableau dans un formulaire de devis.
Je souhaiterai que les lignes de mon tableau puisse s'ajuster en hauteur selon le texte qui est entré.
Plus des boutons pour ajouter ou supprimer des lignes, avec mise à jour automatique des champ.
Mon formulaire.
Merci par avance à ceux qui se pencheront sur mon problème.
ValdoFR.Thank you very much,
your answer helped me move, I completely changed the form with a button to add the line, one for delete and move them to another place. I am inspired by the form-Provides Dynamics-Building-dynamic-tables.pdf for pages added to the slant as it enters the data.
The problem is that now I do not know how to make the cell adapts by author based on data.
thank you for watching my new form, and correct me if possible.
Thank you again for everything.
ValdoFR
====================================================================
Merci beaucoup,
votre réponse m'a permis d'avancer, j'ai complètement modifié le formulaire avec un bouton pour ajouter des ligne, autre pour les supprimer et un autre pour les bouger de place. je me suis inspiré du formulaire Assure-Dynamics-Building-dynamic-tables.pdf pour que les pages s'ajoute au fure et à mesure que l'on rentre les données.
Le problème, c'est que maintenant je ne sais plus comment faire pour que la cellule s'adapte en auteur en fonction des données.
Merci de regarder mon nouveau formulaire et me le corriger si possible.
Encore merci pour tout.
ValdoFR
Ce message a été modifié par: ValdoFR -
I need help creating a method!
Hi,
I'm following a Java course, we have a homework to do and I have some problems with it... We have to create a table (int [] a) with a 100 elements ( 0,2,4,6 ... to 198 - all even) we have to go through a "for" to fill the table (I have no problem with that) but the thing is that we have to create a JOptionPane asking a value and our method has to find that value in the table and give the position of that value. And if the value is not even a JOptionPane has to respond "that value is not in the table". I'll give yall an example:
let's say that table [4] contains the value 8. If "8" is enter in the JOptionPane the program will return "the position of 8 in the table is 4"
here is what I have done so far (some of the text is in french):
import javax.swing.*;
import java.awt.*;
public class TP3a extends JApplet{
JTextArea zone = new JTextArea ();
String sortie= " ";
String cle1;
int indice=0;
int cle;
int [] tableau = new int [100];
public void init (){
for (int x=0; x<=200; x++){
tableau[x]= x*2+2;
indice=x;
cle1=JOptionPane.showInputDialog ("Entrer la valeur de l'element que vous desirez voir: ");
cle=Integer.parseInt (cle1);
rechercheIndice (int tableau [], cle);
sortie+=tableau [cle];
zone.append (sortie);
JOptionPane.showMessageDialog (null, zone, "Tableau", JOptionPane.PLAIN_MESSAGE);
System.exit (0);
public int rechercheIndice (int tableau [], int cle){
for (int x; x<=tableau.length; x++){
if (cle == tableau [x])
return tableau [cle];
else
continue;
Please help me!!!
Thanks,
Neriadeimport javax.swing.*;
import java.awt.*;
public class TP3a extends JApplet{
JTextArea zone = new JTextArea ();
String sortie= " ";
String cle1;
int indice=0;
int cle;
int [] tableau = new int [100];
public void init (){
for (int x=0, y = 0; x<100; x++, y += 2 ){
tableau[x]= y;
indice=x;
cle1=JOptionPane.showInputDialog ("Entrer la valeur de l'element que vous desirez voir: ");
cle=Integer.parseInt (cle1);
int i = rechercheIndice (tableau, cle);
System.out.println( "i: " + i );
sortie+=tableau [cle];
zone.append (sortie);
JOptionPane.showMessageDialog (null, zone, "Tableau", JOptionPane.PLAIN_MESSAGE);
System.exit (0);
public int rechercheIndice (int[] tableau, int cle){
for (int x = 0; x<tableau.length; x++){
if (cle == tableau [x])
return x;//tableau [cle];
return -1;
} -
Help : Récupération des infos dans XML
Bonjour à tous,
Je débute en Labview et j'ai une question par rapport à la récupération des informations dans un fichier XML.
En effet, j'ai un fichier XML que je considère comme un tableau de chaînes de caractères. Maintenant, je dois récupérer la valeur de la dernière ligne de ce fichier, situé juste avant la balise de fermeture XML </LVData>, je ne connais pas la taille de XML car elle est pas fixée.
Quelqu'un peut m'aider sur cette question? Merci d'avance
ZuzuJe ne connais pas très bien la syntaxe XML, mais il y a un exemple dans LabVIEW qui te permettra certainement de faire ce que tu veux.
En faisant une lecture simple de ton fichier XML, il te suffit de connaitre le type de données à lire (tableau de valeur numérique dans ton cas).
Help >> Find examples... >> onglet "Search" et tu tapes XML
Ensuite, une fois que tu as ton tableau tu fais ce que tu veux...
soit une lecture de la taille et pour ensuite lire l'élément d'index "taille-1"
soit tu fais un "reverse array" après quoi il te reste à prendre la valeur d'index 0.
J'espère que ça t'aidera...
Message Edité par TiTou le 10-05-2006 11:14 AM
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!" -
Bonjour à tous
Je souhaite avoir une aide concernant mon projet sur labview et pour le moment j'avance guère je soulignerai que je suis novice sur labview.
Probleme : Je veux créer un tableau de 128 colonnes et de 128 lignes. Le plus importants ce sont les colonnes, on peu s'arrêter à quelques ligne pour le moment. Et en créant le tableau je doit y insérer des valeurs en binaire à chaque 8 colonnes. Je m'explique par exemple pour les premiere huit colonnes je met 00000000 et la seconde 11111111 et jusqu'à 128.
Et on fera de même pour les lignes après que ceci soit réussi.
Merci pour votre aide.
Hello to all
I wish to have assistance with my labview project and for the moment I go much I stress that I am new to labview.
Problem: I want to create an array of 128 columns and 128 rows. The most important are the columns, there is little to stop a few online yet. And creating the table I must insert values in binary every 8 columns. Let me explain by example for the first eight columns I put 00000000 and 11111111 and the second up to 128.
And we will do the same for the lines after this is successful.
Thank you for your help.Bonjour Bisma,
Voici ci en pièce jointe comment obtenir ton tableau de booléens. Tu déplaces ta LED dans le "Array2" pour obtenir le "Array" en tirant sur les côtés.
Tu peux faire la même chose avec un numérique I32 si besoin est.
Tu pourras ensuite definir dans ton code la dimmension de ton tableau et comment le remplir grâce à la palette d'outils "Array".
Cordialement,
Vincent
Attachments:
Capture.JPG 51 KB -
Index d'un string dans un tableau
Bonjour,
Je souhaite effectuer une fonction identique à la fonction " index tableau 1D " mais avec un tableau e string.
En effet: j'ai un petit tableau, dans le quel je veux chercher la colonne correspondante de ses éléments de types " chaines de caractéres " dans un plus grand tableau.
Dans le VI (ci-joint) que j'ai réalisé, quand la sortie est un 'numérique" ça marche très bien mais il me donne juste le numéro de colonne du dernier élément alors que moi je veux un tableau avec le numéro de chaque colonne coresspondante.
Any help?
Merci beaucoup.
Résolu !
Accéder à la solution.
Pièces jointes :
rech_caractere_2.vi 10 KBJe suis vraiment un super débutant.
c'est une qualité, car tout est possible.
Il y a un peu plus de 3ans, j'ai rencontré labview.
Là ... je peux t'assurer que plus "débutant" que moi ... ça n'existait pas !
L'assembleur a été pour moi le seul langage "digne de ce nom" pendant pas mal d'années.
Labview ... des boutons, des Leds ... qu'est-ce que c'est que ce "truc" ?
Mon premier code ... un bouton sur une led ... mêm pas de boucle ... run j'allume, run j'éteins !
Là ... Oooh, surpise ... "ça fonctionne" !
A partir de là, j'ai avalé toutes les portes logiques d'un coup ... depuis ... c'est la folie totale.
Soit perfectionniste avec Labview ... tu en auras ce que tu y mets toi même. (rien de plus)
N'oublie jamais cette histoire du "flux de données", perso il m'a fallu des mois (un an ?) pour en comprendre réellement les finesses et la portée.
Tout ceci étant dit .... bienvenue ! -
Indice d'un tableau lors d'un appui
Bonjour,
J'aurai voulu savoir si il était possible de connaitre l'indice d'une case d'un tableau (dans mon VI c'est un tableau de chaînes déroulantes) lorsque l'utilisateur va vouloir faire une modification sur la case en question.
Le but final dans mon VI est de changer la liste de menu déroulant en fonction de la case que l'on souhaite changer la valeur.
Merci de votre aide.Bonjour Justin44,
J'avoue ne pas comprendre très bien votre problème. Comme Titou l'a dit, les éléments d'un tableau ont un type identique. Vous ne pourrez pas modifier le type d'un seul élément du tableau. Un cluster ou tableau de clusters est faisable et pourrait répondre à vos attente (http://zone.ni.com/reference/fr-XX/help/371361J-0114/glang/build_cluster_array/).
Si vous décidez de mettre votre tableau comme commande, vous pourrez changer dynamiquement lors de l'exécution de votre code les valeurs de celui-ci (si le choix est déjà listé dans le menu déroulant avant le lancement).
Je vous remet le même VI légèrement modifié.
Cela vous convient il? Si non, essayez de nous expliquer à l'aide d'un exemple de scénario nominal.
Si la solution vous convient, je vous invite à mettre votre topic comme résolu.
Cordialement.
Pierre Denis
National Instruments.
Pierre_D
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
LabVIEW Tour
Journées Techniques dans 10 villes en France, du 4 au 20 novembre 2014
Pièces jointes :
forum (2).zip 12 KB
Maybe you are looking for
-
I had a new hard drive replaced in my imac. Now my 1st generation apple TV does not appear under devices in itunes. How do I get my apple tv to connect to my computer? My OS is 10.6.8
-
Why can't you control the view of artwork in itunes 12?
-
How to call a stored procedure on time basis with out using sql job and GOTO
Hi, I wanted to call a stored proc, on time basis , please tel me how it can be done with out using sql job , goto . 1) That is, is there any timer aviable in sqlserver. q2) And which one is better GOTO or sql job. yours sincerley
-
Changing style sheets causes hang (ID CS2 Windows)
I have several 25-page (or so) files that are part of a book file. I'm trying to change the tabs in some of the style sheets but when I make the changes within the style sheet dialog window and close it, InDesign hangs. I've let it go for 15 minutes
-
Facetime reverted back to older version after Lion install.
I purchased Factime from App Store and after upgrading to Lion OS, it has been reverted back to Version 1.1. App store is asking me to purchase it back again to upgrade it to V 1.2. Does it mean for every bug fix and version upgrade i have to pay app