Table Madness in DWT
Hi,
I'm on DW CS3 on an intel Mac. And I'm trying to get my
bottom text links streamlined to look tighter, but somehow, there
is some inserted space that vertically separates the rows of text
links a lot further apart than I'd like.
I've even got the vertical lengths set to 11 pixels in EVERY
cell and DW still puts that space there. I know that I'm missing
something very basic and I'm a Frontpager convert to boot, so
you're dealing with minor leagues at best here.
Here's the link:
Frank Bright
Website
Please tell me what I'm doing wrong....Many Thanks, Frank
B.
> I can't seem to change any text properties in the
Properties box without
> it
> ADDING to styles, rather than replacing them. Now, I'm
no expert on CSS,
> to put
> it mildly, and I don't profess to be a coder by any
means.
This means that you are using CS4 with DMX methods. Get out
of the habit of
using the Property inspector to make these changes. Always
edit the CSS
instead.
> I don't profess to be a coder by any means
If you want to use DW effectively, this will have to change.
> I'm fine to let tables be my method here and maybe find
a way to clean
> things
> up, if that's at all possible.
I'm sure it is.
> If there seems to be no way to do that, I may hire a web
designer to do it
> right. I'm more of a professional musician trying to use
the web as a tool
> and
> I don't want to get caught up into being a
half-professed web designer who
> happens to be a musician.
I think you may be on the right track here. If you would like
to contact me
offlist you can do so at -
forums at great-web-sights dot com
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"brightbelt" <[email protected]> wrote in
message
news:[email protected]...
> Thanks Murray for replying,
> Well this is a bit of a story - at first, I brought this
over and imported
> it
> directly from Frontpage 2003. After having troubles and
seeing how
> jumbled and
> twisted the code had become (you should have seen it
then), I started
> again
> from scratch in DW CS3, if you can believe it.
>
> I made a new web, and made brand new pages but I did
copy and paste much
> of
> the content over from what I had before, so perhaps some
of the jumbled
> code
> came with it all over again. I don't know for sure.
>
> I can't seem to change any text properties in the
Properties box without
> it
> ADDING to styles, rather than replacing them. Now, I'm
no expert on CSS,
> to put
> it mildly, and I don't profess to be a coder by any
means.
>
> I'm fine to let tables be my method here and maybe find
a way to clean
> things
> up, if that's at all possible.
>
> If there seems to be no way to do that, I may hire a web
designer to do it
> right. I'm more of a professional musician trying to use
the web as a tool
> and
> I don't want to get caught up into being a
half-professed web designer who
> happens to be a musician.
>
> Many Thanks, Frank B.
>
Similar Messages
-
Can I use Word tables in InDesign? Any way to import tables made with Word?
Hi, I'm new here... Well, the title says it all: I need to use (basically unchanged) nearly 100 tables from a book made recently with Word... Can I import them?
It wouldn't be a problem making one new one (lines, etc...) with InDesign and then fill with text, but... why repeat 100 different tables (that's my case) already done I can use without changes... There must be a way to at least place a Word table into an ID document... Thanks for all kinds of comments!OK, this looks like great news for me... So I understand ID places the Word table, and once inside ID, indeed ID sees it as a table you can vary... Is there any basic menu to vary one imported table, or is it a graphic (mouse) thing? I really appreciate your advice, Bob... I don't have much experience with tables in ID... For example, how can I make the whole table smaller? Only by varying the placing of the lines one by one, or can I make it smaller in the way we make a jpg smaller?
-
CS4 .html files made from .dwt lose all formatting in broswer
Hello all,
I've been working to customize a template I found online, then create a site based on that template. I've got the template visually worked to where I want it. However, any page that I create using the .dwt file is broken (loses all formatting) when viewed in a browser (Firefox or IE).
I can't figure out where I've gone wrong. When it happened the first time I figured I mucked up the template code when I was customizing (very little customizing, really just changing menu item names and adding a contact form). I started over from the beginning and it is happening again. All suggestions are appreciated. Screenshots of the the problem follow. First is the .html file created from my template in design view in CS4. Second is the page viewed in IE, all formatting lost.
MattSome attachments never see the light of day if you use the attachment method. You really need to use the small camera icon in the top toolbar.
However, in this case, seeing a picture isn't going to work, people need to see the live page to try and troubleshoot your problem otherwise it's all a guessing game :-)
Just a guess here, if you are seeing the page correctly in Dreamweaver, and the formatting seems to disappear when you upload the page, then I can only 'guess' that possibly the stylesheet isn't linked correctly,. or the stylesheet hasn't been uploaded, or something in the page or the stylesheeet is throwing your page out.
Nadia
Adobe® Community Expert : Dreamweaver
http://www.perrelink.com.au
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
http://csstemplates.com.au/
http://twitter.com/nadiap -
Modify a control table made by the Wizard
Hello,
I have long ago created a control table via the Wizard but today, I am asked to add a column to this table. I remember that back then, I added some validations in it and all but now, I try to add a column and the only thing the wizard does is to create a new table.
Of course, I don't understand most of the code that the Wizard created.... Is there a way to add that column the same way I have created the table and if not, what needs to be done and checked to be sure that this column will be as functional as the others.
Thank youHello,
I am into the same problem as yours. I tried adding a text field and column to the table control and also inserted the same field inside the Internal table structure. I am still into the process to check whether the field is working as per the other fields of the column. I 'll let you know if it works fine.
Regards,
Reema -
How can I insert data in different table dynamically?
I have one requirement ,In these I have transaction table in which payLoad contain data like employee record,PO record,SO record in XML format.Now I have transfer the data from transaction table to particular table(Emp,SO,PO) dynamical ? how can I do it.. Give me your suggestion guys?? Thanks in Advance
Hello,
Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
3> i made that association composite by clicking the checkbox
4> i created 2 VO from 2 EO.
5> put those VO in Application Module.
6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
Now what to do please? -
In ADF how can i insert data in multiple table if they have foreign key
I have started working on ADF and can anybody inform me in ADF how can i insert data in multiple table if they have foreign key,please?
Thnak you very much.Hello,
Still no luck.I am surely doing silly mistakes.Anyway,Here are my workings-
1> student_mst (id(pk),studentname) and student_guard_mst(id(fk),guardianname)
2> created EO from both of the tables,made id in both EO as DBSequence and an association was also generated.
3> i made that association composite by clicking the checkbox
4> i created 2 VO from 2 EO.
5> put those VO in Application Module.
6> dragged and dropped 2 VO on my jspx page and dropped them as ADF Form.
Now what to do please? -
Global temp table problem w/ODP?
I'm using the current version of the ODP .NET data adapter to access a global temporary table on an Oracle
9.2.0.4.0 server created with -
CREATE GLOBAL TEMPORARY TABLE euik_dex_open_tasks_temp1
(resource_id NUMBER,
task_assignment_id NUMBER,
task_id NUMBER,
incident_id NUMBER,
customer_product_id NUMBER,
inventory_item_id NUMBER,
contract_service_id NUMBER)
ON COMMIT DELETE ROWS
(See below for what is returned from the data dictionary for this table)
If I use SQLPlus to insert a row into this table, then query the table immediately, I see the inserted row.
If I use the same exact SQL through the ODP adapter, the ExecuteNonQuery statement returns the fact the 1 row was inserted. However, doing a SELECT from the table immediately after the INSERT, no rows are returned. See the .NET test ap, below.
Also, note that if I use a global temp table made with ON COMMIT PRESERVE ROWS, the ODP adapter works fine.
What am I doing wrong? Thanks in advance...
Pat
Private Sub TestTempTable()
Dim Str1 As New System.Text.StringBuilder
Dim Strx As New System.Text.StringBuilder
Dim StrOut As New System.Text.StringBuilder
Dim nInsert As Integer
Dim nRow As Integer
'Insert into the global temp table
Str1.Append("INSERT INTO euik_dex_open_tasks_temp1(resource_id, " & vbCrLf)
Str1.Append(" task_Assignment_id, " & vbCrLf)
Str1.Append(" task_id, " & vbCrLf)
Str1.Append(" incident_id, " & vbCrLf)
Str1.Append(" customer_product_id, " & vbCrLf)
Str1.Append(" inventory_item_id, " & vbCrLf)
Str1.Append(" contract_service_id) " & vbCrLf)
Str1.Append(" VALUES(1,2,3,4,5,6,7)" & vbCrLf)
Dim cn As New Oracle.DataAccess.Client.OracleConnection
Dim dr As Oracle.DataAccess.Client.OracleDataReader
Dim cd As New Oracle.DataAccess.Client.OracleCommand
Try
cn.ConnectionString = "Data Source=XXX;User ID=mickey;Password=mouse;"
cd.CommandType = CommandType.Text
cd.Connection = cn
cn.Open()
'Run the query to load data in the temp table
cd.CommandText = Str1.ToString()
nInsert = cd.ExecuteNonQuery()
MessageBox.Show(nInsert & " row(s) inserted.")
'See if there are rows in the temp table
Strx.Append("Select * from euik_dex_open_tasks_temp1")
cd.CommandText = Strx.ToString()
dr = cd.ExecuteReader
nRow = 0
While dr.Read
StrOut.Append(dr(0) & vbCrLf)
nRow = nRow + 1
End While
MessageBox.Show(nRow & " row(s) selected.")
Catch ex As OracleClient.OracleException
MessageBox.Show(ex.Message)
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
cn.Close()
End Try
End Sub
OWNER TABLE_NAME TABLESPACE_NAME CLUSTER_NAME IOT_NAME PCT_FREE PCT_USED
INI_TRANS MAX_TRANS INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS PCT_INCREASE
FREELISTS FREELIST_GROUPS LOGGING BACKED_UP NUM_ROWS BLOCKS EMPTY_BLOCKS AVG_SPACE
CHAIN_CNT AVG_ROW_LEN AVG_SPACE_FREELIST_BLOCKS NUM_FREELIST_BLOCKS DEGREE INSTANCES
CACHE TABLE_LOCK SAMPLE_SIZE LAST_ANALYZED PARTITIONED IOT_TYPE TEMPORARY
SECONDARY NESTED BUFFER_POOL ROW_MOVEMENT GLOBAL_STATS USER_STATS DURATION
SKIP_CORRUPT MONITORING CLUSTER_OWNER DEPENDENCIES COMPRESSION
APPS EUIK_DEX_OPEN_TASKS_TEMP1 10 40 1 255
1 1 NO N
1 1 N ENABLED NO Y N NO
DEFAULT DISABLED NO NO SYS$TRANSACTION DISABLED NO DISABLED
DISABLEDAndrew,
As David indicated if you do not wish to have "auto commit mode" you just need to use a transaction object to manually control the transaction.
I'm just nervous at the idea of ODP.NET initiating interactions I am not aware of.I think it would be more fair to say "finishing interactions" in this case rather than "initiating interactions" but you could always just run a SQL trace from the database to see exactly what is happening if you are concerned.
HTH,
- Mark
=======================================
Mark A. Williams
Oracle DBA
Author, Professional .NET Oracle Programming
http://www.apress.com/book/bookDisplay.html?bID=378 -
Search for a (sub)workarea in an internal table
Hi all gurus,
quite a simple question: I have an internal table made up of 100+ fields, and a workarea of the same type which is filled with some data.
I'd like to know what's the best, effective way to search if there's a line in the internal table which is equal to the above cited workarea.
I could compare specific fields:
READ TABLE itab WITH KEY f1 = workarea-f1 f2 = workare-f2 ....
IF sy-subrc = 0.
OK.
ELSE.
KO
ENDIF
and so on. But it's quite terrible to write such a statement when there are a lot of fields!
A refinement of the above request; I'd like to perform the above explained search EXCLUDING some specific fields from the comparizon, e.g. ,comparing fields from f3 to f98, ignoring f1, f2 and f99....
Is there a simple way to obtain the desiderata? Please provide example as in documentation I've read about a COMPARING ALL FIELDS clause, but didn't understand how to use it w.r.t. the READ TABLE statement.
Thanks!Hi,
In my opinion, practically I don't see such a table that needs to combine hundreds of fields to be key fields.
However, to meet your requirement, I guess there are several ways. But I just can think of one way that sounds a little bit workaround.
Here is the pseudo code:
data: itab_1 with fields from f1 to f99,
itab_2 with fields from f3 to f98,
wa_1 like line of itab_1,
wa_2 like line of itab_2.
*there some time you fill data for your itab_1
now assume itab_1 has been filled with data.
now fill content for itab_2, which contain fields from f3 to f98 of itab_1
loop at itab_1 into wa_1.
move-corresponding fields of wa_1 to wa_2.
append wa_2 to itab_2.
endloop.
clear wa_2.
clear work area 2.
suppose you have the work area you want to compare its content with the itab
copy it to wa_2
now wa_2 has value.
*now use Read command to compare the needed data
Read table itab_2 into wa_2 comparing all fields.
if sy-subrc = 0.
ok
else.
not ok.
endif.
The option Comparing all fields in Read command will compare content of all fields of the work are with all fields in itab.
This is the output that you need.
Regards,
paul
Edited by: paul the octopus on Dec 15, 2011 6:18 PM -
Pl/sql block reading reading table data from single point in time
I am trying to figure out whether several cursors within a PL/SQL block are executed from within a Single Point In Time, and thus do not see any updates to tables made by other processes or procedures running at the same time.
The reason I am asking is since I have a block of code making some data extraction, with some initial Sanity Checks before the code executes. However, if some other procedure would be modifying the data in between, then the Sanity Check is invalid. So I am basically trying to figure out if there is some read consistency within a PL/SQL, preventing updates from other processes to be seen.
Anyone having an idea?.
BR,
Cenk"Transaction-Level Read Consistency
Oracle also offers the option of enforcing transaction-level read consistency. When a transaction runs in serializable mode, all data accesses reflect the state of the database as of the time the transaction began. *This means that the data seen by all queries within the same transaction is consistent with respect to a single point in time, except that queries made by a serializable transaction do see changes made by the transaction itself*. Transaction-level read consistency produces repeatable reads and does not expose a query to phantoms."
http://www.oracle.com/pls/db102/search?remark=quick_search&word=read+consistency&tab_id=&format=ranked -
Hello,
I basically have only fact tables that I need for my analysis. No dimensions, no hierarchies.
When add two tables in OBI Answers to start the analysis I see this error:
[nQSError: 14025] No fact table exists at the requested level of detail
I have them defined as lookup tables. How can I join lookup tables?
In order to pre-filter them using the user_name session variable.Hi Nagireddy.
As described:
open your rpd. go to "manage" -> Variable Manager / New / Session / Variable. so to create a new session variable in the .rpd.
then you create a variable NO_FORCE_TO_DETAIL_BIN and se the default to 1.
BUT....this did actually not do the trick
I have created a logical table that is a table made up of the two that I just want to join and as soon as I create a bi answers report that contain columns from those two tables I see the error 14025. -
Hello
I have a dataset that was created at design time
but - after I run the app, it randomly creates a table based on The Users name
since I do not know the users name before had, the table is not part of my existing dataset
(I actually used an insert into sql nonquery to just make this table a copy of the masterUserTable)
Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
I thought I did so with this code:
'TODO: This line of code loads data into the 'MyLearningDBDataSet.masterUserTable' table. You can move, or remove it, as needed.
Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
Dim ThisNewVariable As String = MyUserNameIs & "UserTable"
Dim ThisNewTableName As New DataTable
Me.MyLearningDBDataSet.masterUserTable.TableName = ThisNewVariable
Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
that appeared to do the trick (but if it is incorrect please advice on the proper way to add a table made at runtime to a users existing datset)
Else where in my code I successfully execute the following NonQuery :
SqlString= "DELETE FROM " & MyUserNameIs & "UserTable" & vbCrLf &
"WHERE vState='" & txtStateInfo.Text & "';"
I check in Visual Studio 2013 that the row was deleted from the "GabrielUserTable" (Gabriel is the current value of MyUserNameIs) by using the Server Explorer and right clicking
on the table and choosing show talbe data
But the MyMainDBBindingNavigator is still showing the item I deleted.
So after searching for answers - I created a new button for testing and added the following code to test if it would work
Me.Validate()
Me.MyMainDBBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyLearningDBDataSet)
but the data is still shwoing after deleting it with my NonQuery
Please Help!Hi genterprise,
>> Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to make it bound to the users table (let's say GabrielUserTable)
In my option, if you want to rebind the users table to the navigator, you need to set the BindingNavigator.BindingSource. Based on your description, it seems that you did not reset the datasoure of the MyMainDBBindingNavigator. It was the original datasource
of the masterUserTable. For more details about BindingNavigator.BindingSource Property. You could refer the link below:
# BindingNavigator.BindingSource Property
https://msdn.microsoft.com/en-us/library/system.windows.forms.bindingnavigator.bindingsource%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey. -
Need help recreating this in Oracle (Temporary Table and a Cursor)
Hey all,
My client has asked me to see if it's possible to move his SQL Queries into Oracle, and then move EVERYTHING off of MSSQL into this new oracle environment. The problem is, I wrote the entire MSSQL system, and i know nothing about Oracle.
Basically, I need some examples. I have been stumbling around Oracle for about a year now, so i'm 'somewhat' familiar with it.
Basically, i'm going to create a script/stored procedure that will first:
Create and define a temporary table that is used when the script/proc is called.
Then, thru cursors, i'm going to add a bunch of lines to it.
Finally, i'm going to Run a select statement against the temporary table we created.
Now, I can't create a table on the server, as the production environment will not allow it, so i need to be able to create this virtually inside the script, and then it automatically self destructs at the end of the script.
If anyone knows if this is possible, please post me a few links to examples, or just lay down the code to get the temprary table made.
We're using TOAD as the interface.
Thanks,
DanThank you for the warm welcome.
The SQL looks something like this:
(Before you get lost in the code, this is an abreviation of the code, but every function is represented. This will also work in TOAD Script? I'm most worried about the use of how a Table is declared in Oracle, as i've seen many different versions of how to do this. Thanks)
~Dan
Declare @AREA nvarchar(50)
Declare @tmpTable Table (
[AC_PROPERTY_ID] [INT] NULL,
[PROPNUM] [nvarchar](50) NULL,
[SORT_ORDER] [INT] NULL,
[IS_TOTAL] [BIT] NULL,
[FIELD] [nvarchar](200) NULL,
[AREA] [nvarchar](200) NULL,
[ENG] [nvarchar](200) NULL,
[RSV_CAT] [nvarchar](200) NULL,
[WELL_NAME] [nvarchar](200) NULL,
[SHORTS_PROGRAM] [nvarchar](15) NULL,
[SHORT_MO] [nvarchar](6) NULL,
[SHORTS_YR] [nvarchar](6) NULL,
[SHORTS_DESC] [nvarchar](100) NULL)
Insert Into @tmpTable ([AC_PROPERTY_ID],[PROPNUM],[FIELD],[AREA],[ENG],[RSV_CAT],[WELL_NAME],[SHORTS_PROGRAM],[SHORT_MO],[SHORTS_YR],[SHORTS_DESC])
Select AC_PROPERTY_ID],[PROPNUM],[FIELD],[AREA],[ENG],[RSV_CAT],[WELL_NAME],[SHORTS_PROGRAM],[SHORT_MO],[SHORTS_YR],[SHORTS_DESC] from dbo.someoldtablenameimadeup where propnum>1000
DECLARE idcursor cursor
FOR
Select Distinct AREA
from @tmpTable
Open idcursor
Fetch Next from idcursor into @AREA
While (@@FETCH_STATUS <> -1)
BEGIN
IF (@@FETCH_STATUS <> -2)
<Do stuff for each record in the cursor>
FETCH NEXT FROM idcursor INTO @AREA
END
CLOSE idcursor
DEALLOCATE idcursor -
Add Exisiting Table to an Already Exising Dataset at run time
I have searched and searched
I have found the followind to "Create" a dataset and then create and add a table
to the dataset,
Example Below:
Dim customerOrders As DataSet = New DataSet("CustomerOrders")
Dim ordersTable As DataTable = customerOrders.Tables.Add("Orders")
Dim pkOrderID As DataColumn = ordersTable.Columns.Add( _
"OrderID", Type.GetType("System.Int32"))
ordersTable.Columns.Add("OrderQuantity", Type.GetType("System.Int32"))
ordersTable.Columns.Add("CompanyName", Type.GetType("System.String"))
ordersTable.PrimaryKey = New DataColumn() {pkOrderID}
What I need help with - PLEASE is
I already have a dataset named MyLearningDBDataSet.xsd in my Project
I have a Table that was created as copy of a table, but was given a Different Name at run time
How do I add this table to the Existing MyLearningDBDataSet.xsd....
I need to be able to delete rows out of the New table that was created (that is why I make a copy of it)
So Again : Please How do I add an Exisiting Table to an Exisiting Dataset? Please help! I have
searched and searched.Let me ask you this then Mr. Paul. Can you please show me how to create the dataset at run time, add a table to it, then put a binding navigator on the form that will be bound to it. If that is not possible, then can you show me how to have a
have a record (row) displayed in text boxes and then how I can navigate forward a record or back a record. Ultimately that is what I need.
I have everything working as is except for when I delete a row from the Table, since it is not part of the dataset (.xsd) then the BindingNavigator does not get the update, because the update is done to the table with the sql code. I will paste my
other post in here so you can get the big picture.
I have a dataset that was created at design time
but - after I run the app, it randomly creates a table based on The Users name
since I do not know the users name before had, the table is not part of my existing dataset
(I actually used an insert into sql nonquery to just make this table a copy of the masterUserTable)
Now - I have a binding navigator on my form, that is originally bound to masterUserTable, but my goal is to
make it bound to the users table (let's say GabrielUserTable)
I thought I did so with this code:
'TODO: This line of code loads data into the 'MyLearningDBDataSet.masterUserTable'
table. You can move, or remove it, as needed.
Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
Dim ThisNewVariable As String = MyUserNameIs & "UserTable"
Dim ThisNewTableName As New DataTable
Me.MyLearningDBDataSet.masterUserTable.TableName = ThisNewVariable
Me.MyMainDBTableAdapter.Fill(Me.MyLearningDBDataSet.masterUserTable)
that appeared to do the trick (but if it is incorrect please advice on the proper way to add a table
made at runtime to a users existing datset)
Else where in my code I successfully execute the following NonQuery :
SqlString= "DELETE FROM " & MyUserNameIs & "UserTable"
& vbCrLf &
"WHERE vState='" & txtStateInfo.Text & "';"
I check in Visual Studio 2013 that the row was deleted from the "GabrielUserTable" (Gabriel
is the current value of MyUserNameIs) by using the Server Explorer and right clicking
on the table and choosing show talbe data
But the MyMainDBBindingNavigator is still showing the item I deleted.
So after searching for answers - I created a new button for testing and added the following code to test if
it would work
Me.Validate()
Me.MyMainDBBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.MyLearningDBDataSet)
but the data is still showing after deleting it with my NonQuery
Again - please help!
I have purchased over 4 books and none of them explain this 2 me. -
How to assign Values to nested table and pass as parameter to procedure?
How to assign Values to nested table and pass as parameter to procedure?
Below is the Object and its type
create or replace type test_object1 as object
val1 varchar2(50),
val2 varchar2(50),
val3 varchar2(50)
create or replace type test_type1 is table of test_object1;
create or replace type test_object2 as object
val1 varchar2(50),
val2 varchar2(50),
val3 varchar2(50)
create or replace type test_type2 is table of test_object2;
GRANT ALL ON test_object1 TO PUBLIC;
GRANT ALL ON test_type1 TO PUBLIC;
GRANT ALL ON test_object2 TO PUBLIC;
GRANT ALL ON test_type2 TO PUBLIC;
here is the table made of object type:
create table test_object_tpe
sl_num NUMBER,
description VARCHAR2(100),
main_val1 test_type1,
main_val2 test_type2
NESTED TABLE main_val1 STORE AS tot1
NESTED TABLE main_val2 STORE AS tot2;
here is the procedure which inserts values into nested table:
PROCEDURE INSERT_TEST_DATA(sl_num IN NUMBER,
description IN VARCHAR2,
p_main_val1 IN test_type1,
p_main_val2 IN test_type2
IS
BEGIN
FOR rec in p_main_val1.first..p_main_val1.last
LOOP
INSERT INTO xxdl.test_object_tpe
sl_num,
description,
main_val1,
main_val2
VALUES
sl_num
,description
,test_type1 (test_object1(
p_main_val1(rec).val1,
p_main_val1(rec).val2,
p_main_val1(rec).val3
,test_type2 (test_object2( p_main_val2(rec).val1,
p_main_val2(rec).val2,
p_main_val2(rec).val3
END LOOP;
commit;
END INSERT_TEST_DATA;
here is the anonymoys block which assigns values to the object type and pass values into the procedure:
set serveroutput on;
declare
p_sl_num NUMBER := 1001;
p_description VARCHAR2(50) := 'Testing Val1';
inval1 test_type1 := test_type1();
inval2 test_type2 := test_type2();
begin
inval1(1).val1 := 'testx1';
inval1(1).val2 := 'testx2';
inval1(1).val3 := 'testx3';
inval2(1).val1 := 'testy1';
inval2(1).val2 := 'testy2';
inval2(1).val3 := 'testy3';
CSI_PKG.INSERT_TEST_DATA(sl_num => p_sl_num,
description => p_description,
p_main_val1 => inval1,
p_main_val2 => inval2
end;
Can anybody correct me.
Thanks,
LavanThanks for posting the DDL and sample code but whenever you post provide your 4 digit Oracle version (result of SELECT * FROM V$VERSION).
>
How to assign Values to nested table and pass as parameter to procedure?
>
Well you are doing almost everything wrong that could be done wrong.
Here is code that works to insert data into your table (the procedure isn't even needed).
declare
p_sl_num NUMBER := 1001;
p_description VARCHAR2(50) := 'Testing Val1';
inval1 test_type1 := test_type1();
inval2 test_type2 := test_type2();
begin
inval1.extend();
inval1(1) := test_object1('testx1', 'testx2', 'testx3');
inval2.extend();
inval2(1) := test_object2('testy1', 'testy2', 'testy3');
INSERT INTO test_object_tpe
sl_num,
description,
main_val1,
main_val2
VALUES
(p_sl_num, p_description, inval1, inval2);
commit;
end;
/See Example 5-15 Referencing a Nested Table Element in Chap 5 Using PL/SQL Collections and Records in the PL/SQL doc
http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/collections.htm#CJABEBEA
1. You don't even need the procedure since all it does is a simple INSERT into the table which you can do directly (see my code above)
inval1(1).val1 := 'testx1';There is no element one (1) of 'inval1' since you haven't created any elements yet. You need to EXTEND the collection to add an element
inval1.extend();And then there is an empty element but 'inval1' is a container for objects of type 'test_object1' not for scalars like 'val1', 'val2', and 'val3'.
So you can't do
inval1(1).val1 := 'testx1';You have to create an instance of 'test_object1'
inval1(1) := test_object1('testx1', 'testx2', 'testx3');And so on for the other collection
You don't need the procedure (as my sample code shows) but once you populate the variables properly it will work. -
I need to import a table from word to ID. The cols run several pages each in Word. How do I import the table so that cols break neatly within the frames?
I've tried "help" but I couldn't make it work. I just need to know how to make the table flow.
ThanksUnfortunately, table cells won't break across pages or frames in InDesign. When I had a project like this, I did a lot of prep work in Word using Convert Table to Text, and then messing around with the text formatting so I could import the content into InDesign. Instead of one text frame with a table with three columns, I'd have three separate text frames with "faked tables" made of paragraph rules and anchored "gridlines."
Sorry, you're in for a bit of a manual slog on this one.
Maybe you are looking for
-
I have tried to look at reasons as to why this happens but i cannot find anything. If i type it in manually it works perfectly fine. The copying and pasting of text into the name of the file freezes and crashes the window i am in
-
i have windows 7, why are the preferences that i had previously set in firefox changed back to default about 3-4 times a week?
-
I have the iPhone 4. Whoever I call, people cannot hear me.
It seems to me that there is any hardware problem because when I make a call, no one can hear me...
-
Apple TV compatibility proscan LCD
I have a proscan LCD tv and trying to hook up Apple TV via hdmi. I see the apple for about 3-4 seconds then a blue screen appears.. Any help
-
Apple stocks widget not working
Over the last few days, the stock widget just displays blanks. Anyone else have this issue or know what to do about it? Thanks H