Insert row with same formatted cells
I am a newbye with Numbers.
I have created a spreadsheet with some columns and every cell formatted, such as a list or a box to check.
Until now every time I have inserted a new row the system create a row with the same formattated cells,
now the system insert a blank row without formattated cells.
Please, help me! Thanks.
Vin,
Being new to Numbers, you should read the Numbers User Guide, available as a free download from the help menu.
The problem you are experiencing may be in another column. The condition that Barry mentioned, having the same expression or special format in every body row, applies to every column in the table.
Jerry
Similar Messages
-
Is it possible to insert row with timestamp field without to TO_TIMESTAMP
hello
is it possible to insert row with timestamp column without using to_timestamp unction
somthing like insert into app.master values (3,333, 'inser tmstmp', 6.7, '2010-11-10 15:14', 'f','9','2010-12-22')784633 wrote:
hello
is it possible to insert row with timestamp column without using to_timestamp unction
somthing like insert into app.master values (3,333, 'inser tmstmp', 6.7, '2010-11-10 15:14', 'f','9','2010-12-22')If you don't like the answers in your previous thread (Re: how can i set timestamp format don't expect to get different answers just because you start a new thread. -
Transient VO insert error-Attempting to insert row with no matching EO base
Hi ,
I have a transient Vo (created using option - rows populated programmatically, not based on Query) and I need to uptade/insert rows in vo on click of a button.
when i nsert row, i get following error
oracle.jbo.InvalidOperException: JBO-26020: Attempting to insert row with no matching EO base
This is what I am doing in my code
ViewObject vo2 = am.findViewObject("TransientVO1");
vo2.executeQuery();
if (vo2 == null) {System.out.println("vo2 is null");}
if (vo2 != null)
System.out.println("in vo2 != null");
Row row2 = vo2.createRow();
row2.setAttribute("PlatformName", "ss");
row2.setAttribute("UserName", "ss");
vo.insertRow(row2);
System.out.println(" vo2.getRowCount()"+ vo2.getRowCount());
Why is it saying no EO base... is it mandatory to have EO for transient VO? Please help.
ThanksThe EO handles all DML, hence you need it if you have to set attributes in a VO. An EO handles the storage of a the single row (or part if your VO consists of multiple tables).
You can try and overwrite the setter method of the attributes in ViewRowImpl class and store the changes somewhere else.
Timo -
Seperate Document Row with same account when post GL
Hello everyone
How I can seperate Document Row with same account when post GL
because If I post dcoument that have many rows but same account and difference detail. It will sum amount for same account in JE
and I found that will seperate if it has diference project code but it's not enough for me.
How I can config SAP B1 to seperate Doc row when post to JE if it has difference detail (as userfield or standard filed)
Sorry for my poor english
Thank,SeangHello Suthee,
Sorry to tell you, it is not possible to do so in current B1 without addon development.
There are 2 alternative.
1.Consulting Workaround:
Seperate the Item into 2 items, the account into 2 sub accounts.e.g.
Item A => Item A01 and A02
G/L Account 1001 => Sub Account 100101 and 100102
2.AddOn development to seperate the JE just after it is created document
You can update to JE to seperate just after JE are created by docuemnts.
Just Listen FormDataAdd Event.
Sample Code:
Private Sub FormDataEventHandler( _
ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, _
ByRef BubbleEvent As Boolean) Handles oApp.FormDataEvent
'I just listen 133 - AR invoice here,
'You may add the target documents
'Before action = true, start the transation
If BusinessObjectInfo.FormTypeEx = "133" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
Or BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) _
And BusinessObjectInfo.BeforeAction = True Then
oCompany.StartTransaction()
End If
'Before Action = false,
'Update the JE in document
'Succeed, commit, otherwise rollback
If BusinessObjectInfo.FormTypeEx = "133" _
And (BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD _
Or BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) Then
If BusinessObjectInfo.BeforeAction = False And BusinessObjectInfo.ActionSuccess Then
Dim xmlDoc As System.Xml.XmlDocument = New System.Xml.XmlDocument
xmlDoc.LoadXml(BusinessObjectInfo.ObjectKey)
Dim objectKey As String
objectKey = xmlDoc.SelectSingleNode("//DocEntry").InnerText
Dim oDocument As SAPbobsCOM.Documents = Nothing
oDocument = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
If oDocument.GetByKey(CInt(objectKey)) Then
Dim oJE As SAPbobsCOM.JournalEntries
oJE = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oJournalEntries)
If oJE.GetByKey(oDocument.TransNum) Then
'*Add you code to Update oJE lines here*
lRetCode = oJE.Update
If 0 <> lRetCode Then
oApp.MessageBox("Failed to update JE")
'roll back the whole transaction, including the document
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
Exit Sub
Else
'Commit the transaction
oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_Commit)
End If
End If
End If
End If
End If
End Sub
Hope it helps. Thanks.
Kind Regards
-Yatsea -
JBO-26020: Attempting to insert row with no matching EO base
Hi All,
I have a bit of a problem here. The following is some background information. Please help if possible.
Aim: I have a custom application whereby I need to add the sequence value (assuming the sequence.nextval is already taken and stored into a variable/original table) to my custom table.
Procedures taken: I have found the EO which gets the sequence value for the original application and the VO that gets the EO. I have added both EO and VO to my project and tried to add the VO to my custom AM. In my custom AM I have added the following code to initialize the create function of the standard EO:
**********CODE******************
OAViewObject vo3 = (OAViewObject)getRegRequestsVO1();
if (!vo3.isPreparedForExecution())
vo3.executeQuery();
Row row = vo.createRow();
vo3.insertRow(row);
row3.setNewRowState(Row.STATUS_INITIALIZED);
Problem: However when I use the code vo3.insertRow(row); it prompts me with the applicaiton error of JBO-26020: Attempting to insert row with no matching EO base. I don't quite understand what I am doing wrong.
Can anyone please help.
CheersThis i have find out .
FYI...
JBO-26020: InvalidOperException
Cause: The application code tried to take a row from one row set (or view object) and insert it into another row set (view object). In response, the framework will make a "copy" of the row in the new row set. This new row will share references to the underlying entity objects. However, if the source and destination row sets do not share any entity object bases at all, this operation will fail as it does not find any entity rows to share.
Action: When attempting to take a row from one row set and insert into another, make sure that they share at least one entity object base.
Thanks -
Display a column as row with same row names.
Hi,
My belwo query displaying o/p in this format.I need to conver a row with appriate colmn value (see the required o/p).
could some help.
current o/p
TEST_SESSION_ID ROSTER_DOMAIN_NAME TO_CHAR(A.SCORE) SEM
4087 AR - Integers and Fractions 5.148757270620481 1
4087 AR - Decimal Numbers 5.5597596042656825 2required o/p format
TEST_SESSION_ID AR - Integers and Fractions AR - Decimal Numbers sem-AR - sem
Integers and Fractions AR - Decimal Numbers
4087 5.148757270620481 5.5597596042656825 1 2ROSTER_DOMAIN_NAME are not staticks.I tcould be increase .some times it could have 20 names.Since i can t use decode or case with statically .can some one help on this.
query
SELECT a.test_session_id,c.roster_domain_name,to_char(a.score),a.sem FROM
test_session_detail a,test_session b ,test_detail c
WHERE a.test_session_id = b.test_session_id
AND c.test_detail_id = a.test_detail_id
AND exists (
select td.test_detail_id
from test_detail td
where domain_map_id is not null
and c.test_detail_id =td.test_detail_id
and domain_map_id in('303','306','305','304'))
AND b.test_session_id in ('4087')
AND domain_group_id NOT IN (
SELECT domain_group_id
FROM test_session_detail a,test_session b
WHERE a.test_session_id = b.test_session_id
AND a.domain_group_id is not null
AND b.test_session_status_id = 4
AND a.test_session_status_id <> 3
AND b.test_session_id IN ('4087'))Ok, the problem here is that you want a dynamic pivot of data and you also want to use some of the data as the column names.
SQL requires that the columns to be retrieved are known at query parse time, i.e. before any data is fetched, so it's not easily possible to have dynamic column names done in a single query.
The general steps in executing a query are...
1. Submit SQL query (Open Query)
2. SQL Query Parsed
3. SQL Query Executed
4. Row Fetched
5. Repeat step 4 until no more rows
6. Close QuerySo, as you can see no data is fetched until step 4, but, at Step 2, the SQL engine needs to have parsed the query and already know what columns and data types are going to be returned.
An example of how something similar can be achieved is given on this thread:
How to pipeline a function with a dynamic number of columns?
But that may be a little too complex to implement.
What you are really wanting is something at the front end reporting side of things.
Ideally, this is the task of a reporting tool, not of the SQL engine which is retrieving the data. -
Strange Behaviour: Inserting Rows with OrdVideoDomain using JDeveloper
Dear Sirs...
i created two tables each containing OrdVideoDomainField.
i use the same function to fill the rows with values. the code is like this:
ViewObject V=GetViewObject(V);
Row R=V.CreateRow();
byte b[]=new byte[10];
OrdVideoDomain O=new OrdVideoDomain(b);
R.setAttribute("f",O);
R.setAttribute("name",AnyName);
V.insertRow(R);
R=null;
GetTransaction.postChanges(); // gets the appmodule and then gets the transaction object within and finally posting the change
GetTransaction.commit();
When i use the function of the viewobject A, all the data is stored correctly when dealing with table A. But when dealing with table B, all the data are stored correctly but the OrdVideoDomain field is filled with null. i get no error at all.
i checked the names of the fields in the tables, and they are correct.
i tried to upload files into both tables and these are working perfectly fine.
i tried to get the data from both tables and they are working perfectly fine.
the problem is only when i store data programatically into the table b.
does any one have a similar problem?
how to solve it?
i am using ADF UIX in jdeveloper 10g 10.1.2 with oracle database 10g release 2 and both are under windows.
thanks for any help in advance
best regardsSorry, i have found the problem, it is a programming error
best regards -
Grouping consecutive rows with same value?
Hi
I have a table in which three columns are:
ROWID SHOPNAME
1 SHOP_C
2 SHOP_A
3 SHOP_C
4 SHOP_C
5 SHOP_A
6 SHOP_A
7 SHOP_C
8 SHOP_B
9 SHOP_B
10 SHOP_E
11 SHOP_A
12 SHOP_D
13 SHOP_D
14 SHOP_F
15 SHOP_G
16 SHOP_F
17 SHOP_C
18 SHOP_C
19 SHOP_C
20 SHOP_C Rowid is a primary key column with unique ids
Shopname is varchar2 column
I want to make groupings of every "shopname" value "order by ROWID" such that when there are consecutive rows of same shopname the group remains same and as soon as there is different value in shopname column for the next row the "group" changes.
below is my desired output is with 3rd column of groupings as follows:
ROWID SHOPNAME Groups
1 SHOP_C 1
2 SHOP_A 2
3 SHOP_C 3 ------> same grouping because Shop name is same
4 SHOP_C 3 ------> same grouping because shop name is same
5 SHOP_A 4 ----> different shopname so group changed.
6 SHOP_A 4 ----> same group as above because shopname is same
7 SHOP_C 5
8 SHOP_B 6
9 SHOP_B 6
10 SHOP_E 7
11 SHOP_A 8
12 SHOP_D 9
13 SHOP_D 9
14 SHOP_F 10
15 SHOP_G 11
16 SHOP_F 12
17 SHOP_C 13
18 SHOP_C 13
19 SHOP_C 13
20 SHOP_C 13I want that to be done via analytics, so that I can partition by clause for different shops over different cities
regards
Ramis.with data(row_id, shop) as
select 1, 'SHOP_C' from dual union all
select 2, 'SHOP_A' from dual union all
select 3, 'SHOP_C' from dual union all
select 4, 'SHOP_C' from dual union all
select 5, 'SHOP_A' from dual union all
select 6, 'SHOP_A' from dual union all
select 7, 'SHOP_C' from dual union all
select 8, 'SHOP_B' from dual union all
select 9, 'SHOP_B' from dual union all
select 10, 'SHOP_E' from dual union all
select 11, 'SHOP_A' from dual union all
select 12, 'SHOP_D' from dual union all
select 13, 'SHOP_D' from dual union all
select 14, 'SHOP_F' from dual union all
select 15, 'SHOP_G' from dual union all
select 16, 'SHOP_F' from dual union all
select 17, 'SHOP_C' from dual union all
select 18, 'SHOP_C' from dual union all
select 19, 'SHOP_C' from dual union all
select 20, 'SHOP_C' from dual
get_data as
select row_id, shop,
lag(shop) over (order by row_id) prev_shop
from data
select row_id, shop,
sum(case when shop = prev_shop
then 0
else 1
end
) over (order by row_id) grps
from get_data;
ROW_ID SHOP GRPS
1 SHOP_C 1
2 SHOP_A 2
3 SHOP_C 3
4 SHOP_C 3
5 SHOP_A 4
6 SHOP_A 4
7 SHOP_C 5
8 SHOP_B 6
9 SHOP_B 6
10 SHOP_E 7
11 SHOP_A 8
12 SHOP_D 9
13 SHOP_D 9
14 SHOP_F 10
15 SHOP_G 11
16 SHOP_F 12
17 SHOP_C 13
18 SHOP_C 13
19 SHOP_C 13
20 SHOP_C 13
20 rows selected -
Creating report with 365 col & rows with same headings
Iam facing a problem while creating a report.
I have to generate a report which is having dynamic columns and rows
For Eg. In this report I have total 365 columns (M1 to M365)depends up on the user he can generate the report for 2 or 3 or may be 365 columns and rows also dynamic. If Product code are more then it will proceed printing in next page.In the next page also he will get same column headings.I am not able to decide the table for that can you sugest some table for that.
Example
Product code Desc M1 M2 M3 M4......M365
PL1 PD1 1 2 4 3 10
PL2 PD2 2 3 4 5 6
null- How do I make sure that the relationship is not one to many?
You don't. That's the nature of the data. For example a single person can order multiple items. A simple one to many relationship.
- In the link tab, I can only point to queries, is there a way I can point the fields to report params?
You should be seeing tables... I think you're having a tough time with the basic terminology.
- How does these Enforce Joins (4 options) work.
There is rarely if ever any reason to switch from the default "not enforced". Leave it alone. The only one you'll touch 90% of the time is the Join Type.
PAP,
Based on the questions you're asking, it sounds like you are missing some major database fundamentals. My suggestion would be to step away from CR for the time being and read a little bit about relational databases (what makes them relational) and database normalization. This will also give you an idea about the various join types and when to use one over the other.
You can know every feature and function in CR, but until you have at least a basic knowledge of how data relates, you'll never pull in the data you need.
Jason -
Insert row with datapages/bc4j problem with primary key
Hi everybody,
i tryed to insert a new row into a table with primary key (id) and therfore used a datapage, where there is a html-form and the data tag set attribute to get the data into the BC.
I also want to use a sequence for the primary key and made a trigger to insert the key-value before insert. but in this case it doesnt work. I also tryed to get the sequence to the BC -Layer (so that i can set the PK in the View OBJ already) with a View Object but I dont know how.
so what schould i do??
thanxx
MartinThere's a know issue, when creating a record with blob, the blob content won't show until committing. The blob is added too late, which means you're in trouble with not-null fields...
Sue, is this logged as a bug? And the dialog captions?
K. -
How to use insert row with BLOB to Oracle when use connection pool?
Hi, All,
I am writing a program to store files (mapped to be a column with BLOB datatype
in the table) to Oracle database.
But I always get java.lang.ClassCastException:weblogic.jdbc.rmi.SerialBlob
Here is my code, please help. Thanks a lot!!
String sqlNewRow = "insert into documents (id, companyid, updatedate, description,
document, addby, title) ";
sqlNewRow += "values (?, ?, TO_DATE(?, 'MM/DD/YY'), ?, EMPTY_BLOB(), ?,
con.setAutoCommit(false);
ps = con.prepareStatement(sqlNewRow);
ps.setInt(1, documentid);
ps.setInt(2, companyid);
ps.setString(3, updatedate);
ps.setString(4, description);
ps.setString(5, username);
ps.setString(6, filename);
ps.executeUpdate();
ps.close();
String sqlLockRow = "select document from documents where id = ? for update";
java.sql.PreparedStatement pst = con.prepareStatement(sqlLockRow);
pst.setInt(1, documentid);
java.sql.ResultSet rset = pst.executeQuery();
rset.next();
java.sql.Blob dbBlob = rset.getBlob(1);
out.println("it's=" + dbBlob.getClass());
OutputStream dbBlobOut = ((weblogic.jdbc.vendor.oracle.OracleThinBlob)dbBlob).getBinaryOutputStream();
dbBlobOut.write(oneString.getBytes());
dbBlobOut.close();
rset.close();
pst.close();Have you defined
OutputStream dbBlobOut
as weblogic.jdbc.vendor.oralce.OracleThinBlob?
Mitesh
Almond wrote:
Hi, All,
I am writing a program to store files (mapped to be a column with BLOB datatype
in the table) to Oracle database.
But I always get java.lang.ClassCastException:weblogic.jdbc.rmi.SerialBlob
Here is my code, please help. Thanks a lot!!
String sqlNewRow = "insert into documents (id, companyid, updatedate, description,
document, addby, title) ";
sqlNewRow += "values (?, ?, TO_DATE(?, 'MM/DD/YY'), ?, EMPTY_BLOB(), ?,
con.setAutoCommit(false);
ps = con.prepareStatement(sqlNewRow);
ps.setInt(1, documentid);
ps.setInt(2, companyid);
ps.setString(3, updatedate);
ps.setString(4, description);
ps.setString(5, username);
ps.setString(6, filename);
ps.executeUpdate();
ps.close();
String sqlLockRow = "select document from documents where id = ? for update";
java.sql.PreparedStatement pst = con.prepareStatement(sqlLockRow);
pst.setInt(1, documentid);
java.sql.ResultSet rset = pst.executeQuery();
rset.next();
java.sql.Blob dbBlob = rset.getBlob(1);
out.println("it's=" + dbBlob.getClass());
OutputStream dbBlobOut = ((weblogic.jdbc.vendor.oracle.OracleThinBlob)dbBlob).getBinaryOutputStream();
dbBlobOut.write(oneString.getBytes());
dbBlobOut.close();
rset.close();
pst.close(); -
Update of JTable after inserting row with beans binding
I have a little problem. When i create a little app with netbeans which uses the beansbinding with a table it is not possible to get updates of the list into the table.
i use nearly the same methods as if i create a database application with the wizzard. The only difference i see (so far) is that i don't use the Swing application framework.
if i try to repaint the table or the ScrollPane, nothing happens. The list is changed but not the table....You should be updating the TableModel, not the "list". When you update the model it will notify the table to repaint itself.
-
Macro/VBA script to merge rows with same values in another column
Hi.
I'm developing a dance competition application, using Excel 2010, and have so far managed to put judges' marked scores into a worksheet through a userform.
Now I would like to make the worksheet more presentable as a scoreboard, as you would manually, but via VBA scripts.
Exhibit Numbers (Column G) are unique identifiers (per competition) for contestants and each contestant is typically judged by three judges. The scores in three separate categories from one judge would spread in one row so each contestant would have three
rows.
I would like to merge rows of columns where the totals from the judges go (Columns P to U) for each contestant.
I've considered using some kind of loop but I don't have enough experience in vba scripting, it gets overcomplicated. Could someone please help?
Many thanks.
Maki Koyama (Canberra, AUS)Hi,
You cannot add a static "Y" inside a when looping over "i". You need to ensure that "Y" changes along with X. Try the modified code below.
List elements = new ArrayList();
for (int i=0; i<XXX; i++) {
IZZZ.IVisibilityElement el = wdContext.createVisibilityElement();
el.setVisAttr(i); // Change Y to i
elements.add(el);
wdContext.nodeVisibility().bind(elements);
That should give you an idea of what is erroneous in the code.
Thanks.
HTH.
p256960 -
How to identfy rows with same column value
Hi
I have a table student
id ( pkey)
name
class
marks
i need to check the existence of duplicate values like
say the values are :
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
i need to know if there is any matching row in the table --- like in this case id=1 and id=3 have same value for all the columns except for id .
so the result shud tell me the ids which have duplicate values for name , class , marks and also those ids for which there is no duplicacy
for id= 1 i see that id= 3 has same values
and id=2 has no duplicates
how do i show it ??
The result i expect is
name class marks count
alan 6 85 2
victor 4 97 1
Message was edited by:
SHUBHEMP
id name class marks
1 alan 6 85
2 victor 4 97
3 alan 6 85
You can use a self join to pull out the data which are almost duplicate without a column values here in this example without id the first and third records are duplicate.
select e.id,e.name,e.class,e.marks from EMP e,EMP d where e.name=d.ename and e.class=d.class and e.marks=d.marks and e.id<>d.id; -
Easy way to create a register (duplicate boxes with same formatting, diffrent text)
I'm trying to create like a register over about 200 people with information about name, age, adress and so on. I wonder if there is a function that formattes this easely?
As i see it, the pages will consist of like 20 boxes, all with the same layout but with some of the text diffrent. Lets say that after ive created like 40 of these, i see that i need to change i.e. the fonttype, i dont want to do it 40 times, one for each of the boxes.
I think the boxes will be somthing like this:
Name: <Firstname> <Lastname>
Age: <Age>
From: <Adress>
School: <School>
Sorry for my bad englishhttp://layersmagazine.com/using-the-next-style-paragraph-feature-in-indesign.html
http://blogs.adobe.com/indesignchannel/2007/11/real_world_apply_next.html
Perhaps these tips will help
Maybe you are looking for
-
I'm having trouble with syncing my iPod to my computer.
I'm having trouble with syncing my iPod. It gets stuck on the last step saying, "Waiting for changes to be applied." It's been doing this for the last half hour. Is there anything I can do to correct this or is am just going to have to restore my iPo
-
How to show health app data points as a graph
Some data points form a graph and others do not.
-
I'm having a bit of a difficulty animating a shadow. I have several pieces of art on the stage with a shadow on them. I have them on a tween, that will enlarge them (one at a Time) from there current state (100%) to (300%). What I'm trying to do is a
-
Airport Express not working properly since 4.2 update
I use AE for Airtunes and it worked great until the 4.2 update several months ago. Since then it the light has remained solid amber unless I unplug it and then plug it back in. After doing this, it will remain green and connected while it is being us
-
MacBook Pro (June 2010) freezing with screen turned off (not sleep)
Hi. This issue has happened to me two times now. I recently bought a Macbook Pro 13 inch and the problem has happened when I let the computer sitting there without moving anything with its lid opened, after like 20 minutes when i'm going to use it ag