<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Muhammad Sadam Sadewa</title>
    <description>The latest articles on DEV Community by Muhammad Sadam Sadewa (@mssadewa).</description>
    <link>https://dev.to/mssadewa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F303366%2F1021e1a0-e4fd-4833-83f0-f7df70125645.jpg</url>
      <title>DEV Community: Muhammad Sadam Sadewa</title>
      <link>https://dev.to/mssadewa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mssadewa"/>
    <language>en</language>
    <item>
      <title>How to organize dynamic attributes/properties of products specification?</title>
      <dc:creator>Muhammad Sadam Sadewa</dc:creator>
      <pubDate>Sun, 26 Jan 2020 09:46:56 +0000</pubDate>
      <link>https://dev.to/mssadewa/how-to-organize-dynamic-attributes-properties-of-products-specification-42d7</link>
      <guid>https://dev.to/mssadewa/how-to-organize-dynamic-attributes-properties-of-products-specification-42d7</guid>
      <description>&lt;p&gt;Hello all,&lt;/p&gt;

&lt;p&gt;First, I'm newbie and really happy to join this awesome community.&lt;/p&gt;

&lt;p&gt;Currently, I'm learning to build a &lt;strong&gt;assets management system&lt;/strong&gt;. The system I was design is consist part of &lt;em&gt;brand, attribute, category, model,&lt;/em&gt; and &lt;em&gt;asset&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;I'm trying to achieve that &lt;em&gt;all model should have same attribute when they are in the same category&lt;/em&gt;. Example a model of &lt;em&gt;Google Pixel 3&lt;/em&gt; and &lt;em&gt;Pixel 4&lt;/em&gt; should be have same attribute like &lt;em&gt;SoC, display, ram size, internal storage,&lt;/em&gt; and etc because they are in the same category "&lt;strong&gt;Smartphone&lt;/strong&gt;".&lt;/p&gt;

&lt;p&gt;What I do is bind &lt;em&gt;attribute&lt;/em&gt; to &lt;em&gt;category&lt;/em&gt;. So, when user trying to add category he needs to declare the attributes of assets. And when he add new model and choose the category, a group of inputs it's show up as he declare when he add attribute to category.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpfcu0o5wczz0k58afkpm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpfcu0o5wczz0k58afkpm.png" alt="The Table Relation" width="389" height="702"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm still working on it, and don't know how it's work when user disable or edit attributes.&lt;/p&gt;

&lt;p&gt;Please, need your advice or any other best practices to achive dynamic attribute?&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br&gt;
mssadewa&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>javascript</category>
      <category>php</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
