Querying for a script insert multiple selected objects...
Is there a script or plugin which insert multiple selected objects in one new text frame with one click?
And is there a script or plugin which extract the content of anchored text frame out it's frame and replace it with it's frame. and extract selected text and insert it inside a new anchored text frame in it's place? (like convert text to table - convert table to text, but instead table we use text frame)
Hi,
Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
Cheers,
Phil
Similar Messages
-
Best practice for linking fields from multiple entity objects
I am currently transitioning from PHP to ADF. I'm looking for the best practice for linking data from multiple entity objects.
Example:
EO 'REQUESTS' has fields: req_id, name, dt, his_stat_id, her_stat_id
EO 'STATUSES' has fields: stat_id, short_txt_descr
'REQUESTS' is linked to EO 'STATUSES' on: STATUSES.stat_id = REQUESTS.his_status_id
'REQUESTS' is also linked to EO 'STATUSES' on: STATUSES.stat_id = REQUESTS.her_status_id
REQUESTS.his_status_id is independent of REQUESTS.her_status_id
When I create a VO for REQUESTS, I want to display: REQUESTS.name, REQUESTS.dt, STATUSES.short_txt_descr (for his_stat_id), STATUS.short_txt_descr (for her_stat_id)
What is the best practice for accomplishing this? It appears I could do it a few different ways:
1. Create the REQUESTS VO with a LOV for his_stat_id and her_stat_id
2. Create the REQUESTS VO with the join to STATUSES performed within the query for the VO. This would require joining on the STATUSES EO twice (his_stat_id, her_stat_id)
3. I just started reading about View Links - would that somehow do what I'm looking for?
I also need to be able to update his_status_id and her_status_id through the by selecting a STATUSES.short_txt_descr from a dropdown.
Any suggestions on how to approach such a stupidly simple task?
Using jDeveloper 11.1.2.2.0 if that makes a difference in the solution.
Thanks ahead of time,
CJCJ,
I vote for solution 1 as it's just your use case. As you said you what to update the his_status_id and her_status_id through the by selecting a STATUSES.short_txt_descr by a drop down. This is exactly the LOV solution.
ViewLinks are used fro master detail navigation (which you don't do here) and Joining the data make it difficult to update (and you still need a LOV for the drop down box.
Timo -
Script to align selected objects to artboard
Hello, I was wondering if anyone had a simple solution to aligning selected items to the artboard. I was going to create an action but then realized it would be more convenient for me to include it in my script file....I have a script to align objects with each other but they dont align to the artboard. Any suggestions?
Hello volocitygraphics,
here is a quick&dirty solution.
Note that the result may be different, if clipping masks are exists in the document.
Please test it at first on copies of your documents. Use it on your own risk.
// ArtboardCenterAroundSelectedPaths.jsx
// works with CS5
// http://forums.adobe.com/thread/1336506?tstart=0
// (title: script to align selected objects to artboard)
// quick & dirty, all selected items will be centered at the active artboard
// (include clipping paths !visible result can be different)
// regards pixxxelschubser 19.Nov. 2013
var aDoc = app.activeDocument;
var Sel = aDoc.selection;
if (Sel.length >0 ) {
var abIdx = aDoc.artboards.getActiveArtboardIndex();
var actAbBds = aDoc.artboards[abIdx].artboardRect;
var vBounds = Sel[0].visibleBounds;
vBounds_Li = vBounds[0];
vBounds_Ob = vBounds[1];
vBounds_Re = vBounds[2];
vBounds_Un = vBounds[3];
if (Sel.length >1 ) {
for (i=1; i<Sel.length ; i++) {
vBdsI = Sel[i].visibleBounds;
if( vBounds_Li > vBdsI[0] ) {vBounds_Li = vBdsI[0]};
if( vBounds_Ob < vBdsI[1] ) {vBounds_Ob = vBdsI[1]};
if( vBounds_Re < vBdsI[2] ) {vBounds_Re = vBdsI[2]};
if( vBounds_Un > vBdsI[3] ) {vBounds_Un = vBdsI[3]};
aDoc.artboards[abIdx].artboardRect = [vBounds_Li +((vBounds_Re - vBounds_Li)/2-(actAbBds[2]-actAbBds[0])/2), vBounds_Ob -((vBounds_Ob - vBounds_Un)/2+(actAbBds[3]-actAbBds[1])/2), vBounds_Li +((vBounds_Re - vBounds_Li)/2-(actAbBds[2]-actAbBds[0])/2)+(actAbBds[2]-actAbBds[0]), vBounds_Ob -((vBounds_Ob - vBounds_Un)/2+(actAbBds[3]-actAbBds[1])/2)+(actAbBds[3]-actAbBds[1])];
} else {
alert ("No selection");
I hope so, the document coordinatesystem is the same as in CS6+
Have fun -
Inserting multiple selection from checkbox in to one column of the database
Hi,
how to insert multiple selection from checkbox into one column of the database.(I select array of values from checkbox ,then how to insert tat array of values iinto single column name).
Anyone can u reply me
Thanxhhhmmm.... is this what you mean?
lets say you hava a checkbox1 with values value1, value2, value3 and you selected all there of them? then you want then to be stored in the database in one column?
now the question is:
Is it going to be one column one row?
datafield
value1,value2,value3
Or one column multiple row?
datafield
value1
value2
value3
Which is it? -
Inserting multiple selection from checkbox into one column of the database
Hi,
How to insert multiple selection values from checkbox into one column of the database.
Anyone can u help me
Thanxhi
try to use request.getParameterValues("fieldname") -
Allow editing of properties of multiple selected objects
Currently one cannot always edit properties of objects -- such as attributes for tags, or tooltips for form fields -- when multiple objects are selected. This occurs when some objects' properties have "conflicting" values. It would save TONS of time, if somehow you could allow edits to one property or attribute while leaving other conflicting properties "as is". I would also like to be able to add header ID attributes to multiple <TD> tags, without deleting header ID attributes already existing.
Are the machines causing this script to hang offline? You can test to make sure they are online before you try to connect
$Cred= Get-Credential
get-content targets.txt | foreach-object{
if (test-connection $_ -count 1 -quiet) {
$Make = Get-WmiObject Win32_Computersystem -Computername $_ -Credential $Cred
$Serial = Get-WmiObject Win32_BIOS -Computername $_ -Credential $Cred
Select-Object $($Make).Name,$($Make).Manufacturer,$($Make).Model,$($Serial).SerialNumber
}} | Export-Csv Results.csv -NoTypeInformation -
Need help on inserting multiple selection values into database
Hello every body,
we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
Thanks & Regards,
Anil.anilmekala.reddy wrote:
Hello every body,
we are developing one small web application in that we have requirement like department is an combobox, services in multiple selection list box, suppose when i select IT as department & some services in multiple listbox on clicking map button selected services should be map with that department .Could u plz help me how i have to do..?
Thanks & Regards,
Anil.if you give more details .... do you know how to use jdbc ??? prepared statement ???
any way if I have understood your question
I will suppose that you have 3 tables Department ,service and Has_service
and I supose that you have already the entry in table department and service
Here is what I would do ...
while(I have something to insert )
insert into Has_service values (department,service )
} -
Setting property attribute values for multiple selected objects.
Hello,
Is there an easy way to set the attribute property values for more that one selected Table Operator Attribute (column) at a time. For example the target table has over 100 columns but I only want to INSERT/UPDATE 10 of those columns. The generated MERGE, INSERT and UPDATE statements will perform DML on all of the columns in the target table, setting the 90 columns with no mapping set to NULL. This is due to the Loading Properties 'Load Column when Updating Row' and 'Load Column when Inserting Row' both default to Yes. I would like to select multiple Attributes in the Table Operator and change the 'Load Column when Updating Row' and 'Load Column when Inserting Row' to No. This is similar to what you were able to do in Oracle Forms 9.0 Designer select multiple Items in a Block and change the properties en-masse.
ThanksHi,
Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
Cheers,
Phil -
Help on SHUTTLE and how to insert multiple selection of data to database?
Hi
I looking for some help SHUTTLE. The scenario is given below. Appreciate your urgent help/steps how to use UIX SHUTTLE for this example.
I). I have two tables user and dept
User
====
Fields=>(uid,uname)
Dept
====
Fields=>(deptno,uid)
II). UIX screen with two fileds
i. DeptNo =>messageInputText
ii. Uid =>shuttle (This shuttle should display user.username, but when insert data it has to update as uid)
III. Insert data to database
Using form, I give one dept no and select multiple Unames. When click submit, it has to commit the changes to the database. For eg: I am given DeptNo=10, and unames selected are "RAM","GEORGE","CLINTON", it has to update 3 rows in to the database as shown below
DEPTNO UID
================
10 100 =>UNAME RAM
10 200 =>UNAME GEORGE
10 300 =>UNAME CLINTON
Thanks
NRKSorry, Maybe i am not stated my problem clearly. After i execute my sql statement and put the result into the resultset, if the result is more than 1 records, then i dunnoe how to handle with the record and display it in jsp. Do u get wat i mean?
-
Jsp form - inserting multiple selection in to one column of the database
I have this JSP/ HTML form that has fields that I can select multiple values and in the backend there is only one table. But when I select these multiple value and submit, only one value gets to the database. How do I get all the values that I selected .
By the way I am using jdeveloper 10g and oracle 9i database
thank you,
santhanks aleena. sorry for the late reply. Because I away during the weekend. so I saw u are also into a web application project. I use jdeveloper 10g as my developing tool. its free to download for personal use. It may help you with your class project.
also thanks to dev_AZ
angrycat here is a similar example of my problem
<select size="8" name="fruit" multiple>
<option value="apple">apple</option>
<option value="orange">orange</option>
<option value="mango">mango</option>
<option value="cherry">cherry</option>
<option value="pineapple">pineapple</option>
<option value="grapes">grapes</option>
</select>
if i select apple, orange,mango and cherry and submit it to the database field 'fruit', only 'apple' gets inserted. none others.
this is the line where it is processing the value.
String fruit=request.getParameter("fruit");
by the way I have only one database table
I am going to try the for loop example that aleena has posted.
one more time thanks everyone
santhosh -
Unable to build SQL query for one parameter at multiple locations
Hi,
Below one is the sample SQL in which I used :p_organization_id at 3 positions
First one at in the main where clause
Second one after START WITH
Third one is after CONNECT BY PRIOR
SELECT bs.assembly_item_id
,msia.segment1 a_item
,SYS_CONNECT_BY_PATH(msi.segment1, '---->') "Path",
bc.component_item_id,
bc.disable_date,
bc.item_num,
mp.organization_code organization_code,
LEVEL,
bc.attribute1 reference_no,
msi.segment1 item_number,
msi.description description
FROM inv.mtl_system_items_b msi,
inv.mtl_system_items_b msia,
bom.bom_structures_b bs,
bom.bom_components_b bc,
inv.mtl_parameters mp
WHERE
bc.component_item_id = msi.inventory_item_id
AND bc.bill_sequence_id = bs.bill_sequence_id
AND bs.assembly_item_id = msia.inventory_item_id
and msi.segment1 = 'P5200802-DB100'
AND bs.organization_id = msia.organization_id
AND msia.organization_id = msi.organization_id
AND msi.organization_id = mp.organization_id
AND mp.organization_code = :p_organization_id
AND NVL(TRUNC(bc.disable_date),TRUNC(SYSDATE + 1)) > TRUNC(SYSDATE)
START WITH msia.segment1 = '24310003-13.1' AND mp.organization_code = :p_organization_id
CONNECT BY PRIOR bc.component_item_id = bs.assembly_item_id
AND mp.organization_code = :p_organization_id
ORDER SIBLINGS BY bc.item_num
My question is how to use single parameter value that should go in the multiple positions in the SQL.
Please suggest if this can archived either in the Discoverer Admin / Desktop in detail.
Regards,
Chiranjeevi MedaHi,
The only way you can use SQL with a connect by in Discoverer is to either put the SQL in a view or put the SQL in a custom folder. Either way you will not be able to pass parameter directly from Desktop/Plus to the view or custom folder.
The solution probably is to use session parameters and replace the :p_organization_id in the 3 positions with SYS_CONTEXT('DISCO_CONTEXT', 'ORGANIZATION_ID') once you have defined your DISCO_CONTEXT namespace and ORGANIZATION_ID session parameter.
See these threads for more information. (Re: Passing multiple parameters into Custom Folder... http://learndiscoverer.blogspot.com/2008/11/metalink-note-304192.html)
Rod West -
Performance of update query for single column vs multiple column
Hi All,
I could not find any answer for this, does it ever matter in terms of performance updating single column versus multiple column in a single update query.
For eg. table consisting of 15 columns, what would be the difference in performance when one column is update in the single query against another update query where 15 columns are updated.
Please do keep in mind my table columns in actually could be around 150+.
Thanks for any information provided.If updated columns aren´t on where clause , then the only impact of 15 columns will be a increase on redo generation, and a possible chainning row.
So since the redo is one of the things that have a large impact, the answer is yes.
The performance will be slower.
Regards
Helio Dias.
http://heliodias.com
OCE SQL, OCP 9i -
SQL query for join table and multiple values
Trying to join two tables , Emphours and EmpStatus to get
result which gives each emplyees hour
worked each day
in past say 1 year in what status. I need result similar to table 3 , Hours Can also be grouped per week
all I need Is Each employees hours in each week and his status and position at that time if possible
any help will be highly appreciated. Thank you
note: payday is every other Friday- week runs from Saturday through Friday
EmpStatus Table tracks when employees status changed
EmpHours
employee
workday
payday
hours
position
101
1/1/2014
1/3/2014
8
assistant
101
1/3/2014
1/3/2014
8
assistant
101
1/4/2014
1/17/2014
8
assistant
101
1/5/2014
1/17/2014
8
assistant
101
1/7/2014
1/17/2014
8
assistant
101
1/8/2014
1/17/2014
8
assistant
101
1/9/2014
1/17/2014
8
assistant
101
1/11/2014
1/17/2014
8
assistant
101
1/13/2014
1/17/2014
8
assistant
101
1/14/2014
1/17/2014
8
assistant
101
1/18/2014
2/14/2014
8
assistant
102
1/1/2014
1/3/2014
7
manager
102
1/25/2014
1/31/2014
7
manager
102
1/26/2014
1/31/2014
7
manager
102
1/28/2014
1/31/2014
7
manager
102
1/31/2014
1/31/2014
7
manager
103
1/1/2014
1/3/2014
5
intern
103
1/31/2014
1/31/2014
6
intern
104
1/14/2014
1/17/2014
5
supervisor
104
1/30/2014
1/31/2014
6
supervisor
EmpStatus
employee
start_date
status
101
1/1/2014
parttime
101
1/18/2014
fulltime
102
1/1/2014
seasonal
102
1/18/2014
fulltime
103
1/1/2014
partime
103
1/18/2014
fulltime
104
1/4/2014
parttime
104
1/18/2014
fulltime
Table 3
employee
status
hours
position
workday
weekend
payday
101
parttime
8
assistant
1/1/2014
1/3/2014
1/3/2014
101
parttime
8
assistant
1/3/2014
1/3/2014
1/3/2014
101
parttime
8
assistant
1/4/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/5/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/7/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/8/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/9/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/11/2014
1/17/2014
1/17/2014
101
parttime
8
assistant
1/13/2014
1/17/2014
1/17/2014
101
parttime
8
assistant
1/14/2014
1/17/2014
1/17/2014
101
fulltime
8
assistant
1/18/2014
1/24/2014
2/14/2014
102
seasonal
7
manager
1/1/2014
1/3/2014
1/3/2014
102
fulltime
7
manager
1/25/2014
1/25/2014
2/14/2014
102
fulltime
7
manager
1/26/2014
1/26/2014
2/14/2014
102
fulltime
7
manager
1/28/2014
1/28/2014
2/14/2014
102
fulltime
7
manager
1/31/2014
1/31/2014
2/14/2014
103
parttime
5
intern
1/1/2014
1/3/2014
1/3/2014
103
fulltime
6
intern
1/31/2014
1/31/2014
2/14/2014
104
parttime
5
supervisor
1/14/2014
1/17/2014
1/17/2014
104
fulltime
6
supervisor
1/30/2014
1/31/2014
1/31/2014Hello David,
Try this query
set dateformat mdy;
declare @EmpHours table
(Employee int,workday date,payday date,hours int,position varchar(50));
insert into @EmpHours values
(101,'1/1/2014','1/3/2014',8,'assistant'),
(101,'1/3/2014','1/3/2014',8,'assistant'),
(101,'1/4/2014','1/17/2014',8,'assistant'),
(101,'1/5/2014','1/17/2014',8,'assistant'),
(101,'1/7/2014','1/17/2014',8,'assistant'),
(101,'1/8/2014','1/17/2014',8,'assistant'),
(101,'1/9/2014','1/17/2014',8,'assistant'),
(101,'1/11/2014','1/17/2014',8,'assistant'),
(101,'1/13/2014','1/17/2014',8,'assistant'),
(101,'1/14/2014','1/17/2014',8,'assistant'),
(101,'1/18/2014','2/14/2014',8,'assistant'),
(102,'1/1/2014','1/3/2014',7,'manager'),
(102,'1/25/2014','1/31/2014',7,'manager'),
(102,'1/26/2014','1/31/2014',7,'manager'),
(102,'1/28/2014','1/31/2014',7,'manager'),
(102,'1/31/2014','1/31/2014',7,'manager'),
(103,'1/1/2014','1/3/2014',5,'intern'),
(103,'1/31/2014','1/31/2014',6,'intern'),
(104,'1/14/2014','1/17/2014',5,'supervisor'),
(104,'1/30/2014','1/31/2014',6,'supervisor');
--select * from @EmpHours
declare @EmpStatus table
(employee int,start_date date,status varchar(20));
insert into @EmpStatus values
(101,'1/1/2014','parttime'),
(101,'1/18/2014','fulltime'),
(102,'1/1/2014','seasonal'),
(102,'1/18/2014','fulltime'),
(103,'1/1/2014','partime'),
(103,'1/18/2014','fulltime'),
(104,'1/4/2014','parttime'),
(104,'1/18/2014','fulltime');
WITH C AS
SELECT es.employee,es.start_date, es.status, ROW_NUMBER() OVER(partition by employee ORDER BY start_date) AS rownum
FROM @EmpStatus ES
CTE_RANGES as(
SELECT cur.employee,Cur.start_date start_range, cur.status,case when nxt.start_date is null then '2099-12-31' else dateadd(d,-1,Nxt.start_date) end AS end_range
FROM C AS Cur
left JOIN C AS Nxt
ON Nxt.rownum = Cur.rownum + 1 and cur.employee=nxt.employee)
select eh.*,es.status from @EmpHours EH join CTE_RANGES Es on EH.Employee =es.employee and EH.workday between es.start_range and es.end_range
--where es.employee=101
You will need a calender table too which can be joined to the output of the above query to get the weekend dates.
You can find the T-SQL code to generate the calender here
http://stackoverflow.com/questions/19191577/t-sql-function-to-generate-calendar-table
and posting the questions with necessary DDL , DML (like I have posted) would help us a lot.
Satheesh
My Blog -
How do I strip special characters in SSRS for Lookup columns with Multiple Selections?
Hello all,
Please let me know if I am posting in the wrong location.
I am building reports against my SharePoint List (actually a library). 1 of the columns I want to display in the report is a Lookup column that allows Multiple lookups. Problem is that the SharePoint Web Service call GetListItems returns the values with the item id and ";#" combination. For example:
122;#Apple;#112;#Carrot
but I need the following format:
Apple, Carrot
Following this great article posting - http://www.sharepointu.com/dwise/archive/2007/11/28/connecting-sql-reporting-services-to-a-sharepoint-list-redux.aspx
I was able to drop the first part using the following code
function GetNameFromSP(pFullID as string) as string
dim strRet as string
dim iPos as integer
if pFullID = nothing then return ""
if pFullID = "" then return ""
iPos = Instr(pFullID, ";")
if iPos < 1 then return pFullID
return Mid(pFullID, iPos +2)
end function
But it does not replace the subsquent id references.
Anyone done this before that can provide me tips?
Thanks!
Jeff Kozloff
Project Manager, Solutions Team
Bamboo Solutions
http://www.bamboosolutions.comAll,
Here is the updated code that resolves my issue (a coworker of mine provided the following code):
Function TrimMultiLookup(ByVal s As String) As String
Dim combStr As String
Dim array As String()
Dim c As Integer
combStr = String.Empty
array = Split(s, ";#")
Console.WriteLine(array.Length)
For c = 1 To array.Length - 1 Step 2
combStr += array(c) + ", "
Next
Return Left(combStr, combStr.Length - 2)
End Function
Jeff Kozloff
Project Manager, Solutions Team
Bamboo Solutions
http://www.bamboosolutions.com -
SPAU query for documentation and maintainance and transport object
Hi All,
I am working on upgrade using SPAU. In without modification assistant there are two nodes and objects in red- 1. maintenance and transport object 2. Documentation.
When I click on maintenance and transport object , I get the red button for cluster maintenance SOBJ.I try to open in maintain/change mode but it is not giving any option to activate or anything. As it is maintenance it gives an option to create a new entry only.( see attached capture1 & capture2)
What do we need to do to make it green ? I tried to search but did not get anything related to this. I have attached screen shot for the same.
Also for documentation, what needs to be done as adopt modification ? I get the pop up for create modification when I click on data element documentation. Do I need to create modification ? what should be the template type ? (Please see the attached screen shot capture3 ).
Also for both I get 'no version found'.
I would really appreciate your help.
Thanks,
NikiCan anybody help/guide on this please ....
Maybe you are looking for
-
How to set image in background as background image in view
hello experts, i am writing small program in that i have one view , with one group box i want to set an image which should appears as a background image for that view , also i want to appear the group on that image in foreground. i have no clue how t
-
ACS 5.5 SFTP repository non-standard TCP port
is it possible to change the TCP port in a SFTP repository from 22 to something different ? like this is not working repository sftp1 url sftp://10.10.0.8:22222/user1 user user1 password hash bc14bc179d2708cc31cbc22ee6a679cd22c095a1
-
Lightroom and Samsung GX-10 DNG files
Hi i've got a problem with LR and the samsung GX-10 DNG file format. It semmes that LR does not read correctly this Raw file at the begin of the rendering, the image has good colors but they change at the end of the rendering. Colors are more dark an
-
Why does my idletime/display so short
Why is it if my laptop is idle for a short time i have to log back in to windows
-
*Folders on Desktop Gone After Update *HELP*
I just did the Updates the Software Updater Recommended and after they were finished downloading I restarted my computer. When my computer started back up all the folders and such that were on my desktop were no longer there. I can still find them th