Two input of table
Hi,
How to make two input of table X and Y will be automatically make the table Z is the output and it will be display in indicator C
The value of X and Y is depend on Enum A and B as shown in figure
Sorry,
the array table above is constant. user will enter value based on table given (hardcopy)
the value of table Z is depend on the both value A and B of table X and Y.
I means A= 1 B=1.5 ~ table Z=1
A= 1.2 B=2.5 ~ table Z=3
A= 2 B=3.5 ~ table Z=5
A= 2.2 B=4.5 ~ table Z=7
and so on.
Similar Messages
-
Hello All!
I'm using a form to add and remove parameters for a service definition.
<form action="serviceinput.jsp" method="post">
<table>
<tr>
<td><b>Level</b></td>
<td><b>Fieldname</b></td>
<td><b>Stucturename</b></td>
<td><b>Type</b></td>
<td><b>Format</b></td>
<td><b>Optional</b></td>
<td><b>Semantics</b></td>
</tr>
<%
for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
Parameter parameter = (Parameter) iterParameters.next();
%>
<tr>
<td><%= parameter.getLevel() %></td>
<td><%= parameter.getFieldname() %></td>
<td><%= parameter.getStructurename() %></td>
<td><%= parameter.getType() %></td>
<td><%= parameter.getFormat() %></td>
<td><%= parameter.getOptional() %></td>
<td><%= parameter.getSemantics() %></td>
</tr>
<%
%>
</table>
<input type="submit" name="<%= parameters.addParameter() %>" value="add"/>
<input type="submit" name="<%= parameters.removeParameter() %>" value="remove"/>
</form>
The special thing about is, that I'm using two <input type="submit"...> buttons.
The idea is, that I'd like to add one more row with attributes by clicking the "add" button and removing one row by clicking the "remove" button.
If I use just one of them, it works fine. If I use both of them, nothing happens at all.
Isn't it allowed to use two <input type="submit"...> fields?
Is there an alternative? How can I implement my form the correct way?
Thanks a lot in advance to all!
Regards,
TomiHi,
Hai Tomi ,
As swati already Explained U can try it with buttons,
But u have to make a Hidden field and set the value of the hidden field
with the Javascript code after pressing the button , Call a client side function which has an argument as given below
Validate the Flag field in the JSP file
<script language=javascript>
function Validate(s)
if(s==1)
document.forms['ServiceInput'].elements["flag"].value="add";
else
document.forms['ServiceInput'].elements["flag"].value="Remove";
document.forms['ServiceInput'].submit();
alert("hai");
</script>
<form name="ServiceInput" action="serviceinput.jsp" method="POst">
<table>
<tr>
<td><b>Level</b></td>
<td><b>Fieldname</b></td>
<td><b>Stucturename</b></td>
<td><b>Type</b></td>
<td><b>Format</b></td>
<td><b>Optional</b></td>
<td><b>Semantics</b></td>
</tr>
<%
for (Iterator iterParameters = parameters.iterator(); iterParameters.hasNext();)
Parameter parameter = (Parameter) iterParameters.next();
%>
<tr>
<td><%= parameter.getLevel() %></td>
<td><%= parameter.getFieldname() %></td>
<td><%= parameter.getStructurename() %></td>
<td><%= parameter.getType() %></td>
<td><%= parameter.getFormat() %></td>
<td><%= parameter.getOptional() %></td>
<td><%= parameter.getSemantics() %></td>
</tr>
<%
%>
</table>
<input type=hidden name=flag value="bb">
<input type="Button" name="b1" value="add" onclick= "Validate(1)">
<input type="Button" name="b2" value="remove" onclick= "Validate(2)">
</form> -
How two or more table used in smartforms
Sir,
Like to know how can i perform calculation in smartfrom if the fields is numeric and use two table, and also know about it is useful to use inner join or any other method in smartform for working with two or more tables simultaneously.
plz, expalin with examplehi
you can use more than one table in smartform for that first you mention all the tables in the form interfaces and you have to mention the variables that you want to caliculate in the global definitions.
For caliculation right click on ant text and in that we have flow logic option in that we can select which type of code you want to write and you have to create those inbetween two text fields where the values are there and the other one is where you want to display the result.
in that code in input parameters we have to mention the variables which you want to use for caliculation and in output parameters mention the variables in which you want to store the result. And then we have to write the logic what ever we want.
I hope this information will help you
regards,
Sreelatha Gullapalli -
How can I use TopLink for querys that have two and more tables?
I use TopLink today, and I can use one table to query, but how can I use TopLink for querys that have two and more tables?
Thank you for see and answer this question.You can write a custom SQL query and map it to an object as needed. You can also use the Toplink query language "anyOf" or "get" commands to map two tables as long as you map them as one to one (get command) or one to many (anyOf command) in the toplink mapping workbench.
Zev.
check out oracle.toplink.expressions.Expression in the 10.1.3 API -
Hi
i used the Build JDEVADF_11.1.1.4.0
I want to make compare validation between two input text Are equal or not . same Thing when i create new email i must enter the password and re enter password if not equal he give me messageHi,
for a validation String, you can put autosubmit=true and in the valuechangeListener make the comparation.
How to compare two Strings in java? http://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java -
WHERE clause creating a join for two or more tables
The CS3 Dreamweaver book says that the WHERE clause can
create a join for two or more tables. The join was created, but the
data is repeating. I have searched the web and this forum and have
not found the answer.
My Master page filters the recordset by Style No and when a
customer clicks on a particular style, it sends him to the Detail
page. All the records are showing from all tables on the detail
page from the Dynamic List, except they are showing multiple times
(ex. Size table has 4 sizes and Color table has 2 colors - my Size
Drop Down list is showing 8 options and my Color Drop Down List is
showing 8 options) I have a Master Page with a recordset pointing
to a Detail Page using the same recordset.
Master page works perfectly.
Master Recordset SQL:
SELECT products.itemID, products.category, products.styleno,
products.name, products.description, products.ourprice,
products.imageTH, products.image, coloroption.color,
sizeoption.size
FROM products, coloroption, sizeoption
WHERE category = 'chefcoats' AND
products.styleno=sizeoption.styleno AND
products.styleno=coloroption.styleno
GROUP BY products.styleno
ORDER BY styleno ASC
The Detail Recordset:
SELECT products.itemID, products.category, products.styleno,
products.name, products.description, products.ourprice,
products.imageTH, products.image, sizeoption.size,
coloroption.color
FROM products, sizeoption, coloroption
WHERE itemID=colname AND products.styleno=sizeoption.styleno
AND products.styleno=coloroption.styleno
I tried using the GROUP BY on the detail page, but then it
only showed one size and color from the dynamic drop down list. I
tried changing the field name "styleno" in the other tables to be
unique, however, I was using the table identifer. I tried using the
JOIN command instead of the WHERE clause and that didn't help
either.
On the detail page, the customer is supposed to click on the
Size box and see sizes XSM - 6XL ONLY ONE TIME. and then be able to
click on the Color option and see White, Black, Red ONE TIME.
Is this possible?
Thank you for giving your time to read this.!
EvieDo you have a link we can look at to see what you are trying
to do?
Dave
"EviePhillips" <[email protected]> wrote in
message
news:[email protected]...
> The CS3 Dreamweaver book says that the WHERE clause can
create a join for
two
> or more tables. The join was created, but the data is
repeating. I have
> searched the web and this forum and have not found the
answer.
>
> My Master page filters the recordset by Style No and
when a customer
clicks on
> a particular style, it sends him to the Detail page. All
the records are
> showing from all tables on the detail page from the
Dynamic List, except
they
> are showing multiple times (ex. Size table has 4 sizes
and Color table has
2
> colors - my Size Drop Down list is showing 8 options and
my Color Drop
Down
> List is showing 8 options) I have a Master Page with a
recordset pointing
to a
> Detail Page using the same recordset.
>
> Master page works perfectly.
> Master Recordset SQL:
> SELECT products.itemID, products.category,
products.styleno,
products.name,
> products.description, products.ourprice,
products.imageTH, products.image,
> coloroption.color, sizeoption.size
> FROM products, coloroption, sizeoption
> WHERE category = 'chefcoats' AND
products.styleno=sizeoption.styleno AND
> products.styleno=coloroption.styleno
> GROUP BY products.styleno
> ORDER BY styleno ASC
>
> The Detail Recordset:
> SELECT products.itemID, products.category,
products.styleno,
products.name,
> products.description, products.ourprice,
products.imageTH, products.image,
> sizeoption.size, coloroption.color
> FROM products, sizeoption, coloroption
> WHERE itemID=colname AND
products.styleno=sizeoption.styleno AND
> products.styleno=coloroption.styleno
>
> I tried using the GROUP BY on the detail page, but then
it only showed
one
> size and color from the dynamic drop down list. I tried
changing the
field
> name "styleno" in the other tables to be unique,
however, I was using the
table
> identifer. I tried using the JOIN command instead of the
WHERE clause and
that
> didn't help either.
>
> On the detail page, the customer is supposed to click on
the Size box and
see
> sizes XSM - 6XL ONLY ONE TIME. and then be able to click
on the Color
option
> and see White, Black, Red ONE TIME.
>
> Is this possible?
>
> Thank you for giving your time to read this.!
> Evie
>
> -
Synchronizing Two Custom Z Tables Using Abap Program
Hi,
My requirement is Synchronizing two custom z tables using abap program me.
I have vendors in two tables, i have to select the common vendors from first which are existing in second table also.
In first table each vendor can have more than one supplier types in one field only. In second table these supplier types are divided into
different fields.
My requirement is I have to check supplier types in first table and i have to pass X to corresponding supplier types in second table vendor.
I have to pass X value for each depending in Second table depending upon supplier type in first table.
. How to do it can any one suggest with code.
Thanks in Advance,
Vivek
<subject edited by moderator>
Message was edited by: Manish KumarHi,
Imho, you need to get (meaning, extract into separate fields) the different supplier types from Table1 first. Your key for Table1 is the vendor no, which is also the key in Table2 (or the key for Table2 is Vendor no & Type).
For better performance, better select multiple/all required entries from Table1 instead of doing a select endselect.
Depending on the format of the vendortypes in Table1, put them in a new itab (for our purpose named Table1New where vendor no & type are the only 2 fields. For example, if the type length is fixed to 2 chars, or divided by space,... use your coding accordingly.
Next step is to select all vendor no's in Table2 which you have selected in Table1. If in Table2, the vendor no is the only key (and the all vendor types are filled in a single record), then loop check the vendor types from Table1New against the types in Table2.
If the key of Table2 is vendor no & vendor type, then do a read table for the key.
The logic in pseudo-code:
Select from Table1 into table. If you'd like to limit the selection size, add package size statement.
extract the vendor types in to itab Table1New.
Select the vendor & types from Table2 by using the for all entries option (better performance).
loop at Table1New
check in Table2:
if the unique key is vendor no: check all fields for the vendor type from Table1New
if the unique key combo is vendor no & type: check by using a read table.
If not found => add entry to Table2
endloop.
endselect Table1 (when using package size)
I guess the most difficult step is to extract the types from Table1 into separate fields, all the rest seems straight forward. Please keep in mind the itab type definitions for a better performance.
Good luck!
Best regards,
Zhou -
DBMS_DATAPUMP How to ignore two or three tables
Hi,
I have to export complete schema using DBMS_DATAPUMP .
What is the syntax to ignore two or three tables from this schema .your above code not woking
dbms_datapump.metadata_filter
(handle=>handle
,name=>'NAME_EXPR'
,value=>' NOT IN (SELECT TABLE_NAME FROM DBA_TABLES WHERE TABLE_NAME LIKE ''YOU%'')'
it shows the following error message
Error report:
ORA-39001: invalid argument value
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 79
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3444
ORA-06512: at "SYS.DBMS_DATAPUMP", line 3693
ORA-06512: at line 20
39001. 00000 - "invalid argument value"
but following codes working fine
Dbms_Datapump.Metadata_Filter(handle => h1,name => 'NAME_EXPR',value => '!=''SU_HANDSET_HISTORY''',
object_type => 'TABLE'); -
Is it possible to show data from two different sql tables?
Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
Best regards Terje F - NorwayHi Terje,
If you have a unique key, you could use one of the following functions for your scenarios:
If you only have one image per house, you can use LookUp:
http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
If you have multiple images per house, you can use Filter:
http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
Thanks
Robin -
Not able to view more than two line in table control
Hi all,
I am not able to see more than two lines in table control. Although my table control height is 21...
Please see attached pic and suggest me what to do.hi,
You have to set the LINES property of the table control In the PBO of your screen, to the number of entries in the internal table.
data: lv_line type i.
DESCRIBE TABLE gt_table LINES lv_line.
table_control-lines = lv_line + 1.
or else
You can do two thing in table control properties check horizontal and vertical scroll options plus in PBO you can based on number of lines in internal table assign it to TC_ABC-LINES if no lines are there then add by default 20..10.. any number of lines as you want. -
How to compare two input fields
Hi i have two input filds with labels E mail and confirmmail
in both the input flds same value should be enter ,if data in second input field is different from first input field an error should be displayed,can u please expalin me with code
thanks
kishoreHi,
use as follows
String emailId1 = wdContext.currentContextElement().getID1();
String emailId2 = wdContext.currentContextElement().getID2();
//remove the following condition if not needed ,
if( (emailId1 != null && !emailId1.trim().equals("")) && ( emailId2 != null && !emailId2.trim().equals("")))
int x = emailId1.compareTo(emailId2);
if( x == 0)
//Both are same
else
//Do the else part
Regards
Ayyapparaj -
How can i control graph with two inputs?
Hi,
i would like to ask you about the graph with two inputs
Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
But now i would like to get the graph with my two inputs in x axis and y axis .
i want to control both of two axis. How could i do for it ?
i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
It can run but i don't know how come the graph show nothing. .
Actually , it have to show something like wavefrom continuously. am i right?
Could you tell me a way to solve it ?
>>>
what i want to get is ..
in Graph,
for x axis , ditance (always increases)
for y axis , vibration (vary)
>>>
Thank you so much for your time . I am looking forward your kindly reply.
With Respect,
Su
Attachments:
using Build XY graph.vi 59 KBHi NI9233,
Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
Picture 1:
Double click on Build XY Graph, uncheck the clear data on each call
Picture 2 and 3:
Change your formula node into +1 Basic Function in Functions Pallette.
Hope that helps!
PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
Sincerely,
Krisna Wisnu
Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
Sincerely,
Krisna Wisnu
Attachments:
Clear Graph on Each Call.PNG 46 KB
+1.PNG 30 KB
+1_2.PNG 21 KB -
Field or table alias is not allowed as an input of table functions
Hi,
I am trying to invoke a user defined table function through a SQL snippet like below.
SELECT (SELECT * FROM PKG_ORG_ORG_HAS_CHILDREN(org_id)) has_child
from PA_ORG_OWNER
where stud_id = 'np1';
But for some reason it will not accept column name as an IN parameter
Could not execute 'SELECT (SELECT * FROM PKG_ORG_ORG_HAS_CHILDREN(org_id)) has_child from PA_ORG_OWNER os where ...' in 2 ms 451 µs .
SAP DBTech JDBC: [7] (at 47): feature not supported: field or table alias is not allowed as an input of table functions: line 1 col 48 (at pos 47)
In general our product has a LOT of small Oracle PL/SQL functions that are invoked from SQL within application code. This is a huge bottleneck while migrating to HANA. Any best practice anyone can recommend for this issue?
-Thanks
nphanaHi nphana,
Instead of using single function, you can create another function and Invoke the function and can use IN parameter.
Here is the example:
CREATE FUNCTION RAJ.MY_FUNC (I_VKORG NVARCHAR (4), I_VTWEG NVARCHAR (2),
I_SPART NVARCHAR (2), I_PARVW NVARCHAR (2), I_PARZA NVARCHAR (3) )
RETURNS TABLE (KUNNR NVARCHAR (10))
LANGUAGE SQLSCRIPT AS
BEGIN
RETURN
SELECT "ECC2HANA"."KNVP".KUNNR FROM "ECC2HANA"."KNVP"
WHERE "ECC2HANA"."KNVP".VKORG = :I_VKORG
AND "ECC2HANA"."KNVP".VTWEG = :I_VTWEG
AND "ECC2HANA"."KNVP".SPART = :I_SPART
AND "ECC2HANA"."KNVP".PARVW = :I_PARVW
AND "ECC2HANA"."KNVP".PARZA = :I_PARZA
END
SELECT * FROM RAJ.MY_FUNC('7500','10','00','AG','000');
Result is shown below:
Now I created another function so that I can use the result set of above function which is used as criteria for some other table.
I not used any input parameter for second function but can be used if required.
CREATE FUNCTION RAJ.FUNC_MY_FUNC ( )
RETURNS TABLE (NAME1 NVARCHAR (35))
LANGUAGE SQLSCRIPT AS
BEGIN
RETURN
SELECT "ECC2HANA"."KNA1".NAME1 FROM "ECC2HANA"."KNA1"
WHERE "ECC2HANA"."KNA1".KUNNR IN (SELECT * FROM RAJ.MY_FUNC('7500','10','00','AG','000'));
END;
Result is shown below:
Similarly you can do for your requirement.
Regards
Raj -
Compound date (dd.MM.yyyy HH:mm) from two input fields
Hi,
I need to compound a date field in format dd.MM.yyyy HH:mm from two input fields(date and time field). I was trying a lot but could not get it to work. So right now I'm trying to start it simple but still have a couple of problems.
1.) To start easy I wanted to fill a hardcoded date into my field.
setAttribute(MYDATE, "01.01.2005 12:10");
brings (java.lang.IllegalArgumentException) Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
2.) setAttributeInternal(MYDATE, "01.01.2005 12:10");
brings JBO-27018: AttrSetValException Cause: The type of attribute value provided as an argument to the set() method for this attribute is not an instance of the Java type that this attribute expects.
3.) The thing that I reall need is something like:
DateFormat sim = new SimpleDateFormat("dd.MM.yyyy HH:mm");
java.util.Date datum = new java.util.Date();
try
datum = sim.parse("01.01.2005 12:30");
} catch (ParseException e)
setAttributeInternal(MYDATE, datum);
but right now this also ends with the JBO-27018
I also did try different types (timestamp and date) in my entity object and different format masks. Not working at all. All the threads I found are pointing to articles from Steve, which are not available anymore (the links don't work). So any help is appreciated.
Regards, PeterThankyou for the hint. I get it to work with
public void whatever
DateFormat simple = new SimpleDateFormat("dd.MM.yyyy HH:mm");
java.util.Date javaDate = new java.util.Date();
try
javaDate = simple.parse("01.01.2005 12:30");
} catch (ParseException e)
java.sql.Timestamp sqlDate = new java.sql.Timestamp(javaDate.getTime());
oracle.jbo.domain.Date nowDate = new oracle.jbo.domain.Date(sqlDate);
setAttributeInternal(MYDATE, nowDate);
but is there an easier and more 'beautiful' way to do this? Like using a date formatter on oracle.jbo.domain.Date instead using the SimpleDateFormat? btw. did I mention that I'm a Forms and PL/SQL programmer ;-)
Regards, Peter -
Same dimension in two different fact tables
Hi,
I have one same dimension in two different fact tables. I would like to know how BI server choose the fact table when I do a request in this dimension.
I know that is always using the same fact table, but I would like to know why choose this table and not the other.
ThanksSorry,
But it doesn't seem to me.
I reorded the tables in the BMM layer and it continues to use the same table, regardless this table is in last.
After, I droped that table in the BMM layer and it continued to use the same.
Thanks for your reply
Maybe you are looking for
-
Are there other backup tools for Oracle 8i than Legato or RMAN? And, are the backup tools of Oracle 8 available for Oracle 8i? Or are they usable with Oracle 8i?
-
Which table stores the pages?
I would like to create an LOV that has the pageids in the application as a return value, and their titles as the display values. I am creating a function in which users can edit and store their favorites, which are displayed on the right of their scr
-
Loading the correct constructor from an init file...
by reading lines like that: Apple 10 rgb000100255 Apple 20 rgb255150255 from an "init.txt" file but i get an IllegalArgumentException when it tries to find the correct constructor based on the paramTypes array, which contains the types of the paramet
-
No Library or Style items for menus and buttons A.En. CS4
Hi All, I recently installed AMC CS4:PP CS4 Ver.4.0.0,PS CS4 extended Ver.11.0, AEn Ver.4.0.0.258,AE Ver.4.0.0,ASB CS4 Ver.2.0.The install seem to have went ok.But,when I launch Encor I see no Items in the library and style categories.I looked in the
-
Intermittent problems playing/burning CDs
About every 3rd CD or so I try to play on my G5, I get a clicking noise and iTunes freezes up -- I can't play, eject, etc. I then have to force quit iTunes and then restart it (sometimes ejecting and reinserting the CD) and that works most of the tim