How to scroll datagrid to highlight records?
I have used
styleFunction(data:Object,col:AdvancedDataGridColumn) to highlight
one record in a datagrid. My question is how to scroll to this
highlighted record using action script?
Thanks
For now you can enable scroll bars so that they are always visible, and thus able to grabbed using your pen. Check this under System Preferences > Personal > General > Show Scroll Bars > Always.
The default setting is "Automatically based on Input Device" which makes me think that perhaps Wacom needs to do something in order for OS X Lion to recognize that if you are using a pen, the scrollbars will appear automatically. That's my hope at least!
Similar Messages
-
How to fetch particular segment of records?
Hi all,
My last question is how to limit the rows returned. This time my question is how to fetch particular segment of records from DB table?
In detail, if one table has 95 records, which method can be used to fetch #71-80 record only, not fetch #1-80 first and abandon the preceeding 70 ones?There are a few methods:
- Set firstResult and maxResult on the JPA Query, this is normally the best option. Depending on your database this will best optimized to only select these rows.
- Use a Cursor, in EclipseLink 1.1 there are QueryHints for doing this, see org.eclipse.persistence.config.QueryHints.
- Select all of the results, and store them in your app or http session, and scroll through them in memory on next/previous.
- Select just the ids, and store them in your app/page or http session, each page select the batch of object with the ids.
- Use an order-by and critieria to limit your results to a specific amount.
James : http://www.eclipselink.org
http://en.wikibooks.org/wiki/Java_Persistence -
Scrolling through text file records issue?
Hi there
I am having an issue when trying to scroll though my saved contacts.
On boot up they all work fine, and each record goes in its corresponding textfield. Now I cannot scroll left and right through the records, to display each new record.
I tried making a marker at the end of each set, by putting a -1, -2 and so on per record, to distinguish the end of a record set. With the below however when I click right, and it just puts a -1 in the textfield??
How do I get the program to distinguish the difference between the end of a record and the details of a new one?
//This code is used at start up to read in the first record. This works fine.
public TabbedPaneDemo()
//BufferedReader br = null;
BufferedReader no = null;
Count = 0;
try
br = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\filename.txt")));
String s = "";
while((s=br.readLine()) != null )
Count = 1;
//System.out.println("Data is " + s);
inboundtext = s;
if ( Count == 1 )
//fdTitle.setText(inboundtext);
fdTitle.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 2;
if ( Count == 2 )
//fdTitle.setText(inboundtext);
fdFirst.setText(inboundtext);
break;
//--------and so on tfor the rest
//The code here is the problem. This is the button to scroll right through the records.
else if (evt.getSource() == pane_butRIGHT)
System.out.println("RIGHT");
Aniversary = fdAniversary.getText();
int test = Integer.parseInt(Aniversary);
int setter = 4;
try
br = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\filename.txt")));
String s = "";
while((s=br.readLine()) != null )
Count = 1;
inboundtext = s;
//System.out.println(s);
if ( inboundtext.equals("-1"))
System.out.println("positive");
//continue ;
while((s=br.readLine()) != null )
fdTitle.setText(inboundtext);
fdFirst.setText(inboundtext);
//break;
catch(IOException ie)
finally
try
if(br!=null) br.close();
catch(Exception e)
/* my text file I'm reading from below */
mr
lee
smithers
smith
chappy
[email protected]
1 d road
delta rd
surrey
kt4
uk
ww.vw.com
337
5791
0781
arm
110 fb road
cambs
cambs
cb1
UK
arm.com
3rd line
sysadmin
410
00
00
1
2
3
4
-1
dr
bob
b
bun
cob
[email protected]
main st
hamp
ny
14457
ussa
arse.com
44
00
66
piano inc
main st
rubbish
5749
duff
usa
abc.com
yoyo
billies
desk
222
111
00
3
69
8
7
-2Hi camickr
thanks for the responce,
I understand what you saying with the stringtokenizer.
However my text file would have loads of rows of contacts. My problem comes in where when I want to scroll through those rows, I need them to be display on my GUI which has a Jtextfield per contact detail type, IE one for name and another surname and so on.
Now when the program loads, it reads in the first contact set fine. If I want to read the second contact set, I am stuck. Same again applies if I want to scroll back throgh the contacts? How do I do this?
As you can see in the default constructor, there is a whole batch of while loops getting text initally for the JTextfields. If I could change this just to read the second through in and so on when hitting left or right, problem solved.
thanks
Whole program below:
import javax.swing.JFrame;
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
import java.awt.Graphics.*;
import java.awt.Color.*;
import javax.swing.JPanel.*;
import javax.swing.JLabel;
import java.awt.event.*;
import javax.swing.text.html.*;
import java.net.*;
import java.net.URL.*;
import java.io.IOException;
import java.io.*;
import java.awt.image.*;
import javax.swing.border.*;
import java.applet.*;
import javax.swing.JEditorPane;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.event.TreeSelectionListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.JTabbedPane;
import javax.swing.ImageIcon;
import java.util.StringTokenizer;
public class TabbedPaneDemo extends JPanel implements ActionListener
JButton pane_butSave = new JButton();
private JLabel lblTitle = new JLabel("tilte:" );
private JLabel lblFirst = new JLabel("first:" );
private JLabel lblMiddle = new JLabel("Middle:");
private JLabel lblLast = new JLabel("Last:" );
private JLabel lblNickName= new JLabel("nick name:" );
private JLabel lblEmail= new JLabel("e-mail:" );
private JTextField fdTitle = new JTextField(4);
private JTextField fdFirst= new JTextField(15);
private JTextField fdMiddle = new JTextField(15);
private JTextField fdLast = new JTextField(20);
private JTextField fdNickName = new JTextField(15);
private JTextField fdEmail = new JTextField(50);
private JLabel lblStreetAddress = new JLabel("Street Address");
private JLabel lblCity = new JLabel("Town");
private JLabel lblCounty = new JLabel("County");
private JLabel lblCountry = new JLabel("Country");
private JLabel lblPostCode = new JLabel("ZIP/Post");
private JLabel lblWebpage = new JLabel("Web Page");
private JLabel lblPhone = new JLabel("Phone");
private JLabel lblFax = new JLabel("Fax");
private JLabel lblMobile = new JLabel("Mobile");
private JTextField fdStreetAddress = new JTextField();
private JTextField fdCity = new JTextField ();
private JTextField fdCounty = new JTextField ();
private JTextField fdCountry = new JTextField ();
private JTextField fdPostCode = new JTextField ();
private JTextField fdWebpage = new JTextField ();
private JTextField fdPhone = new JTextField ();
private JTextField fdFax = new JTextField ();
private JTextField fdMobile = new JTextField ();
private JLabel lblCompany = new JLabel("Company");
private JLabel lblCompanyAddress = new JLabel("Company Address");
private JLabel lblCompanyCity = new JLabel("Town");
private JLabel lblCompanyCounty = new JLabel("County");
private JLabel lblCompanyPostCode = new JLabel("ZIP/Post");
private JLabel lblCompanyCountry = new JLabel("Country");
private JLabel lblCompanyWebPage = new JLabel("Web Page");
private JLabel lblJobTitle = new JLabel("JOB Title");
private JLabel lblDepartment = new JLabel("Department");
private JLabel lblOffice = new JLabel("Office");
private JLabel lblCompanyPhone = new JLabel("Phone");
private JLabel lblCompanyFax = new JLabel("Fax");
private JLabel lblPager = new JLabel("Pager");
private JLabel lblCompanyIPphone = new JLabel("IP Phone");
private JTextField fdCompany = new JTextField ();
private JTextField fdCompanyAddress = new JTextField ();
private JTextField fdCompanyCity = new JTextField ();
private JTextField fdCompanyCounty = new JTextField ();
private JTextField fdCompanyPostCode = new JTextField ();
private JTextField fdCompanyCountry = new JTextField ();
private JTextField fdCompanyWebPage = new JTextField ();
private JTextField fdJobTitle = new JTextField ();
private JTextField fdDepartment = new JTextField ();
private JTextField fdOffice = new JTextField ();
private JTextField fdCompanyPhone = new JTextField ();
private JTextField fdCompanyFax = new JTextField ();
private JTextField fdPager = new JTextField ();
private JTextField fdCompanyIPphone = new JTextField ();
private JLabel lblSpouse = new JLabel("Spouse");
private JLabel lblGender = new JLabel("Gender");
private JLabel lblBirthday = new JLabel("Birthday");
private JLabel lblAniversary = new JLabel("Aniversary");
private JTextField fdSpouse = new JTextField ();
private JTextField fdGender = new JTextField ();
private JTextField fdBirthday = new JTextField ();
private JTextField fdAniversary = new JTextField ();
private JLabel lblNotes = new JLabel("Other Notes");
private JTextArea taNotes = new JTextArea ();
private ImageIcon imaNameInfo = new ImageIcon("nameinfo.gif");
private JLabel lblNameInfo = new JLabel(imaNameInfo);
private ImageIcon imaHomeInfo = new ImageIcon("homeinfo.gif");
private JLabel lblHomeInfo = new JLabel(imaHomeInfo);
private ImageIcon imaBusinessInfo = new ImageIcon("businessinfo.gif");
private JLabel lblBusinessInfo = new JLabel(imaBusinessInfo);
private ImageIcon imaPersonalInfo = new ImageIcon("personal.gif");
private JLabel lblPersonalInfo = new JLabel(imaPersonalInfo);
private ImageIcon imaOtherInfo = new ImageIcon("otherinfo.gif");
private JLabel lblOtherInfo = new JLabel(imaOtherInfo);
private JButton pane_butAddOK = new JButton("Ok");
private JButton pane_butAddCANCEL = new JButton("Exit");
//private JButton pane2_butAddOK = new JButton("Ok");
private JButton pane2_butAddCANCEL = new JButton("Exit");
//private JButton pane3_butAddOK = new JButton("Ok");
private JButton pane3_butAddCANCEL = new JButton("Exit");
//private JButton pane4_butAddOK = new JButton("Ok");
private JButton pane4_butAddCANCEL = new JButton("Exit");
//private JButton pane5_butAddOK = new JButton("Ok");
private JButton pane5_butAddCANCEL = new JButton("Exit");
private ImageIcon imaLeft = new ImageIcon("left.gif");
private ImageIcon imaRight = new ImageIcon("right.gif");
private JButton pane_butLEFT = new JButton(imaLeft);
private JButton pane_butRIGHT = new JButton(imaRight);
private JButton pane2_butLEFT= new JButton(imaLeft);
private JButton pane2_butRIGHT= new JButton(imaRight);
private JButton pane3_butLEFT = new JButton(imaLeft);
private JButton pane3_butRIGHT = new JButton(imaRight);
private JButton pane4_butLEFT = new JButton(imaLeft);
private JButton pane4_butRIGHT = new JButton(imaRight);
private JButton pane5_butLEFT = new JButton(imaLeft);
private JButton pane5_butRIGHT = new JButton(imaRight);
private JButton pane_butNEW= new JButton("Reset");
private JButton pane2_butNEW = new JButton("Reset");
private JButton pane3_butNEW = new JButton("Reset");
private JButton pane4_butNEW = new JButton("Reset");
private JButton pane5_butNEW = new JButton("Reset");
private JTabbedPane tabbedPane = new JTabbedPane();
private RandomAccessFile raf;
String inboundtext;
String Title, First, Middle, Last, NickName, Email;
String Address, Town, County, PostCode, Country, Phone, Fax,
Mobile, Webpage;
String Company, CompanyAddress, CompanyTown, CompanyCounty, CompanyPostCode,
CompanyCountry, Job, Department, Office, CompanyPhone, CompanyFax,
CompanyPager,CompanyIPPhone, CompanyWebpage;
String Spouse, Gender, Birthday, Aniversary;
String Notes;
public JTextArea area = new JTextArea();
BufferedReader br = null;
int Count;
public TabbedPaneDemo()
pane_butSave .setVerticalTextPosition(SwingConstants.BOTTOM);
pane_butSave .setHorizontalTextPosition(SwingConstants.CENTER);
pane_butSave .setText("<html><center>"+"Update "+"<br>"+"Changes"+"</center></html>");
pane_butAddOK .setVerticalTextPosition(SwingConstants.BOTTOM);
pane_butAddOK .setHorizontalTextPosition(SwingConstants.CENTER);
pane_butAddOK .setText("<html><center>"+"New "+"<br>"+"Contact"+"</center></html>");
//BufferedReader br = null;
BufferedReader no = null;
Count = 0;
try
br = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\filename.txt")));
String s = "";
while((s=br.readLine()) != null )
Count = 1;
//System.out.println("Data is " + s);
inboundtext = s;
if ( Count == 1 )
//fdTitle.setText(inboundtext);
fdTitle.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 2;
if ( Count == 2 )
//fdTitle.setText(inboundtext);
fdFirst.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 3;
if ( Count == 3 )
//fdTitle.setText(inboundtext);
fdMiddle.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 4;
if ( Count == 4 )
//fdTitle.setText(inboundtext);
fdLast.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 5;
if ( Count == 5 )
//fdTitle.setText(inboundtext);
fdNickName.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 6;
if ( Count == 6 )
//fdTitle.setText(inboundtext);
fdEmail.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 7;
if ( Count == 7 )
//fdTitle.setText(inboundtext);
fdStreetAddress.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 8;
if ( Count == 8 )
//fdTitle.setText(inboundtext);
fdCity.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 9;
if ( Count == 9 )
//fdTitle.setText(inboundtext);
fdCounty.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 10;
if ( Count == 10 )
//fdTitle.setText(inboundtext);
fdCountry.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 11;
if ( Count == 11 )
//fdTitle.setText(inboundtext);
fdPostCode.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 12;
if ( Count == 12 )
//fdTitle.setText(inboundtext);
fdWebpage.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 13;
if ( Count == 13 )
//fdTitle.setText(inboundtext);
fdPhone.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 14;
if ( Count == 14 )
//fdTitle.setText(inboundtext);
fdFax.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 15;
if ( Count == 15 )
//fdTitle.setText(inboundtext);
fdMobile.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 16;
if ( Count == 16 )
//fdTitle.setText(inboundtext);
fdCompany.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 17;
if ( Count == 17 )
//fdTitle.setText(inboundtext);
fdCompanyAddress.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 18;
if ( Count == 18 )
//fdTitle.setText(inboundtext);
fdCompanyCity.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 19;
if ( Count == 19 )
//fdTitle.setText(inboundtext);
fdCompanyCounty.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 20;
if ( Count == 20 )
//fdTitle.setText(inboundtext);
fdCompanyPostCode.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 20;
if ( Count == 20 )
//fdTitle.setText(inboundtext);
fdCompanyCountry.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 20;
if ( Count == 20 )
//fdTitle.setText(inboundtext);
fdCompanyWebPage.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 21;
if ( Count == 21 )
//fdTitle.setText(inboundtext);
fdJobTitle.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 22;
if ( Count == 22 )
//fdTitle.setText(inboundtext);
fdDepartment.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 23;
if ( Count == 23 )
//fdTitle.setText(inboundtext);
fdOffice.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 24;
if ( Count == 24 )
//fdTitle.setText(inboundtext);
fdCompanyPhone.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 25;
if ( Count == 25 )
//fdTitle.setText(inboundtext);
fdCompanyFax.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 26;
Company = fdCompany.getText();
String comp = Company;
//System.out.println(Company);
if ( Count == 26 )
//fdTitle.setText(inboundtext);
fdPager.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 27;
if ( Count == 27 )
//fdTitle.setText(inboundtext);
fdCompanyIPphone.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 28;
if ( Count == 28 )
//fdTitle.setText(inboundtext);
fdSpouse.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 29;
if ( Count == 29 )
//fdTitle.setText(inboundtext);
fdGender.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 30;
if ( Count == 30 )
//fdTitle.setText(inboundtext);
fdBirthday.setText(inboundtext);
break;
while((s=br.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = s;
Count = 31;
if ( Count == 31 )
//fdTitle.setText(inboundtext);
fdAniversary.setText(inboundtext);
break;
no = new BufferedReader(new InputStreamReader(new FileInputStream("\\c:\\notes.txt")));
String n = "";
while((n=no.readLine()) != null )
//System.out.println("Data is " + s);
inboundtext = n;
Count = 32;
//taNotes.setText(inboundtext);
taNotes.append(n + '\n' );
First delete notes.txt
You always want to take a mirror image of what is in the box at that time
save that that to a new notes.txt*/
catch(IOException ie)
finally
try
if(br!=null) br.close();
catch(Exception e)
File name = new File("\\c:\\filename.txt");
if( name.isFile() )
try
BufferedReader input = new BufferedReader( new FileReader( name ) );
StringBuffer buffer = new StringBuffer();
String text;
while (( text = input.readLine() ) != null )
buffer.append( text + "\n" );
//buffer.append( buffer.toString() );
System.out.println(buffer);
inBoundtext.append( buffer.toString() );
catch( IOException ioException )
JOptionPane.showMessageDialog( this, "FILE ERROR", "FILE ERROR", JOptionPane.ERROR_MESSAGE );
setLayout(new GridLayout(1,1));
JPanel pane = new JPanel();
pane.setLayout(null);
//--------------NAME PANEL START----------------------------------------
lblNameInfo.setBounds(10, 10, 500, 50);
pane.add(lblNameInfo);
lblFirst.setBounds(20, 60 ,50 ,50);
pane.add(lblFirst);
fdFirst.setBounds(60, 70, 70, 30);
pane.add(fdFirst);
lblMiddle.setBounds(150, 60 ,50 ,50);
pane.add(lblMiddle);
fdMiddle.setBounds(200, 70, 70, 30);
pane.add(fdMiddle);
lblLast.setBounds(300, 60 ,50 ,50);
pane.add(lblLast);
fdLast.setBounds(350, 70, 70, 30);
pane.add(fdLast);
lblTitle.setBounds(20, 100 ,50 ,50);
pane.add(lblTitle);
fdTitle.setBounds(60, 110, 70, 30);
pane.add(fdTitle);
lblNickName.setBounds(150, 100, 70,50);
pane.add(lblNickName);
fdNickName.setBounds(220, 110, 70, 30);
pane.add(fdNickName);
lblEmail.setBounds(20,160, 100, 50);
pane.add(lblEmail);
fdEmail.setBounds(70, 170, 210,30);
pane.add(fdEmail);
pane_butLEFT.setBounds(10, 400, 50, 40);
pane.add(pane_butLEFT);
pane_butRIGHT.setBounds(450, 400, 50, 40);
pane.add(pane_butRIGHT);
pane_butAddOK.setBounds(160, 400, 70, 50);
pane.add(pane_butAddOK);
pane_butAddCANCEL.setBounds(240, 400, 90, 40);
pane.add(pane_butAddCANCEL);
pane_butSave.setBounds(340,400, 90, 40);
pane.add(pane_butSave);
pane_butNEW.setBounds(80, 400, 70, 40);
pane.add(pane_butNEW);
tabbedPane.addTab("Name", null, pane, "Name Information");
tabbedPane.setSelectedIndex(0);
//--------------NAME PANEL END----------------------------------------
//--------------HOME PANEL START----------------------------------------
JPanel pane2 = new JPanel();
pane2.setLayout(null);
//pane2.setLayout(new GridLayout(6, 6, 10, 10));
tabbedPane.addTab("Home", null, pane2, "Home Information");
lblHomeInfo.setBounds(10, 10, 500, 50);
pane2.add(lblHomeInfo);
lblStreetAddress.setBounds(10, 60 ,100 ,50);
pane2.add(lblStreetAddress);
fdStreetAddress.setBounds(100, 70, 150, 30);
pane2.add(fdStreetAddress);
lblCity.setBounds(10, 90 ,100 ,50);
pane2.add(lblCity);
fdCity.setBounds(100, 100, 100, 30);
pane2.add(fdCity);
lblCounty.setBounds(10, 120 ,100 ,50);
pane2.add(lblCounty);
fdCounty.setBounds(100, 130, 100, 30);
pane2.add(fdCounty);
lblCountry.setBounds(10, 150 ,100 ,50);
pane2.add(lblCountry);
fdCountry.setBounds(100, 160, 100, 30);
pane2.add(fdCountry);
lblPostCode.setBounds(10, 180 ,100 ,50);
pane2.add(lblPostCode);
fdPostCode.setBounds(100, 190, 100, 30);
pane2.add(fdPostCode);
lblWebpage.setBounds(10, 250 ,100 ,50);
pane2.add(lblWebpage);
fdWebpage.setBounds(100, 260, 330, 30);
pane2.add(fdWebpage);
lblPhone.setBounds(270, 60 ,100 ,50);
pane2.add(lblPhone);
fdPhone.setBounds(310, 70, 100, 30);
pane2.add(fdPhone);
lblFax.setBounds(270, 90 ,100 ,50);
pane2.add(lblFax);
fdFax.setBounds(310, 100, 100, 30);
pane2.add(fdFax);
lblMobile.setBounds(270, 120,100 ,50);
pane2.add(lblMobile);
fdMobile.setBounds(310, 130, 100, 30);
pane2.add(fdMobile);
pane2_butLEFT.setBounds(10, 400, 50, 40);
pane2.add(pane2_butLEFT);
pane2_butRIGHT.setBounds(450, 400, 50, 40);
pane2.add(pane2_butRIGHT);
/* pane2_butAddOK.setBounds(180, 400, 50, 40);
pane2.add(pane2_butAddOK);* -
HT201066 How can I split a long recording audio file into multiple audio files?
Hi,
How can I split a long recording audio file into multiple audio files?
With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
Thanks!Hello ingiorgio
You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out.
GarageBand - Split regions in the Tracks area
http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
GarageBand - Share songs to iTunes
http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
Regards,
-Norm G. -
How to display/navigate to specific record in a table with more then thousand records
Hi,
there is a task that I do not know how can be resolved.
There is a query that returns around 1 - 2 thousand records. And all those records have corresponding weight assigned.
After query executing it is necessary to navigate to the records with the highest weight assigned. It can be first record, it can be a record at the end or in the middle of the row set from thousand records.
I have used "DisplayRow"=selected or the code below, but it does not work properly ... when the record that we navigate is in the middle of record set from 2000 records, then users have to scroll down to it.
And I need to position to that specific record after query is executed.
So I used the code below:
public void onButtonClicked(ActionEvent actionEvent) {
DCBindingContainer bc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iterator = bc.findIteratorBinding("ViewVIIterator");
Row row = iterator.getCurrentRow();
String bestPosition = (String)row.getAttribute("BestPosition");
iterator = bc.findIteratorBinding("DetaillVIIterator");
ViewObject vo = iterator.getViewObject();
vo.setWhereClause(some_conditions);
vo.executeQuery();
RowSetIterator rowSet = iterator.getRowSetIterator();
Key key = null;
while (rowSet.hasNext()) {
row = rowSet.next();
if (row != null && ((String)row.getAttribute("weight")).equals(bestPosition)) {
key = row.getKey();
Key rowKey = row.getKey();
ArrayList tableRowKey = new ArrayList();
tableRowKey.add(rowKey);
this.getRangeTable().setScrollTopRowKey(tableRowKey);
break;
After the code above I getting the row selected or set as a current, but in case of 2000 records, when my record is in the middle of this record set, I need to scroll down to this record to see it.
And I wanted that I will be navigated to my record with records above and below.
What am I doing wrong above?
Thanks
AlexanderHi Timo!
thanks for the reply.
version info:
Oracle JDeveloper 11g Release 2 11.1.2.3.0
Studio Edition Version 11.1.2.3.0
Build JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1
IDE Version: 11.1.2.3.39.62.76.1
Product Version: 11.1.2.3.39.62.76.1
1. sorting order is already applied and we to position to a specific record in af:table.
From another side the task can rephrased: I need to position to a specific record and I need to be able to show 500 records before and 500 records after.
So where clause can be like:
:bestPosition > position - 500 and :bestPosition < position +500.
2. I tried to apply your second approach and found that record is selected, but I need to scroll to it down. It happens when first 20 records are displayed in af:table and my record is 480 records below ...
Alexander -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
In Pages 5.0 How do I change the highlight color?
In Pages 5.0 How do I change the highlight color?
Oh! I understand now. See screenshot below. It's called "Character Fill Color":
-
How to find the number of records per months in cube
Hi,
how to find the number of records per months for my all cubes?
Can i use the ListCube transaction to find totl number f records per cube monthwise ?
JimmyHi,
Here is a program to generate no of records and list of ODS and Cubes in Active version.Schedule this program in background and create a cube to load this information and schedule to the data from the file generated by the program. Schedule this all per you requirement.
1.Copy the code into your Z<programname> from Se38.
2.change the FILENAME in CALL FUNCTION 'GUI_DOWNLOAD' in the program to the location from where you can pick the information to load data to cube(eg Application server).
3.Save program.
4.Schedule the program in background as required
5.Create cube with infoobjects to hold no of records and Infoprovider name
6.Load this cube based on event after the program job is done.
Hence you can report on this cube to see no of records in CUBE or ODS in your box.
Please find the code below.
Cheers,
Kavitha Kamesh.
types: begin of itabs ,
tabname type dd02l-tabname,
end of itabs.
data: itab type itabs occurs 0 with header line.
data: counter type i.
data: begin of itab1 occurs 0,
tabname type dd02l-tabname,
counter type i,
end of itab1.
DATA: ITABTABNAME TYPE STRING.
DATA: LENGTH TYPE I.
DATA: OBJECT(30).
data: str(6) type c.
select tabname from dd02l into table itab where ( tabname LIKE '/BIC/F%' or tabname LIKE '/BIC/A%00' )
and TABCLASS = 'TRANSP' and AS4LOCAL = 'A'.
loop at itab.
select count(*) from (itab-tabname) into counter.
str = itab-tabname.
if str = '/BIC/F'.
LENGTH = STRLEN( ITAB-TABNAME ).
SHIFT itab-tabname BY 6 PLACES LEFT.
ELSEIf str = '/BIC/A'.
SHIFT itab-tabname BY 6 PLACES LEFT.
LENGTH = STRLEN( ITAB-TABNAME ).
LENGTH = LENGTH - 2.
endif.
itab1-tabname = itab-tabname(LENGTH).
append itab1.
itab1-counter = counter.
clear itab-tabname.
clear: COUNTER.
endloop.
*********** itab1
loop at itab1.
write:/ itab1-tabname, itab1-counter.
endloop.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
FILENAME = 'c:records.xls'
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = ','
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* IMPORTING
* FILELENGTH =
TABLES
DATA_TAB = itab1
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
How to find the number of records in ods?
how to find the number of records in ods?
Pls suggest the solution apart going to the table of ods and seeing the number of records.
Is there any program or function module to see the number of records in ods?
For eg: SAP_INFOCUBE_DESIGNS is a program which gives the detail (number of records) of infocube.Hi,
I was looking at this and found the following tables that may be of help.
One of these tables will include a summary of the record count of all the tables in your system based on the last time each table had it's database statistics calculated:
DBSTATTADA
DBSTATTDB2
DBSTATTDB4
DBSTATTDB6
DBSTATTINF
DBSTATTMSS
DBSTATTORA
We run on an Oracle database so the table record counts can be taken from DBSTATTORA. Type in AZ in table selection field in SE16 to restrict the output to ODS (or DSO) tables only.
The record count is at the time indicated in the timestamp field. Obviously this is not real time but should not be too out of date - if it is you may be having performance issues and should get your DBA / Basis to run a full refresh of DB stats.
Hope this helps, alhtough not real time the table should give you a decent indication of the size of all your ODS objects (or any other table for that matter!) -
How to find total no of record in cube
Hi Experts,
How to find total no of records in a cube.
Thanks in Advance.Hi
If you want total number of records in a CUBE then you have to check in both F Table and E table.
Go to LISTSCHEMA tcode in your system, give your CUBE name and execute.
You will fine two table E and F table
goto SE16 -->give the table name and click on number of entries.You will get number of records.
Check the below thread
No of records in /size of Info cube
Regards,
Venkatesh -
Although my ipod shows the number of steps, calories, and time, it no longer is saving it to the history. Also when I open the history it takes me to May 2010 instead of the current date. Any ideas on how to get it to start recording the history again?
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try another cable
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
The missing apps could have been done by setting the Restrictions that can hid those apps. If the backup was made with those retrictions set the the Restrictions are also restored.
Thus, if you get it to work restore to factory settings/new iPod, not from backup
You can redownload most iTunes purchases by:
Downloading past purchases from the App Store, iBookstore, and iTunes Store -
I was trying to make a new screen recording using quicktimeplay, but when I watched the video after recording it all I could hear was me talking while the video was showing on the screen. How do I turn off that recording and turn the right one on? thanks
Hi j2399123,
It sounds like your screen recording is doing what it was designed to do, capture what is happening on your screen, with optional voice over with the microphone.
Screen recording is for recording what you see on the screen, it is not a "video capture" option, like for capturing a movie with sound that is playing on your screen.
For the QuickTime recording options, check out "Recording with QuickTime Player" in
Mac Basics: QuickTime Player creates, plays, edits, and shares video and audio files
http://support.apple.com/kb/ht4024
And for screen recording specifically, there's
QuickTime Player 10.x: Record your computer’s screen
http://support.apple.com/kb/PH5882
Thank you for thinking of Apple Support Communities for your support needs.
Nubz -
How to refresh after delete the records in ALV report ?
Hi Friends,
How to refresh after delete the records in ALV report.
I am deleting records in ALV report .
After successful delete the screen should refresh.
u201C Deleted records should not appear in the screen u201C.
Please guide me.
Regards,
SubashHi subhash,
FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
WHEN 'BACK'.
Refresh the internal table from the ALV grid
PERFORM update_alv_tab.
ENDFORM. "user_command
FORM update_alv_tab .
DATA : e_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = e_grid.
CALL METHOD e_grid->check_changed_data.
"update_alv_tab
CALL METHOD e_grid->refresh_table_display.
ENDFORM. " UPDATE_ALV_TAB
Then see in Debug mode is it updating or not..
Please confirm .
And please paste the code if you can.
Regards. -
How can I use zoom while recording on my iPhone 4S?
How can I use zoom while recording on my iPhone 4S?
Christina_319 wrote:
How can I use zoom while recording on my iPhone 4S?
You can't change the zoom while recording. -
How can I copy an audio recording in Skype?
I have an audio recording of one of my contacts on Skype.
Can you tell me if there is a way to copy this recording to my hard drive and if so how?
Can I do it with MP3 Skype Recorder 4.11 and if so how? Where would it be recorded to if I can do it this way?
Any help with this will be really appreciated
HBI already have a Skype recorder for any incoming or outgoing Skype or telephone calls. I use MP3 Skype Recorder for that. What I'm trying to achieve is different.
I have an existing voicemail message in Skype itself from one of my Skype contacts. It is this voicemail message that I want to save to my hard drive somewhere so there is no chance of me losing it in Skype itself.
I right clicked on the recording and there is an option in the context menu to 'Copy Message.' I clicked on this but I don't know where to save it to on my hard drive so I can play it whenever I want from there as a file.
I would also like to know if there is any way to change this voicemail message to another file format to play on my hard drive.
Can anybody help me with this scenario please?
Thanks
HB
Maybe you are looking for
-
I can't seem to find autodance, I've tried searching it but it is not there and I also searched in categories butit was not there and I really want autodance.
-
Questions about Adobe Muse CC single-app membership.
When speaking to adobe customer service reps about Adobe Muse I feel like their taking me around in circles. My annual membership to the current Adobe Muse is going to expire in June. So before I sign on for another year I had some basic questions th
-
Problem in calling webservice using https from livecycle designer
I want to call a webservice written in .net(c#) using https from livecycle designer.I can call webservice using http ,but when i try with https it is failing.If there any special configuration have to do in server for this ?I have already put cr
-
Password error when trying to connect icloud for PC to Outlook 2007
Hello, I have somme password problems when I try to connect to Outlook 2007 with ICloud 2.1.2 for PC on Windows 7 When trying to creating connection to Outlook, I have always the message: invalid password or AppliID. I try to disconnect, then reconne
-
Restoring corrupted files in Premiere due to unknown error
Got a big problem. I had a project open in Premiere and everything was fine. While doing something else leaving the job on the screen, it "lost" the harddrive, so the whole thing was still on screen but not online anymore. So I restarted the pc and t