Get the RANK of values to the end user using the A-team

In my rest, class of service (Department) it is a function (POST) who receive the range of values of its consumers and returns List < and >.

It is the function

@POST

@Path("{from}/{to}/Departments")

@Produces ({"application/json"})

public list < departments > findRange (around @PathParam("from"), around @PathParam("to") to) {}

Return super.findRange (new int [] {, to});

}

Persistence A-team Accelerator, duties DepartmentSevice (DC) are pre-built, please how I can configure rang of function values in the class DepartmentService and call or manipulate the AMX page so that the end user can be entered range values during the operation in his mobile?

Rest of the a-Team/json in place of Images:

get2.gif

get1.gif

Thank you.

Best regards

Bartholomew

Hi Steven thanks for your comment I intentionally use the post to test whether it is possible to rotate to GET the other way round.so I wore your instructions and it workd

Thank you very much

Best regards

Bartholomew

Tags: Oracle Mobile

Similar Questions

  • How to get a signal triggered by TIMER (under Board user) using GetUserEvent() event

    Hello

    I want to use GetUserEvent() inside a loop for the TIMER event, rather than use the calllback RunUserInterface() and TIMER to vote.

    but it seems that GetUserEvent() can not get the TIMER event. Is there something I should note before using GetUserEvent()?

    I use a button (PANEL_Add) switch TIMER ON / OFF, the time interval is 1 second and TIMER is initially DISABLED.

    PANEL_LED indicates the State of the TIMER POWER indicator.

    PANEL_LED did turn after I click on the command button, but the value of the counter has not changed anyway when the TIMER is activated.

    Thank you for answering ~.

    Here is my code

    ==================================================================

    int main (int argc, char * argv [])
    {
    error int = 0;
    int done = FALSE;
    int eventPanel;
    int eventCtrl;
    int panelHandle;
    unsigned int Count = 0;
    flag of the int = 0;
     
    / * initialize and load resources * /.
    If (InitCVIRTE (0, argv, 0) == 0)
    Returns - 1;
    If ((panelHandle = LoadPanel (0, "Timer.uir", PANNEAU)))<=>
    Returns - 1;
     
    / * display of the control panel and run the user interface * /.
    DisplayPanel (panelHandle);
    While that (is FALSE) {}
            
    GetUserEvent (1, & eventPanel, & eventCtrl);

    Switch (eventCtrl) {}
    case PANEL_Add: flag = (flag == TRUE)? FALSE: TRUE;
    SetCtrlAttribute (panelHandle, PANEL_TIMER, ATTR_ENABLED, flag);
    SetCtrlVal (panelHandle, PANEL_LED, flag);
    break;

    case PANEL_TIMER: SetCtrlVal (panelHandle, PANEL_Counter, Count ++);
    If (Count > 19)
    Count = 0;
    break;
    }
    }

    / * Cleanup * /.
    DiscardPanel (panelHandle);
    CloseCVIRTE ();
    return 0;
    }

    and here's the .h file

    ==================================

    #include

    #ifdef __cplusplus
    extern "C" {}
    #endif

    #define PANEL 1
    #define PANEL_Counter 2
    #define PANEL_Add 3
    #define PANEL_LED 4
    #define PANEL_TIMER 5

    #ifdef __cplusplus
    }
    #endif

    Hello

    According to aid GetUserEvent Gets the next validation event or an event defined by the programmer of the GetUserEvent queue. A validation event occurs when the user changes the State of a hot water or validate controls or selects a menu item.

    Place the events defined by the programmer in the GetUserEvent queue by calling QueueUserEvent.

    Because the timer does not generate a validation event, you must call QueueUserEvent; to do this, you will need to use the TimerCallback function that you don't like... I see no other way than to use the timer callback function

  • Fields to fill out form truncated by the end user

    My fillable PDF on the screen works well here in our office.  But when I send to an end-user outside, some fields are truncated.  One of the fields is a phone number field, I put in place with the format "telephone number".  He is not in default and automatic adjustment of the end user.  Another area is a simple limited field of 4 characters, with an auto adjustment policy (hopefully, I use correct terminology here).  With the end user, they are seized the info, but the police remain large and fit more in the field.  The end user uses Acrobat X, the same as I am.

    Clues?

    Julie

    Are you sure that they use Acrobat X and not something like the application on Mac? If so, can you confirm that they have activated JavaScript?

  • Get the workflow parameter value before the end of the SOAP client workflow execution

    I'm calling webservices SOAP Orchestrator of my request to run a workflow. I want to get a parameter/attribute value before execution of the workflow.

    Brief:

    I have a XYZ workflow that adds two numbers provided by my application. After that my workflow perform some other features that say 5 minutes.

    My application is the result of the addition from the addition is performed. I don't want to wait for these 5 minutes to finish after what my worlkflow is finished and then obtain the result.

    Hello DeepakPN - first of all, if you use vCO 5.x, we strongly recommend to use the api instead of the old api SOAP REST.

    Now, to answer your question:

    When you run a workflow, the returned soap body includes a return workflow id: this is your workflow token id - essentially the Runspace of your workflow. He looks a bit like this:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
    

    There are several additional lines less than retail, but I left it as an important component of the info here is this tag . The value that it contained should be used with the operation "getWorkflowTokenForId". By providing this ID and your credentials, the resulting SOAP body will contain details of your performance at the time of your request. So, if you have your amount stored as an attribute at the time that you run the query, you will see the results. For my simple test, here is my operation "getWorkflowTokenForId" for a test flow that I came through SOAP:

    
       
          
             
                ff80808141e74b090141f05c5d2c00f7
                Any Test
                1a568e2e-5c15-4b68-9bab-20cb955f0004
                item0
                completed
                completed
                
                20131025120447-0400
                20131025120447-0400
                
    
    
    >
    >
    
    
    
    ]]>
             
          
       
    
    

    Inside the tag, there is a tag that contains each of my entries/attributes. In the code above, 'anyInput' is the input parameter for my workflow and of the "inputTypeName" as an attribute.

    Hope this helps

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

  • Java Swing-how do I get the value of a JTable to display dynamically in a JPanel

    I need the sum of the values from the values entered in the JTable to be included in the text of the partition field in the adjoining JPanel.
    Also posted here - http://www.coderanch.com/t/512189/GUI/java/value-JTable-show-up-dynamically.
    import javax.swing.*;
    import javax.swing.table.*;
    import javax.swing.event.*;
    import javax.swing.table.DefaultTableCellRenderer;
    
    import java.awt.*;
    import java.util.*;
    import java.awt.color.*;
    import java.awt.event.*;
    
    public class TableandPanel extends JFrame
    {
         public static void main(String[] args)
         {
              JFrame frame = new JFrame("Table and Panel");
                                           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                           frame.setSize(100, 300);
            
                                            frame.setVisible(true);
                  String colHdrA = "Some Values";                    
                  TableofSums tableofSums = new TableofSums(10, colHdrA);
                  int sumValue = tableofSums.getSumValues();
                  String sumValueS = String.valueOf(sumValue);
                  SumValuesPanel newPanel = new SumValuesPanel( "Score", sumValueS, "Rank");
                  JPanel thePanel = new JPanel();
                  thePanel.add(new JScrollPane(tableofSums));
                  thePanel.add(newPanel);
                  frame.add(thePanel);
                  frame.pack();
              frame.setVisible(true);
         }
    }
    
    //---------table class starts here---------------------------
    
    public class TableofSums extends JPanel implements TableModelListener
    {
        public static void main(String[] args)
         {          
             SwingUtilities.invokeLater(new Runnable() 
                {
                    public void run() 
                      {               
             JFrame frame = new JFrame("Table");
             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
             frame.setSize(208, 230);
             //frame.add(new JScrollPane(table));
                frame.setVisible(true);
                String colHdrA = "Some Values";                    
                TableofSums tableofSums = new TableofSums(10, colHdrA);
                 frame.setContentPane(tableofSums);
                  //frame.add(new JScrollPane(timerepTable));
               frame.pack();
               frame.setVisible(true);
                       
                   }
                });
         }
         
         private int noOfRows = 0;
         private JTable table;
         private String colName = null;
         private int sumValues = 0;
         
         public TableofSums(int noOfRows, String colName)
         {
              this.noOfRows = noOfRows;
              this.colName = colName;
              makeTable();          
         }
         
         private void makeTable()
         {
              Object columns[] = new Object[] {"<html><center>" + this.colName + "</center></html>"};
              
             Object[][] data = new Object[noOfRows][1];
             
             for (int i = 0; i<noOfRows; i++)
                {                
                    data[0] = new Integer(0);          
         }
         DefaultTableModel model = new DefaultTableModel(data, columns);
         model.addTableModelListener(this);
         table = new JTable(model)
         {
         @Override
         public boolean isCellEditable(int row, int column)
         {
         switch (column)
         {
              case 0: return true;
         }
         return false;
         }
         
         @Override
         public Class<?> getColumnClass(int columnIndex)
         {
         switch (columnIndex)
         {
         case 0: return Integer.class;
         }
         return null;
         }
         };
         table.setRowHeight(25);
         table.setDefaultRenderer(Integer.class, new SomeCellRenderer());
         this.add(new JScrollPane(table));
         }

    ///--------------------------------tablemodellistener---------------------------------
    //gets the values entered in the table and calculates the sum
    //-------------------------------------------------------------------------------------------
         public void tableChanged(TableModelEvent e)
    {
         System.out.println(e.getSource());
         if(e.getType() == TableModelEvent.UPDATE)
         {
              int row = e.getFirstRow();
              int column = e.getColumn();
              TableModel model = table.getModel();
              sumValues = 0;
              for (int i=0; i<noOfRows; i++)
              {
                   int intValue = (Integer)model.getValueAt(i, column);
                   sumValues += intValue;
              }
              System.out.println ("row modified: " + row + " sumValues: " + sumValues);
         }
         
    }
    //--------------------------------------cell renderer------------------------------------------------------
         
         public class SomeCellRenderer extends JLabel implements TableCellRenderer
         {
              
         public SomeCellRenderer()
         {
              setOpaque(true);      
         }

         public Component getTableCellRendererComponent(JTable table, Object
                   value, boolean isSelected, boolean hasFocus, int row, int column)
              {
              String cellValue = String.valueOf(value);
              this.setText(cellValue);
              this.setBackground(Color.LIGHT_GRAY);
              this.setHorizontalAlignment(SwingConstants.CENTER);
         return this;
              }
         }
         public int getSumValues()
         {
              return sumValues;
         }
    }


    //-------------------------Panel Class Starts here-------------------------------------

    public class SumValuesPanel extends JPanel
    {
         /**
         * @param args
         */
         public static void main(String[] args)
         {
              JFrame.setDefaultLookAndFeelDecorated(true);
              JFrame frame = new JFrame("SumValuesPanel");
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              SumValuesPanel newContentPane = new SumValuesPanel( "Score", "XX.XX", "Rank");
              
              frame.setContentPane(newContentPane);
              frame.pack();
              frame.setVisible(true);
         }
         
    //------Variables declaration
    private JPanel thePanel;
    private JLabel scorejLabel;
    private JTextField ScorejTextField;
    private String scoreLabel;
    private String scoreValue;
    private JLabel rankLabel;
    private String rankLabelTxt;
    private JTextField rankTextField;
    private String rankText;
    //-------End of variables declaration

    public SumValuesPanel (String setScoreLabel,String setScoreVal, String rankLabel)
    {
         scoreLabel = setScoreLabel;
         scoreValue = setScoreVal;
         this.rankLabelTxt = rankLabel;
              
         createSumValuesPanel();
    }

    private void createSumValuesPanel()
    {         
    thePanel = new JPanel();

    rankLabel = new JLabel();
    rankTextField = new JTextField();
         scorejLabel = new JLabel();
    ScorejTextField = new JTextField();

    thePanel.setBackground(new Color(235, 233, 230));
    thePanel.setBorder(BorderFactory.createLineBorder(new Color(0, 0, 0)));
    thePanel.setPreferredSize(new Dimension(200, 180));

    scorejLabel.setHorizontalAlignment(SwingConstants.CENTER);
    scorejLabel.setText(scoreLabel);
    scorejLabel.setBorder(BorderFactory.createLineBorder(new Color(0, 0, 0)));
    scorejLabel.setPreferredSize(new Dimension(40, 20));

    ScorejTextField.setEditable(false);
    ScorejTextField.setHorizontalAlignment(JTextField.CENTER);
    ScorejTextField.setText(scoreValue);
    ScorejTextField.setBorder(BorderFactory.createLineBorder(new Color(0, 0, 0)));
    ScorejTextField.setMaximumSize(new Dimension(60, 25));
    ScorejTextField.setMinimumSize(new Dimension(35, 15));
    ScorejTextField.setPreferredSize(new Dimension(55, 20));

    rankLabel.setHorizontalAlignment(SwingConstants.CENTER);
    rankLabel.setText(rankLabelTxt);
    rankLabel.setBorder(BorderFactory.createLineBorder(new Color(0, 0, 0)));
    rankLabel.setPreferredSize(new Dimension(90, 20));

    rankTextField.setEditable(false);
    rankTextField.setBackground(new Color(255,255,0));
    rankTextField.setHorizontalAlignment(JTextField.CENTER);
    rankTextField.setText(rankText);
    rankTextField.setBorder(BorderFactory.createLineBorder(new Color(0, 0, 0)));
    rankTextField.setPreferredSize(new Dimension(55, 20));

    thePanel.add(scorejLabel);
    thePanel.add(ScorejTextField);
    thePanel.add(rankLabel);
    thePanel.add(rankTextField);

    this.add(thePanel);
    }

    }
    Edited by: 799076 on Oct 1, 2010 8:50 AM
    
    Edited by: 799076 on Oct 2, 2010 3:59 AM - added the code tags.
    
    Edited by: 799076 on Oct 2, 2010 4:01 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    OK, here's my "simple" example Say you have a class, TablePanel, that extends from JPanel that holds a JTable and this table contains two columns of integers in a DefaultTableModel and you want to get and display the sum of the columns of numbers whenever they are changed:

    class TablePanel extends JPanel {
       public static final String[] COL_HEADERS = {"A", "B"};
       private static final Integer[][] DATA = {{1, 2}, {3, 4}, {5, 6}};
       private DefaultTableModel model = new DefaultTableModel(DATA, COL_HEADERS) {
          @Override
          public Class getColumnClass(int columnIndex) {
             return Integer.class;
          }
       };
    
       public TablePanel() {
          JTable table = new JTable(model);
          setLayout(new BorderLayout());
          add(new JScrollPane(table));
       }
    //....
    

    A way to listen for changes to the table is to provide a method that allows outside classes to add a TableModelListener your JTable model:

       public void addTableModelListener(TableModelListener listener) {
          model.addTableModelListener(listener);
       }
    

    You could also give him public methods to enable this class get the money and return:

       public int getSumA() {
          int sum = 0;
          for (int i = 0; i < model.getRowCount(); i++) {
             sum += (Integer) model.getValueAt(i, 0);
          }
          return sum;
       }
    
       public int getSumB() {
          int sum = 0;
          for (int i = 0; i < model.getRowCount(); i++) {
             sum += (Integer) model.getValueAt(i, 1);
          }
          return sum;
       }
    }
    

    While you have another class, SumPanel, that displays two JLabels, one to hold the sum of column A and one for the sum of column B:

    class SumPanel extends JPanel {
       private JLabel sumA = new JLabel(" ", SwingConstants.RIGHT);
       private JLabel sumB = new JLabel(" ", SwingConstants.RIGHT);
    
       public SumPanel() {
          setLayout(new GridLayout(1, 0));
          add(sumA);
          add(sumB);
    
          //....
       }
       //.....
    

    You'd give public methods to allow outside classes to set the text for the JLabels that class:

       public void setTextSumA(String text) {
          sumA.setText(text);
       }
    
       public void setTextSumB(String text) {
          sumB.setText(text);
       }
    

    Then, you might have your own class TableModelListener, ModelListener, which has references to both of the above classes:

    class ModelListener implements TableModelListener {
       private TablePanel tablePanel;
       private SumPanel sumPanel;
    
       public ModelListener(TablePanel tablePanel, SumPanel sumPanel) {
          this.tablePanel = tablePanel;
          this.sumPanel = sumPanel;
    
          //...
       }
    //....
    

    who will set the SumPanel labels whenever its tableChanged method is called by the model:

       @Override
       public void tableChanged(TableModelEvent e) {
          int sumA = tablePanel.getSumA();
          int sumB = tablePanel.getSumB();
    
          sumPanel.setTextSumA(String.valueOf(sumA));
          sumPanel.setTextSumB(String.valueOf(sumB));
       }
    
    }
    

    Then you can link everything together in your main graphical interface as follows:

          TablePanel tablePanel = new TablePanel();
          SumPanel sumPanel = new SumPanel();
          ModelListener myModelListener = new ModelListener(tablePanel, sumPanel);
          tablePanel.addTableModelListener(myModelListener);
    

    All assembled, it could look as follows:

    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.DefaultTableModel;
    
    public class TableAndPanel2 {
    
       private static void createAndShowUI() {
          TablePanel tablePanel = new TablePanel();
          SumPanel sumPanel = new SumPanel();
          ModelListener myModelListener = new ModelListener(tablePanel, sumPanel);
          tablePanel.addTableModelListener(myModelListener);
    
          JFrame frame = new JFrame("Table And Panel 2");
          frame.getContentPane().add(tablePanel, BorderLayout.CENTER);
          frame.getContentPane().add(sumPanel, BorderLayout.PAGE_END);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
       }
    
       public static void main(String[] args) {
          java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
                createAndShowUI();
             }
          });
       }
    }
    
    class TablePanel extends JPanel {
       public static final String[] COL_HEADERS = {"A", "B"};
       private static final Integer[][] DATA = {{1, 2}, {3, 4}, {5, 6}};
       private DefaultTableModel model = new DefaultTableModel(DATA, COL_HEADERS) {
          @Override
          public Class getColumnClass(int columnIndex) {
             return Integer.class;
          }
       };
    
       public TablePanel() {
          JTable table = new JTable(model);
          setLayout(new BorderLayout());
          add(new JScrollPane(table));
       }
    
       public void addTableModelListener(TableModelListener listener) {
          model.addTableModelListener(listener);
       }
    
       public int getSumA() {
          int sum = 0;
          for (int i = 0; i < model.getRowCount(); i++) {
             sum += (Integer) model.getValueAt(i, 0);
          }
    
          return sum;
       }
    
       public int getSumB() {
          int sum = 0;
          for (int i = 0; i < model.getRowCount(); i++) {
             sum += (Integer) model.getValueAt(i, 1);
          }
    
          return sum;
       }
    
    }
    
    class SumPanel extends JPanel {
       private JLabel sumA = new JLabel(" ", SwingConstants.RIGHT);
       private JLabel sumB = new JLabel(" ", SwingConstants.RIGHT);
    
       public SumPanel() {
          setLayout(new GridLayout(1, 0));
          add(sumA);
          add(sumB);
    
          sumA.setBorder(BorderFactory.createLineBorder(Color.black));
          sumB.setBorder(BorderFactory.createLineBorder(Color.black));
       }
    
       public void setTextSumA(String text) {
          sumA.setText(text);
       }
    
       public void setTextSumB(String text) {
          sumB.setText(text);
       }
    }
    
    class ModelListener implements TableModelListener {
       private TablePanel tablePanel;
       private SumPanel sumPanel;
    
       public ModelListener(TablePanel tablePanel, SumPanel sumPanel) {
          this.tablePanel = tablePanel;
          this.sumPanel = sumPanel;
    
          tableChanged(null);
       }
    
       @Override
       public void tableChanged(TableModelEvent e) {
          int sumA = tablePanel.getSumA();
          int sumB = tablePanel.getSumB();
    
          sumPanel.setTextSumA(String.valueOf(sumA));
          sumPanel.setTextSumB(String.valueOf(sumB));
       }
    
    }
    
  • Get the default value for class LV 1498 error

    I call get the Default Value.vi LV class to dynamically load a class.

    It was working fine until I added Open Config Data.vi to read an .ini file.

    The application works fine when I press the button RUN in the LabView development environment, but when I create the executable file with Application Builder and then run it, I get:

    "1498 error occurred getting class LV Default Value.vi"

    Possible reasons:

    LabVIEW: Library has errors. Correct the errors before performing this operation.

    «"" "String of full appeal:»»"»

    Download LV class by default Value.vi

    Test.VI

    LabVIEW has tried to load the class in this path:

    g:\cal\devices\Digital300Meter\Digital300Meter.lvclass

    I narrowed the problem down to open Config Data.vi included in the application, not in the class. I don't have to call the Open Data of Config vi to get this error.

    I have a Subvi, called "SelectDevice" which refers to Open Data from Config. In my main Test.vi SelectDevice is in the true case of a true/false case structure, which is set to False.

    If I put a design schema off around the Open Data of Config vi, I do not get the error.

    I suspect that including Open Config Data include a VI in the application that interferes with the LV ranks by default.

    Thank you, it works!

    I also put the additional Exclusions page as follows:

    Disconnect the type definitions - verified

    Remove unused polymorphic instances of VI - verified

    Remove unused libraries project - members verified

    Change the project library file after removing unused members - unaudited

  • [.ini files] Get the value of multiple labels with the same name

    Hello!

    In an ini.files, I need to get the value of each tag named in a certain way in a section, but unfortunately, I have 3 or 4 tags with the same name in several sections. I don't know how to retrieve these values, the program always consider that the first tag and not others, I tried to remove each tag after obtaining its values, that he did not.

    Does anyone have an idea to solve the problem?

    Thank you!

    As you can read in my last post, you must read and throw 'x' lines:

    OpenFile)

    Skip lines

    for (i = 0; i< x;="" i++)="" readline="">

    Start reading the useful lines

    ReadLine () / / read a line

    ... / / Interpret the line

    Don't forget to add a control during i/o operations of robust error and to check the end of the file.

  • ValueChangeListener for an inputText in a table - how to get that RANK the inputText is on?

    We have a table with a variable number of rows. If someone types a user name in one of the lines, it calls a method (valuechangelistener) in our managed bean.

    It's called getting at the right time, but how can you get which line the field is on?

    For example, there are 4 rows and I am changing the username in the 3rd row, how could I get the 3rd rank so that I can do things for the first name and the name of this line (change their values)?

    I tried to use the selected line, but then if I click on another row after finishing typing the username, it fills the first name and family name of the line I just clicked instead of the line that I just finished typing in.

    Screen Shot 2015-08-25 at 9.16.04 AM.png

    Help would be GREATLY appreciated!

    Thank you!

    I was able to use the dcIteratorBinding.getCurrentRow to get the line was the inputText-seems to work.

    Links DCBindingContainer is BindingContext.getCurrent () .getCurrentBindingsEntry () (DCBindingContainer);.

    DCIteratorBinding dcIteratorBinding = (IteratorId) bindings.findIteratorBinding;

    Line currRow = dcIteratorBinding.getCurrentRow ();

    If (currRow! = null) {}

    currRow.setAttribute (fnameAttr, fname);

    currRow.setAttribute (lnameAttr, lname);

    }

  • Get the field to remain Virgin until the user enters the value in the previous field used in the calculation

    I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:

    If the field 'Desired Start Date' is empty, leave 'to' field blank

    var myStartDate = new Date (this.getField("Desired_Effective_Date").value);

    If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})

    If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.

    }

    else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}

    Try the following than the calculation script custom field "to".

    Get the value of the date field beginning

    var sStartDate = getField("Desired_Effective_Date").valueAsString;

    If the start date field is not empty...

    If {(sStartDate)

    Converts a date in a date object string

    Kai = util.scand ("mm/dd/yyyy", sStartDate);

    Add a year

    oDate.setFullYear (oDate.getFullYear () + 1);

    Set this field to the calculated date value

    Event.Value = util.printd ("mm/dd/yyyy", anyway);

    } else {}

    This field blank because the input field is empty

    Event.Value = "";

    }

    You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.

  • Getting the closest value output

    I have the table as below

    with t as)

    Select 1 n double union

    Select 2.71 double Union

    Select 2.72 double Union

    Select 3 from dual union

    Select 4 double)

    Select * from t

    I have the input as 2 value. As there is no such thing as value 2 in my table, I ve to choose the nearest value max exists in my table.

    From the above table, I need to get the result as 2.71 only.

    Could you please suggest the same thing.

    Thank you.

    variable number of val

    exec: val: = 2;

    with t as)

    Select 1 n double union

    Select 2.71 double Union

    Select 2.72 double Union

    Select 3 from dual union

    Select 4 double

    ),

    x as)

    Select n,

    Rank() over (order of abs (n -: val)) rn

    t

    )

    Select n

    x

    where rn = 1

    /

    N
    ----------
    2.71

    SQL >

    SY.

  • How to get the fnd_profile.value in the host program

    Hi all

    How to get the FND_PROFILE. VALUE('ORG_ID') in the host program.

    I loved not below, but it failed.

    v_return =' $ORACLE_HOME/bin/sqlplus - s $FCP_LOGIN < < END

    set pagesize 0

    trigger the echo

    fnd_profile. Value ('ORG_ID');

    EXIT;

    END '

    echo $v_return

    but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »

    Kind regards

    UVA

    > but it error with the message: Retrun value SP-0734: unknown command beginning "fnd_profile...". »

    .. .who is the same thing that will happen if you run SQL * more and type "fnd_profile.value...". »

    Assuming that fnd_profile.value is a function, you must select from the something (say double) or assign to a variable.

  • Problem with pl/sql procedure, trying to get the value of the user during execution

    Hello

    Using oracle 11.2.0.3

    Can run sql that gets the value of the user during the fine workmanship and also via an anonymous block.

    uses of SQL & Enter_Product_Number

    anonymous block using: Enter_Product_number.

    However, get problems when trying to create a pl/sql procedure, use one of the above

    relevant below tried code part & and: buit works do not error, try bad bind variable if used: and ora-600 if try use &.

    How can we have a procedure from pl/sql that can call and receives a value of user during execution?

    Only way around what I can think of is to pass parameters to the procedure

    Thank you

    create or replace procedure ins_into_issues is

    v_nd_rec_cnt number (10);

    v_normal_rec_cnt number (10);

    Start

    Select count (*)

    in v_nd_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & old_nd_product_number;

    Select count (*)

    in v_normal_rec_cnt

    refmast.issues I have

    where i.iss_product_num = & normal_product_number;

    -code below commented above works.

    end;

    Hello

    what something like this:

    create or replace procedure INS_INTO_ISSUES ( in_normal number, in_old number )  is
      v_nd_rec_cnt     number(10);
      v_normal_rec_cnt number(10);
    begin
        select count(*)
          into v_nd_rec_cnt
         from refmast.issues i
         where i.iss_product_num = in_old;
      --
        select count(*)
          into v_normal_rec_cnt
          from refmast.issues i
         where i.iss_product_num = in_normal;
    end;
    

    concerning

    Kay

  • How do I get the number by using the sql values list

    DECLARE

    v_rec_cnt number: = 0;

    Type v_table is table of the varchar2 (9);

    card_tab v_table: = v_table)

    '372131483',

    '372131566',

    '372131618',

    '372131720',

    '372131801',

    '372131885',

    '372131976',

    '372132058'... records 110000lacks)

    and org_colo_cam_id = 6827;

    Start

    Because me in card_tab. First... card_tab. Last

    loop

    SELECT count (1) in the v_rec_cnt OF dtc_tab_random_no dorn

    WHERE org_colo_cam_id = 6827 and

    NVL(attribute01,'@null@') = 'OFFICE '.

    and dorn_card_no = card_tab (i);

    v_rec_cnt: = v_rec_cnt + 1;

    end loop;

    dbms_output.put_line (' County :'|| v_rec_cnt);

    END;

    I need to get the values in list of bove records I write the script run I got this error can u please help for this

    I got IN the operator, but 1000 is limit in thank you operator for help

    Error on line 1

    ORA-06550: line 4, column 11:

    PLS-00801: internal error [22510]

    ORA-06550: line 4, column 11:

    PL/SQL: Ignored Element

    ORA-06550: line 117342, column 10:

    PLS-00320: the declaration of the type of the expression is incomplete or incorrect

    through utl_file.get_line the id to select queries count (1) inner loop passes the id I had the County thanks

  • How to get the lov value(true/false) that is running by pressing the F3 function key

    Hello

    I mapped key F3 function for list of values (lov), pressing F3 on the element of text (with associated lov) poster lov, but here the lov is implicitly run, so I am unable to get the value of lov(true/false), how to get the true or false value from the lov.

    I use Oracle forms 11 GR 2.

    What exactly do you mean by "the true or false value of the lov? Want to know if the user chose something from the lov. If so, you can create a KEY-LISTVAL-trigger on your textitem with something like

    IF SHOW_LOV('THE_NAME_OF_THE_LOV') THEN
      -- do something here
    END IF;
    

Maybe you are looking for