开发者

Coldfusion, default ORM object?

开发者 https://www.devze.com 2023-02-24 06:09 出处:网络
so I have a form that I\'m using for new items, and to edit items. The input fields therefore may have a value or not. I\'m using this code in the value field.

so I have a form that I'm using for new items, and to edit items.

The input fields therefore may have a value or not. I'm using this code in the value field.

<input name="uuid" value="<cfif isNull(item.GetUuid())>#item.GetUuid()#</cfif>"/>

Is this the best way to do it? I would have thought the ORM returning a blank object or something maybe cleaner, but not sure of a tider way to开发者_Python百科 do it?


This might work

<cfproperty name="uuid" default="">
0

精彩评论

暂无评论...
验证码 换一张
取 消