Re: howto escape from iterate list in simple-method

2011-06-24 Thread Scott Gray
The implementation would not be trivial, the simple method structure wouldn't 
easily support this type of control flow.  Plus it would be difficult to get 
the xsd right, allowing the operation to appear only within the iterable 
operations but possibly deeply nested.

Regards
Scott

On 22/06/2011, at 10:12 PM, Adrian Crum wrote:

 A break/ element would be a useful addition to mini-language. If anyone is 
 interested in creating it, I will take a look at it.
 
 -Adrian
 
 On 6/22/2011 10:04 AM, Pierre Smits wrote:
 Hi all,
 
 I am stumped... I need to iterate through a list to find the the first entry
 given a set of parameters in a simple-method, but how do I escape from the
 iteration after having found the entry?
 
 I know that in groovy I can do a while loop and if I have found the entry I
 can issue a 'break; and close the iteration. But how do I do this in the
 interation in a simple-method?
 
 Regards,
 
 Pierre
 



smime.p7s
Description: S/MIME cryptographic signature


Re: How to implement Having function in view-entity defination?

2011-06-24 Thread Rishi Solanki
While defining the view entity, you may use group-by on the field aka alias
of the view entity.
Then you can add condition in the bottom using entity-condition in the
bottom of view entity definition.
See the view-entity ExampleStatusItem in the
/framework/example/entitydef/entitymodel_view.xml for partial understanding.

Also look into the
org.ofbiz.entity.model.ModelViewEntity.ViewEntityCondition, here you will
get idea how it will work.

HTH!

Rishi Solanki
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
Direct: +91-9893287847
http://www.hotwaxmedia.com


On Wed, Jun 22, 2011 at 2:01 AM, Jacques Le Roux 
jacques.le.r...@les7arts.com wrote:

 Sorry, but it's not clear what you want exactly. Could you elaborate a bit
 more?

 Jacques

 From: zhiyongcui zhufu...@gmail.com

  I want to implement having function in view-entity defination, but I
 can't.Is
 there somebody who can help me?many thanks!

 --
 View this message in context: http://ofbiz.135035.n4.nabble.**
 com/How-to-implement-Having-**function-in-view-entity-**
 defination-tp3613550p3613550.**htmlhttp://ofbiz.135035.n4.nabble.com/How-to-implement-Having-function-in-view-entity-defination-tp3613550p3613550.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.






auto complete

2011-06-24 Thread BJ Freeman
when typing I get one or two characters typed and they there is about
5-15 sec delay. Also when it comes back it resets the cursor to the
begging of what I type.

it seems that after typing the same thing over and over, that finally it
is quick.

using FF
I find this with Google as well so not a ofbiz problem perse.
Just wish I could disable it completely.


Re: Unable to view content of party by admin account

2011-06-24 Thread Jacques Le Roux

Which Release. revision are you using? I can't reproduce on trunk demo

Jacques

From: russp remprof...@gmail.com

Jacques Le Roux wrote:


How were you able to add a content to the party without errors (please
give us an use case) ?
Because there is already a Jira issue opens for this
https://issues.apache.org/jira/browse/OFBIZ-2010

Jacques

From: Vu Hong Thuan lt;thua...@gmail.comgt;

I've read my logfile and found following red-error lines:

2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
DataEvents.java:264:ERROR]
You do not have permission to download the Data Resource with ID [1],
ie
you are not associated with it.

2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
RequestHandler.java:309:ERROR] Request img caused an error with the
following message: You do not have permission to download the Data
Resource
with ID [1], ie you are not associated with it.


2008/10/26 BJ Freeman lt;bjf...@free-man.netgt;


that is work being done on content.
you should look for logs that may give you errors like a rollback.
also replicate this on the demo server so it can be looked at.
give a link when your done.

Vu Hong Thuan sent the following on 10/25/2008 12:35 PM:
 Hi all,
 I use admin account to do following operations
 I create new party. When I attach a new content to the party such as
image,
 profile document ...
 But after that I can't view the content of attached file of the party.

 Could anyone give me suggestion?
 Thanks a lot.






--
Vũ Hồng Thuận
Công ty Phần mềm và Truyền thông Việt Nam, NAMMEDIA, INC.
Email: thua...@nammedia.com
Web: http://www.nammedia.com
ĐT: (84)-04-5680964 - Fax: (84)-04-5681083
DĐ: 0984328513

Vu Hong Thuan
Vietnam Software and Communication Company. NAMMEDIA. INC
Email: thua...@nammedia.com
Web: http://www.nammedia.com
Phone: (84)-04-5680964 - Fax: (84)-04-5681083
Mobile: (84)-984328513





Is there a solution to this issue as I am still experiencing it?

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3620204.html

Sent from the OFBiz - User mailing list archive at Nabble.com.






Re: Unable to view content of party by admin account

2011-06-24 Thread russp
I am using the stable official release 10.04 which I downloaded in February.
How can I tell which release it is?

There are 2 problems:

1) Admin uploads a data content to a party but cannot view it; the error is
about permissions. However once the document is viewed though the content
application, it can be viewed through the party as well.
2) It's not possible to delete (Remove) the same document from within the
party screen (or any other screen by the looks of it). The error is that the
value (probably the ID of the document) is not available when attempting the
delete.



On 24 June 2011 13:47, Jacques Le Roux [via OFBiz] 
ml-node+3623174-1551363945-238...@n4.nabble.com wrote:

 Which Release. revision are you using? I can't reproduce on trunk demo

 Jacques

 From: russp [hidden 
 email]http://user/SendEmail.jtp?type=nodenode=3623174i=0


  Jacques Le Roux wrote:
 
  How were you able to add a content to the party without errors (please
  give us an use case) ?
  Because there is already a Jira issue opens for this
  https://issues.apache.org/jira/browse/OFBIZ-2010
 
  Jacques
 
  From: Vu Hong Thuan lt;[hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3623174i=1gt;

  I've read my logfile and found following red-error lines:
 
  2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
  DataEvents.java:264:ERROR]
  You do not have permission to download the Data Resource with ID
 [1],
  ie
  you are not associated with it.
 
  2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
  RequestHandler.java:309:ERROR] Request img caused an error with the
  following message: You do not have permission to download the Data
  Resource
  with ID [1], ie you are not associated with it.
 
 
  2008/10/26 BJ Freeman lt;[hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3623174i=2gt;

 
  that is work being done on content.
  you should look for logs that may give you errors like a rollback.
  also replicate this on the demo server so it can be looked at.
  give a link when your done.
 
  Vu Hong Thuan sent the following on 10/25/2008 12:35 PM:
   Hi all,
   I use admin account to do following operations
   I create new party. When I attach a new content to the party such as

  image,
   profile document ...
   But after that I can't view the content of attached file of the
 party.
  
   Could anyone give me suggestion?
   Thanks a lot.
  
 
 
 
 
  --
  Vũ Hồng Thuận
  Công ty Phần mềm và Truyền thông Việt Nam, NAMMEDIA, INC.
  Email: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3623174i=3
  Web: http://www.nammedia.com
  ĐT: (84)-04-5680964 - Fax: (84)-04-5681083
  DĐ: 0984328513
 
  Vu Hong Thuan
  Vietnam Software and Communication Company. NAMMEDIA. INC
  Email: [hidden 
  email]http://user/SendEmail.jtp?type=nodenode=3623174i=4
  Web: http://www.nammedia.com
  Phone: (84)-04-5680964 - Fax: (84)-04-5681083
  Mobile: (84)-984328513
 
 
 
  Is there a solution to this issue as I am still experiencing it?
 
  --
  View this message in context:
 
 http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3620204.html
  Sent from the OFBiz - User mailing list archive at Nabble.com.
 




 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3623174.html
  To unsubscribe from Unable to view content of party by admin account, click
 herehttp://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=157591code=cmVtcHJvZmFudEBnbWFpbC5jb218MTU3NTkxfC0yMDc1MzAyMzEz.




--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3623194.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Re: Unable to view content of party by admin account

2011-06-24 Thread Jacques Le Roux

russp wrote:

I am using the stable official release 10.04 which I downloaded in February.
How can I tell which release it is?


If you run ant svninfo you should see this info in backend footer


There are 2 problems:

1) Admin uploads a data content to a party but cannot view it; the error is
about permissions. However once the document is viewed though the content
application, it can be viewed through the party as well.
2) It's not possible to delete (Remove) the same document from within the
party screen (or any other screen by the looks of it). The error is that the
value (probably the ID of the document) is not available when attempting the
delete.


OK it's not the same than the one I tested. Could you try to see if you can 
reproduce on trunk demo? (1st step)

Jacques




On 24 June 2011 13:47, Jacques Le Roux [via OFBiz] 
ml-node+3623174-1551363945-238...@n4.nabble.com wrote:


Which Release. revision are you using? I can't reproduce on trunk demo

Jacques

From: russp [hidden 
email]http://user/SendEmail.jtp?type=nodenode=3623174i=0



Jacques Le Roux wrote:


How were you able to add a content to the party without errors (please
give us an use case) ?
Because there is already a Jira issue opens for this
https://issues.apache.org/jira/browse/OFBIZ-2010

Jacques

From: Vu Hong Thuan lt;[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3623174i=1gt;



I've read my logfile and found following red-error lines:

2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
DataEvents.java:264:ERROR]
You do not have permission to download the Data Resource with ID

[1],

ie
you are not associated with it.

2008-10-26 08:13:23,171 (http-0.0.0.0-8082-1) [
RequestHandler.java:309:ERROR] Request img caused an error with the
following message: You do not have permission to download the Data
Resource
with ID [1], ie you are not associated with it.


2008/10/26 BJ Freeman lt;[hidden 
email]http://user/SendEmail.jtp?type=nodenode=3623174i=2gt;





that is work being done on content.
you should look for logs that may give you errors like a rollback.
also replicate this on the demo server so it can be looked at.
give a link when your done.

Vu Hong Thuan sent the following on 10/25/2008 12:35 PM:

Hi all,
I use admin account to do following operations
I create new party. When I attach a new content to the party such as  image,
profile document ...
But after that I can't view the content of attached file of the

party.


Could anyone give me suggestion?
Thanks a lot.







--
Vũ Hồng Thuận
Công ty Phần mềm và Truyền thông Việt Nam, NAMMEDIA, INC.
Email: [hidden email]http://user/SendEmail.jtp?type=nodenode=3623174i=3
Web: http://www.nammedia.com
ĐT: (84)-04-5680964 - Fax: (84)-04-5681083
DĐ: 0984328513

Vu Hong Thuan
Vietnam Software and Communication Company. NAMMEDIA. INC
Email: [hidden email]http://user/SendEmail.jtp?type=nodenode=3623174i=4
Web: http://www.nammedia.com
Phone: (84)-04-5680964 - Fax: (84)-04-5681083
Mobile: (84)-984328513





Is there a solution to this issue as I am still experiencing it?

--
View this message in context:


http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3620204.html

Sent from the OFBiz - User mailing list archive at Nabble.com.






--
 If you reply to this email, your message will be added to the discussion
below:

http://ofbiz.135035.n4.nabble.com/Unable-to-view-content-of-party-by-admin-account-tp157591p3623174.html
 To unsubscribe from Unable to view content of party by admin account, click
herehttp://ofbiz.135035.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=157591code=cmVtcHJvZmFudEBnbWFpbC5jb218MTU3NTkxfC0yMDc1MzAyMzEz.





Re: auto complete

2011-06-24 Thread Jacques Le Roux

BJ Freeman wrote:

when typing I get one or two characters typed and they there is about
5-15 sec delay. Also when it comes back it resets the cursor to the
begging of what I type.


Can you reproduce on trunk demo? Else you might have a slow answer from the DB 
for some reason.


it seems that after typing the same thing over and over, that finally it
is quick.


Cached?


using FF
I find this with Google as well so not a ofbiz problem perse.


Ha weird indeed, which platform? (just for my info, I don't think I know a cure)

Jacques


Just wish I could disable it completely.






Re: Any SOAP success stories?

2011-06-24 Thread MikeBranch
Thanks, everybody for your replies. They were all very helpful. It sounds
like my idea of using XML-RPC would be the less painful approach. I have
gotten XML-RPC to work on .NET, but haven't tried it with OFBiz yet.

Re: The QB Web Connector: That was where I started, but the problem is that
you have a canned client (QBWC) that you can't change, so you need to build
the service to be compatible with the client. Given the state of SOAP in
OFBiz this turned out to be too big of an obstacle, at least for me.

I agree with David that XML/JSON-RPC are attractive options, and I think I'm
going to go that route. But your reply prompts me to make a comment about
the open source world in general:

Coming from a .NET background (but quickly recovering!), it's very
frustrating for me to have to wade through discussions about specifications
and standards, Java data types vs .NET data types, this protocol is better
than that protocol because it only uses 547 bytes instead of 613 bytes, etc.
etc. etc. Now, I have a master's degree in software engineering, so it's not
that I don't understand that stuff. It's just that I shouldn't have to.

When I write a .NET program to make SOAP calls to Salesforce, it just works.
I don't even have to worry about what version of SOAP I'm using (or they're
using). I have no idea what kind of web servers, database, programming
language, or operating system Salesforce is using. And I don't care, because
everything just works.

My point is this: If you want to improve adoption of any open source
platform or technology, it wouldn't hurt to shorten the list of things that
newcomers (like me) need to figure out. If I have to drill down through 17
layers of libraries, protocols, specifications, etc., then eventually my
brain is going to overflow and I'll just go work on something else where I
can make just as much money with fewer headaches (and fewer things that
might break for my clients). In the case of OFBiz, which I think is very
cool, when I get to the word SOAP that should be the end. I should be able
to say OK, that's just SOAP. I get it. Now I'll go learn how to build a UI
or something. I guess I'm really talking about a change in attitude, where
it's not assumed that the application developer needs to understand every
line of code right down to the kernel.

Sorry, I didn't mean to turn this into a rant. But please take it in the
spirit in which it's intended: An idea that might help improve adoption of
OFBiz. I would certainly like to help contribute to that effort myself, if I
could just get 6 months of income in the bank :-)

--
View this message in context: 
http://ofbiz.135035.n4.nabble.com/Any-SOAP-success-stories-tp3620409p3623964.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Any SOAP success stories?

2011-06-24 Thread David E Jones

There's nothing we can do about bad specs like SOAP. However, consider that 
OFBiz is just one little open source project, and hasn't seen even close to one 
percent of the investment in development that .NET or even SalesForce.com have.

On the other hand, there are good tools for building SOAP clients and servers, 
so fortunately in OFBiz we don't have to invest in such things. Just look into 
a good IDE that has tools for building SOAP services and service clients, 
that's the easy way out. There are some nice tools built on the Eclipse IDE, 
though I use IntelliJ IDEA mostly these days.

BTW, in the real world of integration the reality is that there are hundreds of 
standards, and unless two things are designed to work well together or one has 
extensions to support the other, then you'll have to look into what each 
supports and figure it out. You didn't say what made you experiences with .NET 
and Salesforce easy, so it would be hard to guess at that, but changes are the 
SalesForce SOAP services are just as annoying as any other to work with 
manually, so it was really the .NET IDE you used that made it easy.

The same things exist in the Java world, but not part of OFBiz (which is not an 
IDE).

-David


On Jun 24, 2011, at 6:49 PM, MikeBranch wrote:

 Thanks, everybody for your replies. They were all very helpful. It sounds
 like my idea of using XML-RPC would be the less painful approach. I have
 gotten XML-RPC to work on .NET, but haven't tried it with OFBiz yet.
 
 Re: The QB Web Connector: That was where I started, but the problem is that
 you have a canned client (QBWC) that you can't change, so you need to build
 the service to be compatible with the client. Given the state of SOAP in
 OFBiz this turned out to be too big of an obstacle, at least for me.
 
 I agree with David that XML/JSON-RPC are attractive options, and I think I'm
 going to go that route. But your reply prompts me to make a comment about
 the open source world in general:
 
 Coming from a .NET background (but quickly recovering!), it's very
 frustrating for me to have to wade through discussions about specifications
 and standards, Java data types vs .NET data types, this protocol is better
 than that protocol because it only uses 547 bytes instead of 613 bytes, etc.
 etc. etc. Now, I have a master's degree in software engineering, so it's not
 that I don't understand that stuff. It's just that I shouldn't have to.
 
 When I write a .NET program to make SOAP calls to Salesforce, it just works.
 I don't even have to worry about what version of SOAP I'm using (or they're
 using). I have no idea what kind of web servers, database, programming
 language, or operating system Salesforce is using. And I don't care, because
 everything just works.
 
 My point is this: If you want to improve adoption of any open source
 platform or technology, it wouldn't hurt to shorten the list of things that
 newcomers (like me) need to figure out. If I have to drill down through 17
 layers of libraries, protocols, specifications, etc., then eventually my
 brain is going to overflow and I'll just go work on something else where I
 can make just as much money with fewer headaches (and fewer things that
 might break for my clients). In the case of OFBiz, which I think is very
 cool, when I get to the word SOAP that should be the end. I should be able
 to say OK, that's just SOAP. I get it. Now I'll go learn how to build a UI
 or something. I guess I'm really talking about a change in attitude, where
 it's not assumed that the application developer needs to understand every
 line of code right down to the kernel.
 
 Sorry, I didn't mean to turn this into a rant. But please take it in the
 spirit in which it's intended: An idea that might help improve adoption of
 OFBiz. I would certainly like to help contribute to that effort myself, if I
 could just get 6 months of income in the bank :-)
 
 --
 View this message in context: 
 http://ofbiz.135035.n4.nabble.com/Any-SOAP-success-stories-tp3620409p3623964.html
 Sent from the OFBiz - User mailing list archive at Nabble.com.