Re: dummies guide to using content component?

2009-05-10 Thread snowch

Hi BJ,

I don't think there is enough information in the wiki to even get me
started!

Many thanks,

Chris



BJ Freeman wrote:
> 
> Your welcome to document you trek in the learning cycle so the next one
> can benefit from your experience.
> 
> 
> snowch sent the following on 5/10/2009 8:11 PM:
>> Hi Forum,
>> 
>> Is there a dummies guide to using the content component?
>> 
>> I've looked through the wiki docs, but the info there seems more like a
>> reference rather than tutorial.
>> 
>> Many thanks,
>> 
>> Chris
>> 
> 
> -- 
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/dummies-guide-to-using-content-component--tp23476549p23478026.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: How to give id for a field in form widget

2009-05-10 Thread Ravindra Mandre
Thanks for reply Ruth,
Actually I am working in form widget and in form-widget's field tag there is
an attribute named "id-name" which is used to provide id for that field but
I am using  tag after the field and also  I provided id-name , but
not getting id for that field in firebug.

may the code help you for giving solution.




In above when I inspecting "existingNameId" through firebug then it does not
show any id???


Thanks in advance

Regards
Ravindra Mandre


On Sun, May 10, 2009 at 5:50 AM, Ruth Hoffman  wrote:

> Actually, if the second example works - I would think it should read
> something like:
>
> id="some_id {width: 120px}"
>
> Ruth
>
> Ruth Hoffman wrote:
>
>> Hi Ravi:
>> How about:
>> 
>> ...
>> 
>>
>> Is that what you mean by set default value?
>>
>> Or do you want something like:
>> id="some_id: {width: 120px}"?  Not sure if you can do this. Haven't tried.
>>
>> Ruth
>> Ravi wrote:
>>
>>> Hi list,
>>> Is there any way that we can give id for a field in form widget and
>>> can set id's default value.
>>> any answer much appreciated
>>>
>>>
>>> Regards
>>> Ravindra Mandre
>>>
>>>
>>>
>>
>>
>>
>


Re: dummies guide to using content component?

2009-05-10 Thread BJ Freeman
Your welcome to document you trek in the learning cycle so the next one
can benefit from your experience.


snowch sent the following on 5/10/2009 8:11 PM:
> Hi Forum,
> 
> Is there a dummies guide to using the content component?
> 
> I've looked through the wiki docs, but the info there seems more like a
> reference rather than tutorial.
> 
> Many thanks,
> 
> Chris
> 

-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.



dummies guide to using content component?

2009-05-10 Thread snowch

Hi Forum,

Is there a dummies guide to using the content component?

I've looked through the wiki docs, but the info there seems more like a
reference rather than tutorial.

Many thanks,

Chris

-- 
View this message in context: 
http://www.nabble.com/dummies-guide-to-using-content-component--tp23476549p23476549.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Re: Request for Review and Feedback on Accounting Documentation

2009-05-10 Thread Jacques Le Roux

From: "Vince Clark" 

This link is hard to find: 
http://docs.ofbiz.org/display/OFBIZ/End+User+Documentation


It's under Home and I think that almost all pages should be under home to 
better organize things.
Actually we miss even more organisation than information in wiki... For 
instance there are some redundancy between Applications and
End User Documentation and we should try to merge them, but... who cares ? :/ 
(complaining is easy)


It does not seem to be linked from docs.ofbiz.org. There is an End User 
Documentation link but it does not point to the URL above.


I guess it's because it supposed to be used online from OFBiz OOTB.

Jacques


- Original Message -
From: "Bruno Busco" 
To: user@ofbiz.apache.org, "Jacques Le Roux" 
Sent: Sunday, May 3, 2009 1:58:11 PM GMT -07:00 US/Canada Mountain
Subject: Re: Request for Review and Feedback on Accounting Documentation

We have here http://docs.ofbiz.org/display/OFBIZ/End+User+Documentation
a page that should work as a "root" for all online help pages even if it
does not look really nice with the new Confluence theme...

Sharan,
if you have added some help pages it might be possible that they are not
linked yet to the OFBiz pages. If you find some of these please list theme
in a message and I will add links for them.

Bruno



2009/4/23 Jacques Le Roux 


Thanks Sharan,

This is a very important point for OFBiz reputation. If we were able to
make the same detailled effort in other areas, OFBiz would get more
attention I guess (most reviews point out the lack of *organised* end user
documentation). Bruno's work on the help mechanism is nicely completing your
work. We should defintively try to mimic the result you achieved there!

I'm not a specialist in accouting but I will review your work next week.

Jacques

From: "Ashish Vijaywargiya" 

Thanks Sharan for your hard work on documenting things.
It will help a lot.

I will review it as soon as I will get a chance.

--
Ashish Vijaywargiya

Sharan-F wrote:


 Hi Everyone

For the last few months I've been working on documenting the existing
OFBiz
accounting functionality on the Wiki. Although I'm still working through
some of the areas I think there is a lot of information there so I'd like
to
ask people to take a look and let me have any feedback or comments.

The Wiki address is as follows:

http://docs.ofbiz.org/display/OFBIZ/Accounting+Manager

Links to the documentation are also available by clicking the 'Help'
button
on any of the accounting pages.

One point to note is that I've tried to maintain the module menu structure
in the documentation so some of the page numbering might look a bit strange
at the moment but I'm planning to sort that out and standardise it.

Once completed I'd like to do some work on identifying what I've across to
date in terms of bugs and potential missing processes or functionality.

I've also been asked to look at moving the Accounting documentation from
the
Wiki and into to the OFBENDUSER workspace so that it will form part of the
formal OFBiz documentation ā?" so I'll be working on that too.

Thanks
Sharan













Re: how to import data from excel sheet

2009-05-10 Thread BJ Freeman
Ok the way to upload changes with out a form.
First understand that in the form way the image is uploaded into server
memory, from your desktop, then you read the data from the server memory
and put it into a file. This is a function of the webbrowser not ofbiz.
The problem is that a server can not read from you local drive. You can
only do this thru a web browser.

so you must either put the images on the server, thru FTP then reference
them that way in your excel.
or put the images on a machine that is exposed to the internet with a
web server and give a http:// type url to be uploaded, in your excel.


nalin chandra sent the following on 5/10/2009 7:24 AM:
> Thanks for reply.
> 
> But that is not my problem.
> Once again i clear my problem.
> I want to upload all the information about product category etc from the
> excel sheet where we write all the required information about product and
> category. In that excel sheet i also mentioned the local system path of
> image. Now i want to upload the image from local system to remote server
> using path of that. Now i read the local system file path from excel sheet
> as shown in bold.
> 
> I know we need a form to upload the file 
> 
>   file: 
>   
>  .
> 
> but i my case there is no form. i got the file path in my method now i want
> to upload the that file from local system to remote server.
> 
> I think now you under stand my problem.
> with the use of this we have no need to upload the product detail one by one
> to the server.
> 
> waiting for your reply.
> 
> Thanks
> 
> Nalin Chandra
> 
> 
> 
> 
>> public static String uploadCategory(HttpServletRequest request,
>> HttpServletResponse response) {
>>
>> try
>> {
>>  String filename = "D:/category.xls";
>>   WorkbookSettings ws = new WorkbookSettings();
>>   ws.setLocale(new Locale("en", "EN"));
>>   Workbook workbook = Workbook.getWorkbook(new File(filename),ws);
>>   Sheet s  = workbook.getSheet(0);
>>   readCategoryDataSheet(s, request);
>>   workbook.close();  
>> }
>> catch (IOException e)
>> {
>>   e.printStackTrace();
>> }
>> catch (BiffException e)
>> {
>>   e.printStackTrace();
>> }
>>
>> return "success";
>> }
>>
>> private static void readCategoryDataSheet(Sheet s, HttpServletRequest
>> request)
>> {
>>   Cell rowData[] = null;
>>   int successCount = 0;
>>   int failCount = 0;
>>   int rows = s.getRows();
>>   int column = s.getColumns();
>>   String productCategoryId = "";
>>   String productCategoryTypeId = "";
>>   String primaryParentCategoryId = "";
>>   String categoryName = "";
>>   String description = "";
>>   String longDescription = "";
>>   String categoryImageUrl = "";
>>   String linkOneImageUrl = "";
>>   String prodCatalogId = "";
>>   String prodCatalogCategoryTypeId = "";
>>   String sequenceNum = "";
>>
>>   for (int i = 1; i < rows; i++) {
>>  rowData = s.getRow(i);
>> if (rowData[0].getContents().length() != 0) {
>> for (int j = 0; j < column; j++) {
>> switch (j) {
>> case 0:
>> productCategoryId =
>> rowData[j].getContents();
>> case 1:
>> productCategoryTypeId =
>> rowData[j].getContents();
>> case 2:
>> primaryParentCategoryId =
>> rowData[j].getContents();
>> case 3:
>> categoryName =
>> rowData[j].getContents();
>> case 4:
>> description =
>> rowData[j].getContents();
>> case 5:
>> longDescription =
>> rowData[j].getContents();
>> case 6:
>> categoryImageUrl =
>> rowData[j].getContents();
>> case 7:
>> linkOneImageUrl =
>> rowData[j].getContents();
>> default:
>> break;
>> }
>> }
>> }
>> String imageFilenameFormat =
>> UtilProperties.getPropertyValue("catalog", "image.filename.format");
>> String imageServerPath =
>> UtilProperties.getPropertyValue("catalog", "image.server.path");
>>   

Re: how to import data from excel sheet

2009-05-10 Thread nalin chandra

Thanks for reply.

But that is not my problem.
Once again i clear my problem.
I want to upload all the information about product category etc from the
excel sheet where we write all the required information about product and
category. In that excel sheet i also mentioned the local system path of
image. Now i want to upload the image from local system to remote server
using path of that. Now i read the local system file path from excel sheet
as shown in bold.

I know we need a form to upload the file 

  file: 
  
 .

but i my case there is no form. i got the file path in my method now i want
to upload the that file from local system to remote server.

I think now you under stand my problem.
with the use of this we have no need to upload the product detail one by one
to the server.

waiting for your reply.

Thanks

Nalin Chandra




> 
> public static String uploadCategory(HttpServletRequest request,
> HttpServletResponse response) {
>
> try
> {
>  String filename = "D:/category.xls";
>   WorkbookSettings ws = new WorkbookSettings();
>   ws.setLocale(new Locale("en", "EN"));
>   Workbook workbook = Workbook.getWorkbook(new File(filename),ws);
>   Sheet s  = workbook.getSheet(0);
>   readCategoryDataSheet(s, request);
>   workbook.close();  
> }
> catch (IOException e)
> {
>   e.printStackTrace();
> }
> catch (BiffException e)
> {
>   e.printStackTrace();
> }
>
> return "success";
> }
>
> private static void readCategoryDataSheet(Sheet s, HttpServletRequest
> request)
> {
>   Cell rowData[] = null;
>   int successCount = 0;
>   int failCount = 0;
>   int rows = s.getRows();
>   int column = s.getColumns();
>   String productCategoryId = "";
>   String productCategoryTypeId = "";
>   String primaryParentCategoryId = "";
>   String categoryName = "";
>   String description = "";
>   String longDescription = "";
>   String categoryImageUrl = "";
>   String linkOneImageUrl = "";
>   String prodCatalogId = "";
>   String prodCatalogCategoryTypeId = "";
>   String sequenceNum = "";
> 
>   for (int i = 1; i < rows; i++) {
>  rowData = s.getRow(i);
> if (rowData[0].getContents().length() != 0) {
> for (int j = 0; j < column; j++) {
> switch (j) {
> case 0:
> productCategoryId =
> rowData[j].getContents();
> case 1:
> productCategoryTypeId =
> rowData[j].getContents();
> case 2:
> primaryParentCategoryId =
> rowData[j].getContents();
> case 3:
> categoryName =
> rowData[j].getContents();
> case 4:
> description =
> rowData[j].getContents();
> case 5:
> longDescription =
> rowData[j].getContents();
> case 6:
> categoryImageUrl =
> rowData[j].getContents();
> case 7:
> linkOneImageUrl =
> rowData[j].getContents();
> default:
> break;
> }
> }
> }
> String imageFilenameFormat =
> UtilProperties.getPropertyValue("catalog", "image.filename.format");
> String imageServerPath =
> UtilProperties.getPropertyValue("catalog", "image.server.path");
> String imageUrlPrefix =
> UtilProperties.getPropertyValue("catalog", "image.url.prefix");
>
>
> // upload image
> FlexibleStringExpander filenameExpander = new
> FlexibleStringExpander(imageFilenameFormat);
> String catImageUrl = "";
> String linkImageUrl = "";
> if(categoryImageUrl != null &&
> categoryImageUrl.length() > 0){
> Object forLock = new Object();
> String contentType = null;
> String categoryImageLocation =
> filenameExpander.expandString(UtilMisc.toMap("location", "categories",
> "type", "category", 

Re: how to import data from excel sheet

2009-05-10 Thread BJ Freeman
images, that are displayed are stored physically at
/framework/images/webapp/images/catalog
/frameework/images/webapp/images/products/large
/framework/images/webapp/images/products/medium
/framework/images/webapp/images/products/small
/framework/images/webapp/images/products/additional

the last one is used with the service addAdditionalViewForProductFromURL
which take the image in that directory and resizes it for the other
product directories.




nalin chandra sent the following on 5/9/2009 11:17 PM:
> Hi All
> 
> I want to import the product related data from excel sheet. I did it but i
> have one problem in this.
> I excel sheet i have absolute path of image now i want to upload the image
> from that absolute path to our application as well store the relative path
> in data base as we did in product content section.
> i am able to store the relative path in database but image in not uploading
> in the required folder.
> 
> Main problem is that here i am not using any html form.
> 
> i paste the code below for it
> 
> public static String uploadCategory(HttpServletRequest request,
> HttpServletResponse response) {
>
> try
> {
>  String filename = "D:/category.xls";
>   WorkbookSettings ws = new WorkbookSettings();
>   ws.setLocale(new Locale("en", "EN"));
>   Workbook workbook = Workbook.getWorkbook(new File(filename),ws);
>   Sheet s  = workbook.getSheet(0);
>   readCategoryDataSheet(s, request);
>   workbook.close();  
> }
> catch (IOException e)
> {
>   e.printStackTrace();
> }
> catch (BiffException e)
> {
>   e.printStackTrace();
> }
>
> return "success";
> }
>
> private static void readCategoryDataSheet(Sheet s, HttpServletRequest
> request)
> {
>   Cell rowData[] = null;
>   int successCount = 0;
>   int failCount = 0;
>   int rows = s.getRows();
>   int column = s.getColumns();
>   String productCategoryId = "";
>   String productCategoryTypeId = "";
>   String primaryParentCategoryId = "";
>   String categoryName = "";
>   String description = "";
>   String longDescription = "";
>   String categoryImageUrl = "";
>   String linkOneImageUrl = "";
>   String prodCatalogId = "";
>   String prodCatalogCategoryTypeId = "";
>   String sequenceNum = "";
> 
>   for (int i = 1; i < rows; i++) {
>  rowData = s.getRow(i);
> if (rowData[0].getContents().length() != 0) {
> for (int j = 0; j < column; j++) {
> switch (j) {
> case 0:
> productCategoryId =
> rowData[j].getContents();
> case 1:
> productCategoryTypeId =
> rowData[j].getContents();
> case 2:
> primaryParentCategoryId =
> rowData[j].getContents();
> case 3:
> categoryName =
> rowData[j].getContents();
> case 4:
> description =
> rowData[j].getContents();
> case 5:
> longDescription =
> rowData[j].getContents();
> case 6:
> categoryImageUrl =
> rowData[j].getContents();
> case 7:
> linkOneImageUrl =
> rowData[j].getContents();
> default:
> break;
> }
> }
> }
> String imageFilenameFormat =
> UtilProperties.getPropertyValue("catalog", "image.filename.format");
> String imageServerPath =
> UtilProperties.getPropertyValue("catalog", "image.server.path");
> String imageUrlPrefix =
> UtilProperties.getPropertyValue("catalog", "image.url.prefix");
>
>
> // upload image
> FlexibleStringExpander filenameExpander = new
> FlexibleStringExpander(imageFilenameFormat);
> String catImageUrl = "";
> String linkImageUrl = "";
> if(categoryImageUrl != null &&
> categoryImageUrl.length() > 0){
> Object forLock = new Object();
>