How to format this using Jackson JSON?
This is the desired output
{"node":{"type":"community","field_incentives":{"und":[{"value":"fun"},{"value":"nice"}]},"field_email":{"und":[{"value":"[email protected]"}]}}}
Here's my code.
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
JsonFactory f = new JsonFactory();
JsonGenerator g = f.createJsonGenerator(outputStream);
g.writeStartObject();
g.writeObjectFieldStart("node");
g.writeStringField("type", "community");
g.writeObjectFieldStart("field_incentives");
g.writeFieldName("und");
g.writeStartArray();
???I don't know how to make [{"value":"fun"},{"value":"nice"}]
g.writeEndArray();
g.writeObjectFieldStart("field_email");
g.writeFieldName("und");
g.writeStartArray();
g.writeEndArray();
g.writeEndObject();
g.close();
Here's the output
{"node":{"type":"community","title","field_incentives":{"und":[],"field_email":{"und":[]}}}}
Thanks
FAT should still be supported. You may have to erase the partition or disk.
This is the list of supported filesystems type.
diskutil listfilesystems
Formattable file systems
These file system personalities can be used for erasing and partitioning.
When specifying a personality as a parameter to a verb, case is not considered.
Certain common aliases (also case-insensitive) are listed below as well.
PERSONALITY USER VISIBLE NAME
ExFAT ExFAT
Free Space Free Space
(or) free
MS-DOS MS-DOS (FAT)
MS-DOS FAT12 MS-DOS (FAT12)
MS-DOS FAT16 MS-DOS (FAT16)
MS-DOS FAT32 MS-DOS (FAT32)
(or) fat32
HFS+ Mac OS Extended
Case-sensitive HFS+ Mac OS Extended (Case-sensitive)
(or) hfsx
Case-sensitive Journaled HFS+ Mac OS Extended (Case-sensitive, Journaled)
(or) jhfsx
Journaled HFS+ Mac OS Extended (Journaled)
(or) jhfs+
Similar Messages
-
Hi out there. To capture a screen shot one uses: Command-Shift-3 or 4. I have done this for a long time. Now suddenly neither screen shot command works anymore. Suggestions how to get this useful function back? Thanks, Georgx
Command-Shift-3 and 4 works just fine on several Macs that I have here.
Try restarting your Mac....or post in the specific support area for your Mac model....for more advice.
https://discussions.apple.com/index.jspa -
How to achive this using servlet
hi I am new to this technology... My requirement is , First I have to check whether that rebate_sku_num exists in the database or not.. If exits i need to update the row.. If now I have to insert the new row with values.. How to achive this..
my screen contains 7 rows... in will increase.. for every submit.. i have to check with the database.. whether the rebate_sku_num exists or not.. help me out.. here is my code.. i am not sure how to format my code.. in future i will do it...
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.servlet.SingleThreadModel;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import java.io.IOException;
import java.sql.ResultSet;
import java.io.*;
import java.util.*;
import java.util.Date;
import java.text.*;
public class AddRebate extends HttpServlet implements SingleThreadModel {
public void init(ServletConfig servletconfig) throws ServletException {
super.init(servletconfig);
public void doPost(HttpServletRequest httpservletrequest, HttpServletResponse httpservletresponse)
throws ServletException, IOException {
HttpSession session;
session = httpservletrequest.getSession(true);
String user_name;
String divisionCode;
String rebate_sku_num[];
String selectedMonth;
String amount[];
String message = "";
String Query="";
String RebateId="";
boolean flag = true;
// from here
Calendar todaysdate = new GregorianCalendar();
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
SimpleDateFormat sdf1 = new SimpleDateFormat("MM/dd/yyyy HH:MM:SS");
System.out.println("today's date: " + sdf.format(todaysdate.getTime()));
String entryDate = sdf.format(todaysdate.getTime());
String entryDate1 = sdf1.format(todaysdate.getTime());
System.out.println("entering date is " +entryDate) ;
System.out.println("entering date is " +entryDate1) ;
// to here
user_name = (String) session.getAttribute("user_name");
divisionCode = (String) session.getAttribute("division_code");
selectedMonth = httpservletrequest.getParameter("selectedMonth");
rebate_sku_num = httpservletrequest.getParameterValues("rebateId");
amount = httpservletrequest.getParameterValues("amount");
System.out.println("AddRebate : doPost() : selectedMonth = " + selectedMonth);
System.out.println("AddRebate : doPost() : rebate_sku_num = " + rebate_sku_num);
System.out.println("AddRebate : doPost() : amount = " + amount);
// from here
flag = true;
for (int z = 0; z < rebate_sku_num.length && flag; z++) {
try {
flag=false;
String s = "select REBATE_SKU_NUM from EASMSA_REBATE_SKU_DETAILS_TB where REBATE_SKU_NUM ='" + rebate_sku_num[z] + "'";
System.out.println("AdjustmentServlet : doGet() : checking sku validity query = " + s);
ResultSet resultset = DatabaseConnection.executeQuery(s);
if (resultset != null) {
while (resultset.next()) {
RebateId = resultset.getString("REBATE_SKU_NUM");
flag = true;
if ((rebate_sku_num[z] != RebateId)) {
System.out.println("get the values" +rebate_sku_num);
System.out.println("get the values" + RebateId);
Query = "INSERT INTO EASMSA_REBATE_SKU_DETAILS_TB " +
"( REBATE_SKU_NUM, REBATE_DATE, REBATE_AMT, CREATED_BY," +
"CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE ) VALUES (" +
"'" + rebate_sku_num[z] + "', " +
"TO_Date( '" + "30/" + selectedMonth + "', 'dd/MM/YYYY HH:MI:SS AM'), " +
"'" + amount[z] + "' , '" + user_name + "'" +
", TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM')" +
", '" + user_name + "'," +
" TO_Date( '" + entryDate + "', 'MM/dd/YYYY HH:MI:SS AM'))";
System.out.println("query is executed" +Query);
}else if ((rebate_sku_num[z] == RebateId )){
Query = "update EASMSA_REBATE_SKU_DETAILS_TB set REBATE_AMT=" + amount[z] + " where REBATE_SKU_NUM='" + rebate_sku_num[z] + "'";
System.out.println("query is executed for updation" +Query);
} else {
System.out.println("AdjustmentServlet : doGet() : checking for sku validity : resultset null");
// message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
flag = false;
} catch (Exception exception1) {
System.out.println("AdjustmentServlet : doGet() : exception in checking validity of SKU");
exception1.printStackTrace();
// message = "SKU '" + sku[z] + "' of customer '" + customer[z] + "' and location '" + location[z] + "' is not valid.";
message = "SKU '" + rebate_sku_num[z] + "' is not valid.";
flag = false;
try {
if (DatabaseConnection.executeUpdate(Query) == 0) {
System.out.println(" AddRebate : doPost() : rollback: error in executing update query= " + Query);
DatabaseConnection.rollBack();
message = "Some problem in updating transactions. Please try again later.";
flag = false;
// break;
} else {
System.out.println("AddRebate : doPost() : update sucessfull");
message = "Rebate Transactions has been updated.";
flag = true;
} catch (Exception ex) {
System.out.println("AddRebate : doPost() : exception in update query");
message = "Some problem in updating transactions. Please try again later.";
flag = false;
ex.printStackTrace();
session.setAttribute("message", message);
httpservletresponse.sendRedirect("Welcome1.jsp?s=y");
return;Oh and you can give me the dukes for helping you here:
http://forum.java.sun.com/thread.jsp?forum=45&thread=475828&tstart=0&trange=15 -
Hi Friends,
I have the following requirement for Travel request workflow and Invoice approval workflow. Please let me know how to achieve this.
While sending a work item to sap inbox we will put the base BO in the task container right so that the approver can open the particular transaction.I need the same functionality in UWL but instead of the BO i need to place some link so that the user can open an iview or webdynpro application. Basically the user dont want to login to SAP GUI he needs everything to be done in Portal itself.
Do we need to do some settings in tcode SWFVISU for this or do we need to change the associated xml file in UWL to provide the link to iview. Please advice.Hi,
If i understand your requirement correctly, you want to place a link of BO in UWL but don't want that to get to SAP GUI. Right ?
I think it's possible. We had ECC 6.0 and EP 6.0 with SP 11. And, we had the requirement of showing up the TRIP BO in UWL thru' an iVIEW. We tried the SWFVISU and it didn't work. But, i think this facility has been taken care in later service packs. Pl approach SAP and they should be able to help you out. I'm not sure about the details of the solution SAP provided us, but it worked for us..like there will be a button "Display XXXXXX" which infact opens up your BO in UWL without logging into GUI.
Hope this helps.
venu -
How the achive this using the function module SO_NEW_DOCUMENT_SEND_API1
I want to format the body of the mail like this.How to maintian proper spacing between the fields.kindly suggest.
It may contain multiple line items also.
SC Number | SC Item Number | SC Item Qty | PO Number | PO Item Price
SC Name | SC Item Text | SC Item Price | PO Item | Invoice Item Price
<SC_NUMBER> <SC_ITEM> <SC_QTY> <PO_NUMBER> <PO_PRICE>
<SC_NAME> <SC_ITEM_TEXT> <SC_PR> <PO_ITEM> <IV_PRICE>Hi,
You can do with SOFM method select over there Excel Sheet as same format you can select all fields respectively so in the output in an attachment you will get the values as you like that format in the same way multiple line items also you can retrive data in Excel sheet attachement, then using this FM you can send mail with this attachement.
Thanks and regards,
Prabhakar Dharmala -
How to format this date to german?
Hi!
I have following xml structure and try to format the value of customfield to a german date format:
<issues>
<issue id="5827" >
<customfield name="Erledigungsdatum" type="8" >Thu, 31 Aug 2006 00:00:00 +0200</customfield>
Following expression does not work:
<?format-date:./customfield[@name='Erledigungsdatum'];'DD.MM.YYYY'?>
How can I achieve this?
RegardsHi Kleiber ,
To use the Microsoft format mask or the Oracle format mask, the date from the XML
data source must be in canonical format.
This format is:
YYYY-MM-DDThh:mm:ss+HH:MM
Just check the user guide, to format for your style -
How to format this table in jsp page?
I have a table in database and there are four data field in it.They are "id","name","email","registetime".
In javabean,I add all this data to a vector:" ResultSet rs;
while(rs.next()){
vec.add(rs.getString("id");
vec.add(rs.getString("name");
vec.add(rs.getString("email");
vec.add(rs.getString("registetime");} ";
I use a Iterator to read all the data to jsp page:"
iter=vec.iterator();
while(iter.hasNext()){
int i=0;
%>
<table border="1" bordercolor="#FF6699" bgcolor="#CCCC99">
<%
if(i==0|i%8==0){
out.println("<td><tr>");
%>
<%=iter.next()%>
</td>
<%
if(i%8==0)
out.println("</tr></td>");
i++;
%></table>
I use a variable i for change range.I want to output a '\n' after output 4 data.But now the data in IE is this:
1
lyo
[email protected]
2003-6
2
Yashnoo
[email protected]
2003-7
It not that I want to get.I means I want to get data like this:
1 lyo [email protected] 2003-6
2 Yashnoo [email protected] 2003-7
How can I do? :(Anyone has idea?But I change it to this:
<body>
<table border="1" bordercolor="#FF6699" bgcolor="#CCCC99">
<%
Iterator iter=null;
ResultSet rs=null;
Vector vec=new Vector();
vec=lyo.addData(rs,vec);
iter=vec.iterator();
try{
while(iter.hasNext()){
int i=0;
%>
<%
if(i%8==0){
out.print("<tr>");
out.print("<td>");
%>
<%=iter.next()%>
<%
out.print("</td>");
if(i%8==0){
out.print("</tr>");
i++;
%></table>
<%
}catch(Exception e){
out.println(e.toString());
%>
It can't help? Why? -
How to Validate this using Regular Expressions
Hi All,
I have following types of Mail IDs, Each is a String.
It may be either of the Following:
[email protected]
or
Ameer<[email protected]>
Then How to validate using the Regular Expressions.use this regex.. might need to convert it from perl regex flavor:
(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t]
)+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:
\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(
?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[
\t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\0
31]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\
](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+
(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:
(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z
|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)
?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\
r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[
\t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)
?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t]
)*))*(?:,@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[
\t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*
)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t]
)+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*)
*:(?:(?:\r\n)?[ \t])*)?(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+
|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r
\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:
\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t
]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031
]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](
?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?
:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?
:\r\n)?[ \t])*))*\>(?:(?:\r\n)?[ \t])*)|(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?
:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?
[ \t]))*"(?:(?:\r\n)?[ \t])*)*:(?:(?:\r\n)?[ \t])*(?:(?:(?:[^()<>@,;:\\".\[\]
\000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|
\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>
@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"
(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t]
)*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?
:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[
\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:[^()<>@,;:\\".\[\] \000-
\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(
?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)?[ \t])*(?:@(?:[^()<>@,;
:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([
^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\"
.\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\
]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*(?:,@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\
[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\
r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\]
\000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]
|\\.)*\](?:(?:\r\n)?[ \t])*))*)*:(?:(?:\r\n)?[ \t])*)?(?:[^()<>@,;:\\".\[\] \0
00-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\
.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,
;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|"(?
:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*))*@(?:(?:\r\n)?[ \t])*
(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".
\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t])*(?:[
^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\]
]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*\>(?:(?:\r\n)?[ \t])*)(?:,\s*(
?:(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(
?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[
\["()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t
])*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t
])+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?
:\.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|
\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*|(?:
[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".\[\
]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)*\<(?:(?:\r\n)
?[ \t])*(?:@(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["
()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)
?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>
@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*(?:,@(?:(?:\r\n)?[
\t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,
;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\.(?:(?:\r\n)?[ \t]
)*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\
".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*)*:(?:(?:\r\n)?[ \t])*)?
(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\["()<>@,;:\\".
\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])*)(?:\.(?:(?:
\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z|(?=[\[
"()<>@,;:\\".\[\]]))|"(?:[^\"\r\\]|\\.|(?:(?:\r\n)?[ \t]))*"(?:(?:\r\n)?[ \t])
*))*@(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])
+|\Z|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*)(?:\
.(?:(?:\r\n)?[ \t])*(?:[^()<>@,;:\\".\[\] \000-\031]+(?:(?:(?:\r\n)?[ \t])+|\Z
|(?=[\["()<>@,;:\\".\[\]]))|\[([^\[\]\r\\]|\\.)*\](?:(?:\r\n)?[ \t])*))*\>(?:(
?:\r\n)?[ \t])*))*)?;\s*) -
How to achive this using analytical function-- please help
version 10g.
this code works just fine with my requirement. i am tyring to learn analytical functions and implement that in the below query. i tried using row_number ,
but i could nt achive the desired results. please give me some ideas.
SELECT c.tax_idntfctn_nmbr irs_number, c.legal_name irs_name,
f.prvdr_lctn_iid
FROM tax_entity_detail c,
provider_detail e,
provider_location f,
provider_location_detail pld
WHERE c.tax_entity_sid = e.tax_entity_sid
AND e.prvdr_sid = f.prvdr_sid
AND pld.prvdr_lctn_iid = f.prvdr_lctn_iid
AND c.oprtnl_flag = 'A'
AND c.status_cid = 2
AND e.oprtnl_flag = 'A'
AND e.status_cid = 2
AND (c.from_date) =
(SELECT MAX (c1.from_date)
FROM tax_entity_detail c1
WHERE c1.tax_entity_sid = c.tax_entity_sid
AND c1.oprtnl_flag = 'A'
AND c1.status_cid = 2)
AND (e.from_date) =
(SELECT MAX (c1.from_date)
FROM provider_detail c1
WHERE c1.prvdr_sid = e.prvdr_sid
AND c1.oprtnl_flag = 'A'
AND c1.status_cid = 2)
AND pld.oprtnl_flag = 'A'
AND pld.status_cid = 2
AND (pld.from_date) =
(SELECT MAX (a1.from_date)
FROM provider_location_detail a1
WHERE a1.prvdr_lctn_iid = pld.prvdr_lctn_iid
AND a1.oprtnl_flag = 'A'
AND a1.status_cid = 2)thanks
Edited by: new learner on May 24, 2010 7:53 AM
Edited by: new learner on May 24, 2010 10:50 AMMay be like this not tested...
select *
from
SELECT c.tax_idntfctn_nmbr irs_number, c.legal_name irs_name,
f.prvdr_lctn_iid, c.from_date as c_from_date, max(c.from_date) over(partition by c.tax_entity_sid) as max_c_from_date,
e.from_date as e_from_date, max(e.from_date) over(partition by e.prvdr_sid) as max_e_from_date,
pld.from_date as pld_from_date, max(pld.from_date) over(partition by pld.prvdr_lctn_iid) as max_pld_from_date
FROM tax_entity_detail c,
provider_detail e,
provider_location f,
provider_location_detail pld
WHERE c.tax_entity_sid = e.tax_entity_sid
AND e.prvdr_sid = f.prvdr_sid
AND pld.prvdr_lctn_iid = f.prvdr_lctn_iid
AND c.oprtnl_flag = 'A'
AND c.status_cid = 2
AND e.oprtnl_flag = 'A'
AND e.status_cid = 2
AND pld.oprtnl_flag = 'A'
AND pld.status_cid = 2
)X
where c_from_date=max_c_from_date AND e_from_date =max_e_from_date AND
pld_from_date=max_pld_from_date -
How to code this using FIELD SYMBOL ?
Hello All,
I never used field symbols before and I think this is where I should use field symbols in my program.
I have a selection parameter period (p_period) and based on the p_period value(XX), I need to display the HSLXX, KSLXX from table GLT0 using field symbols. Can anyboby help me?
Thanks,
Chandni ReddyRight, you can use field-symbols, here is a example.
report zrich_0002.
data: xGLT0 type GLT0 .
data: field_name(20) type c.
field-symbols: <fs> .
parameters: p_per(2) type n.
* Read a line from table
select Single * from glt0 into xglt0.
* Build the field name that you want to access
concatenate 'XGLT0-HSL' p_per into field_name.
* Assign it
assign (field_name) to <fs>.
* Write it
write:/ <fs>.
Regards,
Rich Heilman -
I need to insert a nvarchar type column with data like 7414;#Butler, Heather into a int type column, but only with the number before the before the character ; in the mentioned string.
In the above case only 7414 needs to be inserted into the in type column of another table. This integer value need not be restricted to 4 characters. It may be 3 or 5 characters too or anything.
Any help is appreciated....Extension of Li's sql
Try this
declare @s varchar(50)
set @s='74146;#Butler, Heather'
--set @s='74;#Butler, Heather'
Select cast(cast(substring(@s, 0, charindex(';',@s)) as CHAR(4)) as int)
--Prashanth -
How to FORMAT a number field in Formula editor
Dear All,
I have a "QUANTITY" field in database which has to get displayed in the report as " QTY : " that will look like QTY : 54.
Where as now it coming as QTY : 54.00
So, how to format this field in the Formula Editor while concatenation of
"QTY : " + CStr()
If any one has any idea please help me out.
Thanks and regards.Hi friends,
Thanks to all of you that you all have replied my question and given your answers.
Thanks to all of you specially Alpana Phapale, Wallie Chang, Poonam Thorat and Raghavendra Gadhamsetty, the answers given by you is the perfect one may be in different ways and only one can be used by me. But your answers were exactly correct.
Thanks to Asha Lund, your answers is also correct but the result as per my report should be in figures and not in words.
Whatever it may be but for repling thanks to you too.
Please be always with me, I am very new to Crystal Report and just learnt by my own as my Boss ordered me to do this and I have to make about 50 reports within 15 days. I think the day will start from today.
Well friends thanks a lot again for all your effort. -
cfinsert tablename attribute, how to format for Oracle
I've been using <cfquery> successfully for a long time
to do table inserts, but now I'd like to use <cfinsert> for
the simple inserts. However, I'm getting error messages. A typical
<cfquery> against my Oracle database would look like:
<cfquery name="myQuery"
datasource="#application.DataSource#">
INSERT into abc.action_type_def (field1, field2, field3)
VALUES ('value1', value2'', value3'')
</cfquery>
I tried the following <cfinsert> but got the error
message that follows the tag:
<cfinsert datasource="#application.DataSource#"
tablename="ABC.ACTION_TYPE_DEF"
formfields="FIELD1, FIELD2, FIELD3">
ERROR:
Message: There are no columns found for the given table name
"PRFA.ACTION_TYPE_DEF".
Detail: This error may be caused by not specifying the table
name in the format that the database server expects. (For example.
Oracle Server table name must be upper case or the Server table
name must be qualified in the format of "schema.table_name". For
the SQL Server, the format is "databasename.username.tablename",
such as in customers.dbo.orders)
I've tried upper and lower case on the tablename attribute,
tried leaving the "abc." off, but I just can't seem to get it to
work. Any idea how to format this tag to go against an Oracle
database?
Thanks! PamWord of advice: I would stay away from using cfinsert and
cfupdate tags, unless you are prone to masochistic tendencies and
enjoy pain and suffering. These tags are notoriously bug-prone, and
cause more work than they save. Just my opinion, but I'm sure that
it is one shared by many on these forums.
Having said that, you might take a look at the attributes for
this tag, as you seem to have combined the schema (table owner)
with the table name, as in ABC.ACTION_TYPE_DEF, which should be
listed distinctly using separate attributes, namely tableOwner and
tableName respectively. Note: I don’t use these tags so this
“fix” is just based on reading the
LiveDocs
for this tag.
Since you have so much more control using cfquery, and you
said that you have been using it for quite some time, why switch to
using cfupdate/cfinsert? If you already know enough SQL to do an
insert or update , then you really don't need to use these tags.
You will thank me.
Phil -
How to implement this in Oracle Apps 11i
Hello Friends
I am working as a consultant for a manufacturing company.
They have a format for charging Excise and Sales tax on their products (example below). I dont know how to implement this using oracle apps. Please help me ASAP.
eg.
Product A:
MRP = Rs. 100
Assessable Value (i.e. the value at which I have contract with the Government to pay Excise Duty) = 60% of MRP = Rs. 60 in this case.
Excise Duty = 16% of AV =0.16*60 = Rs. 9.6
Now, lets suppose I am selling my product to a dealer at 30% discount.
Therefore, Sale Price = 70% of MRP = Rs. 70
Sales Tax = 4% of Sale Price = 0.04*70 = 2.8
Therefore, total revenue from the deal = 70-9.6-2.8 = Rs. 57.6you can use Advance Pricing or creating discount or attiribute while calculating.
this is not much complex, possible even with Advance Pricing too. Thanks
Shiv -
Thank you for approving my feed iTunes . The only problem is, there is no art work, even though artwork was submitted correct sizes and formats were used. Why is this and how can the problem be rectified?
Thanks for getting back. Hadn't got round to re uploading the amended feed. I just did it now.
The only thing is, Feed Validator doesn't like it because of the picture size, and a couple of other things, it reeds the following:
Sorry
This feed does not validate.
line 22, column 14: width must be between 1 and 144: 1400 [help] <width>1400</width>
^
line 23, column 15: height must be between 1 and 400: 1400 [help] <height>1400</height>
^
line 25, column 21: XML parsing error: <unknown>:25:21: not well-formed (invalid token) [help]
<itunes:image href=http://www.whiteberg.com/Wdotfontitunes2.png" />
^
In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendations.
Your feed appears to be encoded as "utf-8", but your server is reporting "US-ASCII" [help]
line 4, column 114: Self reference doesn't match document location [help]... dcast.xml" type="application/rss+xml" />
^
Maybe you are looking for
-
Does it matter where the external usb hub is plugged in?
I just got e new 7 port powered usb hub from Sitecom to connect a camera (once in a while) or card reader, printer(s), scanner, external drive etc. When I use one of the four ports on the backside of the iMac, only 1 -and only this one- specific port
-
Locking problem in Forms Builder 6i, Oracle 9i
It appears that forms builder is issuing exclusive locks on referenced DB objects during and after compilation. This causes problems when trying to issue DDL statements against these objects while builder is connected. Is this the proper lock mode or
-
Axes problem on chart scrolling
Hi, first of all sorry for my English! Well, i'm developing the scrolling of a chart: i mean, if i drag a chart, i can move around it while the axes just remain where they are: this is to navigate the chart when the start/end values are greater than
-
The stock photo app keeps force closing during edit and sometimes regularly. Is this a problem everyone is experiencing?
-
Windows Integrity Level for Application set at startup
Hi, Yesterday I found a problem in my application that it had not have the same integrity level as Outlook. Therefore someone from microsoft adviced me to look at the integrity level and make them both the same. I managed to find a CommandPrompt comm